mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Increase Flutter framework minimum iOS version to 9.0 (#86840)
This commit is contained in:
parent
eb62bce924
commit
81aeb33ce3
@ -172,14 +172,16 @@ class _FlutterProject {
|
||||
// it's not a regression in the IPHONEOS_DEPLOYMENT_TARGET override logic.
|
||||
// The plugintest target should not have IPHONEOS_DEPLOYMENT_TARGET set.
|
||||
// See _reduceDarwinPluginMinimumVersion for details.
|
||||
if (target == 'ios' && 'IPHONEOS_DEPLOYMENT_TARGET'.allMatches(podsProjectContent).length != 6) {
|
||||
throw TaskResult.failure('plugintest may contain IPHONEOS_DEPLOYMENT_TARGET');
|
||||
final int iosDeploymentTargetCount = 'IPHONEOS_DEPLOYMENT_TARGET'.allMatches(podsProjectContent).length;
|
||||
if (target == 'ios' && iosDeploymentTargetCount != 9) {
|
||||
throw TaskResult.failure('plugintest may contain IPHONEOS_DEPLOYMENT_TARGET, $iosDeploymentTargetCount found');
|
||||
}
|
||||
|
||||
// Same for macOS, but 12.
|
||||
// The plugintest target should not have MACOSX_DEPLOYMENT_TARGET set.
|
||||
if (target == 'macos' && 'MACOSX_DEPLOYMENT_TARGET'.allMatches(podsProjectContent).length != 12) {
|
||||
throw TaskResult.failure('plugintest may contain MACOSX_DEPLOYMENT_TARGET');
|
||||
final int macosDeploymentTargetCount = 'MACOSX_DEPLOYMENT_TARGET'.allMatches(podsProjectContent).length;
|
||||
if (target == 'macos' && macosDeploymentTargetCount != 12) {
|
||||
throw TaskResult.failure('plugintest may contain MACOSX_DEPLOYMENT_TARGET, $macosDeploymentTargetCount found');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -177,7 +177,7 @@ def flutter_install_ios_engine_pod(ios_application_path = nil)
|
||||
s.license = { :type => 'MIT' }
|
||||
s.author = { 'Flutter Dev Team' => 'flutter-dev@googlegroups.com' }
|
||||
s.source = { :git => 'https://github.com/flutter/engine', :tag => s.version.to_s }
|
||||
s.ios.deployment_target = '8.0'
|
||||
s.ios.deployment_target = '9.0'
|
||||
# Framework linking is handled by Flutter tooling, not CocoaPods.
|
||||
# Add a placeholder to satisfy `s.dependency 'Flutter'` plugin podspecs.
|
||||
s.vendored_frameworks = 'path/to/nothing'
|
||||
|
@ -286,7 +286,7 @@ LICENSE
|
||||
s.author = { 'Flutter Dev Team' => 'flutter-dev@googlegroups.com' }
|
||||
s.source = { :http => '${_cache.storageBaseUrl}/flutter_infra_release/flutter/${_cache.engineRevision}/$artifactsMode/artifacts.zip' }
|
||||
s.documentation_url = 'https://flutter.dev/docs'
|
||||
s.platform = :ios, '8.0'
|
||||
s.platform = :ios, '9.0'
|
||||
s.vendored_frameworks = 'Flutter.xcframework'
|
||||
end
|
||||
''';
|
||||
|
@ -15,6 +15,6 @@ This pod vends the iOS Flutter engine framework. It is compatible with applicati
|
||||
s.author = { 'Flutter Dev Team' => 'flutter-dev@googlegroups.com' }
|
||||
s.source = { :git => 'https://github.com/flutter/engine', :tag => s.version.to_s }
|
||||
s.documentation_url = 'https://flutter.dev/docs'
|
||||
s.ios.deployment_target = '8.0'
|
||||
s.ios.deployment_target = '9.0'
|
||||
s.vendored_frameworks = 'Flutter.xcframework'
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user