"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/flutter_tools/bin/podhelper.rb" between
flutter-2.0.3.tar.gz and flutter-2.0.4.tar.gz

About: Flutter is Google's SDK for crafting beautiful apps for mobile, web, and desktop from a single codebase.

podhelper.rb  (flutter-2.0.3):podhelper.rb  (flutter-2.0.4)
skipping to change at line 36 skipping to change at line 36
# @example # @example
# post_install do |installer| # post_install do |installer|
# installer.pods_project.targets.each do |target| # installer.pods_project.targets.each do |target|
# flutter_additional_ios_build_settings(target) # flutter_additional_ios_build_settings(target)
# end # end
# end # end
# @param [PBXAggregateTarget] target Pod target. # @param [PBXAggregateTarget] target Pod target.
def flutter_additional_ios_build_settings(target) def flutter_additional_ios_build_settings(target)
return unless target.platform_name == :ios return unless target.platform_name == :ios
# Return if it's not a Flutter plugin (transitive dependency).
return unless target.dependencies.any? { |dependency| dependency.name == 'Flut
ter' }
# [target.deployment_target] is a [String] formatted as "8.0". # [target.deployment_target] is a [String] formatted as "8.0".
inherit_deployment_target = target.deployment_target[/\d+/].to_i < 9 inherit_deployment_target = target.deployment_target[/\d+/].to_i < 9
# This podhelper script is at $FLUTTER_ROOT/packages/flutter_tools/bin. # This podhelper script is at $FLUTTER_ROOT/packages/flutter_tools/bin.
# Add search paths from $FLUTTER_ROOT/bin/cache/artifacts/engine. # Add search paths from $FLUTTER_ROOT/bin/cache/artifacts/engine.
artifacts_dir = File.join('..', '..', '..', '..', 'bin', 'cache', 'artifacts', 'engine') artifacts_dir = File.join('..', '..', '..', '..', 'bin', 'cache', 'artifacts', 'engine')
debug_framework_dir = File.expand_path(File.join(artifacts_dir, 'ios', 'Flutte r.xcframework'), __FILE__) debug_framework_dir = File.expand_path(File.join(artifacts_dir, 'ios', 'Flutte r.xcframework'), __FILE__)
unless Dir.exist?(debug_framework_dir) unless Dir.exist?(debug_framework_dir)
# iOS artifacts have not been downloaded. # iOS artifacts have not been downloaded.
skipping to change at line 78 skipping to change at line 81
# When deleted, the deployment version will inherit from the higher version derived from the 'Runner' target. # When deleted, the deployment version will inherit from the higher version derived from the 'Runner' target.
# If the pod only supports a higher version, do not delete to correctly prod uce an error. # If the pod only supports a higher version, do not delete to correctly prod uce an error.
build_configuration.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET' if in herit_deployment_target build_configuration.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET' if in herit_deployment_target
end end
end end
# Same as flutter_ios_podfile_setup for macOS. # Same as flutter_ios_podfile_setup for macOS.
def flutter_additional_macos_build_settings(target) def flutter_additional_macos_build_settings(target)
return unless target.platform_name == :osx return unless target.platform_name == :osx
# Return if it's not a Flutter plugin (transitive dependency).
return unless target.dependencies.any? { |dependency| dependency.name == 'Flut
terMacOS' }
# [target.deployment_target] is a [String] formatted as "10.8". # [target.deployment_target] is a [String] formatted as "10.8".
deployment_target_major, deployment_target_minor = target.deployment_target.ma tch(/(\d+).?(\d*)/).captures deployment_target_major, deployment_target_minor = target.deployment_target.ma tch(/(\d+).?(\d*)/).captures
# Suppress warning when pod supports a version lower than the minimum supporte d by the latest stable version of Xcode (currently 10.9). # Suppress warning when pod supports a version lower than the minimum supporte d by the latest stable version of Xcode (currently 10.9).
# This warning is harmless but confusing--it's not a bad thing for dependencie s to support a lower version. # This warning is harmless but confusing--it's not a bad thing for dependencie s to support a lower version.
inherit_deployment_target = !target.deployment_target.blank? && inherit_deployment_target = !target.deployment_target.blank? &&
(deployment_target_major.to_i < 10) || (deployment_target_major.to_i < 10) ||
(deployment_target_major.to_i == 10 && deployment_target_minor.to_i < 9) (deployment_target_major.to_i == 10 && deployment_target_minor.to_i < 9)
# This podhelper script is at $FLUTTER_ROOT/packages/flutter_tools/bin. # This podhelper script is at $FLUTTER_ROOT/packages/flutter_tools/bin.
 End of changes. 2 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)