Skip linking on Flutter for CocoaPods transitive dependencies (#78592)
This commit is contained in:
@@ -33,6 +33,9 @@ end
|
||||
def flutter_additional_ios_build_settings(target)
|
||||
return unless target.platform_name == :ios
|
||||
|
||||
# Return if it's not a Flutter plugin (transitive dependency).
|
||||
return unless target.dependencies.any? { |dependency| dependency.name == 'Flutter' }
|
||||
|
||||
# [target.deployment_target] is a [String] formatted as "8.0".
|
||||
inherit_deployment_target = target.deployment_target[/\d+/].to_i < 9
|
||||
|
||||
@@ -78,6 +81,9 @@ end
|
||||
def flutter_additional_macos_build_settings(target)
|
||||
return unless target.platform_name == :osx
|
||||
|
||||
# Return if it's not a Flutter plugin (transitive dependency).
|
||||
return unless target.dependencies.any? { |dependency| dependency.name == 'FlutterMacOS' }
|
||||
|
||||
# [target.deployment_target] is a [String] formatted as "10.8".
|
||||
deployment_target_major, deployment_target_minor = target.deployment_target.match(/(\d+).?(\d*)/).captures
|
||||
|
||||
|
||||
Reference in New Issue
Block a user