Skip to content

Commit 4c5375d

Browse files
[various] Update minimum iOS versions to 12.0 (flutter#5902)
This makes the following mass changes: - Builds all examples with current stable (3.16.7), to pick up the auto-migration of projects to a minimum of iOS 12. - In some cases this picks up other boilerplate Xcode project migrations that had never been checked in to those projects. - Updates all iOS plugin implementations to indicate that they require iOS 12.0 or later. - Updates all the READMEs of the app-facing versions of those plugins to indicate that iOS 11 will no longer receive implementation updates. The only code changes are: - the removal of some `@available` checks in `in_app_purchase_storekit` that had become no-ops with the support change - the removal of a `!` in `camera_avfoundation` Dart code, which is no longer necessary due to changes in nullable field promotion in newer versions of Dart. These changes are version-exempt [per repo policy](https://github.com/flutter/flutter/wiki/Contributing-to-Plugins-and-Packages#version-and-changelog-updates), so the changelog changes all use NEXT.
1 parent 855e283 commit 4c5375d

File tree

239 files changed

+1087
-452
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

239 files changed

+1087
-452
lines changed

packages/animations/example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>8.0</string>
24+
<string>12.0</string>
2525
</dict>
2626
</plist>

packages/animations/example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 46;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -135,7 +135,7 @@
135135
97C146E61CF9000F007C117D /* Project object */ = {
136136
isa = PBXProject;
137137
attributes = {
138-
LastUpgradeCheck = 1020;
138+
LastUpgradeCheck = 1430;
139139
ORGANIZATIONNAME = "The Flutter Authors";
140140
TargetAttributes = {
141141
97C146ED1CF9000F007C117D = {
@@ -179,10 +179,12 @@
179179
/* Begin PBXShellScriptBuildPhase section */
180180
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
181181
isa = PBXShellScriptBuildPhase;
182+
alwaysOutOfDate = 1;
182183
buildActionMask = 2147483647;
183184
files = (
184185
);
185186
inputPaths = (
187+
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
186188
);
187189
name = "Thin Binary";
188190
outputPaths = (
@@ -193,6 +195,7 @@
193195
};
194196
9740EEB61CF901F6004384FC /* Run Script */ = {
195197
isa = PBXShellScriptBuildPhase;
198+
alwaysOutOfDate = 1;
196199
buildActionMask = 2147483647;
197200
files = (
198201
);
@@ -280,7 +283,7 @@
280283
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
281284
GCC_WARN_UNUSED_FUNCTION = YES;
282285
GCC_WARN_UNUSED_VARIABLE = YES;
283-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
286+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
284287
MTL_ENABLE_DEBUG_INFO = NO;
285288
SDKROOT = iphoneos;
286289
SUPPORTED_PLATFORMS = iphoneos;
@@ -363,7 +366,7 @@
363366
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
364367
GCC_WARN_UNUSED_FUNCTION = YES;
365368
GCC_WARN_UNUSED_VARIABLE = YES;
366-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
369+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
367370
MTL_ENABLE_DEBUG_INFO = YES;
368371
ONLY_ACTIVE_ARCH = YES;
369372
SDKROOT = iphoneos;
@@ -412,7 +415,7 @@
412415
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
413416
GCC_WARN_UNUSED_FUNCTION = YES;
414417
GCC_WARN_UNUSED_VARIABLE = YES;
415-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
418+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
416419
MTL_ENABLE_DEBUG_INFO = NO;
417420
SDKROOT = iphoneos;
418421
SUPPORTED_PLATFORMS = iphoneos;

packages/animations/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/animations/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1020"
3+
LastUpgradeVersion = "1430"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

packages/animations/example/ios/Runner/Info.plist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,9 @@
3939
<string>UIInterfaceOrientationLandscapeLeft</string>
4040
<string>UIInterfaceOrientationLandscapeRight</string>
4141
</array>
42+
<key>CADisableMinimumFrameDurationOnPhone</key>
43+
<true/>
44+
<key>UIApplicationSupportsIndirectInputEvents</key>
45+
<true/>
4246
</dict>
4347
</plist>

packages/camera/camera/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## NEXT
2+
3+
* Updates support matrix in README to indicate that iOS 11 is no longer supported.
4+
* Clients on versions of Flutter that still support iOS 11 can continue to use this
5+
package with iOS 11, but will not receive any further updates to the iOS implementation.
6+
17
## 0.10.5+9
28

39
* Updates minimum required plugin_platform_interface version to 2.1.7.

packages/camera/camera/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A Flutter plugin for iOS, Android and Web allowing access to the device cameras.
88

99
| | Android | iOS | Web |
1010
|----------------|---------|-----------|------------------------|
11-
| **Support** | SDK 21+ | iOS 11.0+ | [See `camera_web `][1] |
11+
| **Support** | SDK 21+ | iOS 12.0+ | [See `camera_web `][1] |
1212

1313
## Features
1414

packages/camera/camera/example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
<string>arm64</string>
2626
</array>
2727
<key>MinimumOSVersion</key>
28-
<string>11.0</string>
28+
<string>12.0</string>
2929
</dict>
3030
</plist>

packages/camera/camera/example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '11.0'
2+
# platform :ios, '12.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

packages/camera/camera/example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@
153153
97C146EC1CF9000F007C117D /* Resources */,
154154
9705A1C41CF9048500538489 /* Embed Frameworks */,
155155
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
156+
8CEC7AD219FB134B511EBA9D /* [CP] Copy Pods Resources */,
156157
);
157158
buildRules = (
158159
);
@@ -169,7 +170,7 @@
169170
97C146E61CF9000F007C117D /* Project object */ = {
170171
isa = PBXProject;
171172
attributes = {
172-
LastUpgradeCheck = 1300;
173+
LastUpgradeCheck = 1430;
173174
ORGANIZATIONNAME = "The Flutter Authors";
174175
TargetAttributes = {
175176
97C146ED1CF9000F007C117D = {
@@ -226,6 +227,28 @@
226227
shellPath = /bin/sh;
227228
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
228229
};
230+
8CEC7AD219FB134B511EBA9D /* [CP] Copy Pods Resources */ = {
231+
isa = PBXShellScriptBuildPhase;
232+
buildActionMask = 2147483647;
233+
files = (
234+
);
235+
inputPaths = (
236+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh",
237+
"${PODS_CONFIGURATION_BUILD_DIR}/camera_avfoundation/camera_avfoundation_privacy.bundle",
238+
"${PODS_CONFIGURATION_BUILD_DIR}/path_provider_foundation/path_provider_foundation_privacy.bundle",
239+
"${PODS_CONFIGURATION_BUILD_DIR}/video_player_avfoundation/video_player_avfoundation_privacy.bundle",
240+
);
241+
name = "[CP] Copy Pods Resources";
242+
outputPaths = (
243+
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/camera_avfoundation_privacy.bundle",
244+
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/path_provider_foundation_privacy.bundle",
245+
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/video_player_avfoundation_privacy.bundle",
246+
);
247+
runOnlyForDeploymentPostprocessing = 0;
248+
shellPath = /bin/sh;
249+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
250+
showEnvVarsInLog = 0;
251+
};
229252
9740EEB61CF901F6004384FC /* Run Script */ = {
230253
isa = PBXShellScriptBuildPhase;
231254
alwaysOutOfDate = 1;
@@ -346,7 +369,7 @@
346369
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
347370
GCC_WARN_UNUSED_FUNCTION = YES;
348371
GCC_WARN_UNUSED_VARIABLE = YES;
349-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
372+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
350373
MTL_ENABLE_DEBUG_INFO = YES;
351374
ONLY_ACTIVE_ARCH = YES;
352375
SDKROOT = iphoneos;
@@ -396,7 +419,7 @@
396419
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
397420
GCC_WARN_UNUSED_FUNCTION = YES;
398421
GCC_WARN_UNUSED_VARIABLE = YES;
399-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
422+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
400423
MTL_ENABLE_DEBUG_INFO = NO;
401424
SDKROOT = iphoneos;
402425
TARGETED_DEVICE_FAMILY = "1,2";
@@ -416,7 +439,10 @@
416439
"$(PROJECT_DIR)/Flutter",
417440
);
418441
INFOPLIST_FILE = Runner/Info.plist;
419-
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
442+
LD_RUNPATH_SEARCH_PATHS = (
443+
"$(inherited)",
444+
"@executable_path/Frameworks",
445+
);
420446
LIBRARY_SEARCH_PATHS = (
421447
"$(inherited)",
422448
"$(PROJECT_DIR)/Flutter",
@@ -438,7 +464,10 @@
438464
"$(PROJECT_DIR)/Flutter",
439465
);
440466
INFOPLIST_FILE = Runner/Info.plist;
441-
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
467+
LD_RUNPATH_SEARCH_PATHS = (
468+
"$(inherited)",
469+
"@executable_path/Frameworks",
470+
);
442471
LIBRARY_SEARCH_PATHS = (
443472
"$(inherited)",
444473
"$(PROJECT_DIR)/Flutter",

0 commit comments

Comments
 (0)