Skip to content

Commit f3f9ab7

Browse files
committed
mobility features example app ios upgrade
1 parent 16558da commit f3f9ab7

6 files changed

Lines changed: 49 additions & 28 deletions

File tree

packages/mobility_features/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>11.0</string>
24+
<string>12.0</string>
2525
</dict>
2626
</plist>

packages/mobility_features/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/mobility_features/example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
5F28DEA3D0C41153F7E63CD4 /* Pods-Runner.release.xcconfig */,
6969
F87930440992C8BBDFA655A9 /* Pods-Runner.profile.xcconfig */,
7070
);
71-
name = Pods;
7271
path = Pods;
7372
sourceTree = "<group>";
7473
};
@@ -148,6 +147,7 @@
148147
9705A1C41CF9048500538489 /* Embed Frameworks */,
149148
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
150149
A0093596134903C6F041DBD8 /* [CP] Embed Pods Frameworks */,
150+
7A4D4DBEB46497CC414A1EC3 /* [CP] Copy Pods Resources */,
151151
);
152152
buildRules = (
153153
);
@@ -164,7 +164,7 @@
164164
97C146E61CF9000F007C117D /* Project object */ = {
165165
isa = PBXProject;
166166
attributes = {
167-
LastUpgradeCheck = 1300;
167+
LastUpgradeCheck = 1510;
168168
ORGANIZATIONNAME = "";
169169
TargetAttributes = {
170170
97C146ED1CF9000F007C117D = {
@@ -174,7 +174,7 @@
174174
};
175175
};
176176
buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
177-
compatibilityVersion = "Xcode 9.3";
177+
compatibilityVersion = "Xcode 12.0";
178178
developmentRegion = en;
179179
hasScannedForEncodings = 0;
180180
knownRegions = (
@@ -222,6 +222,23 @@
222222
shellPath = /bin/sh;
223223
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
224224
};
225+
7A4D4DBEB46497CC414A1EC3 /* [CP] Copy Pods Resources */ = {
226+
isa = PBXShellScriptBuildPhase;
227+
buildActionMask = 2147483647;
228+
files = (
229+
);
230+
inputFileListPaths = (
231+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
232+
);
233+
name = "[CP] Copy Pods Resources";
234+
outputFileListPaths = (
235+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
236+
);
237+
runOnlyForDeploymentPostprocessing = 0;
238+
shellPath = /bin/sh;
239+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
240+
showEnvVarsInLog = 0;
241+
};
225242
8E698D20C6371F6AB02E1F76 /* [CP] Check Pods Manifest.lock */ = {
226243
isa = PBXShellScriptBuildPhase;
227244
buildActionMask = 2147483647;
@@ -351,7 +368,7 @@
351368
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
352369
GCC_WARN_UNUSED_FUNCTION = YES;
353370
GCC_WARN_UNUSED_VARIABLE = YES;
354-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
371+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
355372
MTL_ENABLE_DEBUG_INFO = NO;
356373
SDKROOT = iphoneos;
357374
SUPPORTED_PLATFORMS = iphoneos;
@@ -367,6 +384,7 @@
367384
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
368385
CLANG_ENABLE_MODULES = YES;
369386
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
387+
DEVELOPMENT_TEAM = 59TCTNUBMQ;
370388
ENABLE_BITCODE = NO;
371389
FRAMEWORK_SEARCH_PATHS = (
372390
"$(inherited)",
@@ -381,7 +399,7 @@
381399
"$(inherited)",
382400
"$(PROJECT_DIR)/Flutter",
383401
);
384-
PRODUCT_BUNDLE_IDENTIFIER = com.example.example;
402+
PRODUCT_BUNDLE_IDENTIFIER = com.mobility.example;
385403
PRODUCT_NAME = "$(TARGET_NAME)";
386404
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
387405
SWIFT_VERSION = 5.0;
@@ -436,7 +454,7 @@
436454
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
437455
GCC_WARN_UNUSED_FUNCTION = YES;
438456
GCC_WARN_UNUSED_VARIABLE = YES;
439-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
457+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
440458
MTL_ENABLE_DEBUG_INFO = YES;
441459
ONLY_ACTIVE_ARCH = YES;
442460
SDKROOT = iphoneos;
@@ -485,7 +503,7 @@
485503
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
486504
GCC_WARN_UNUSED_FUNCTION = YES;
487505
GCC_WARN_UNUSED_VARIABLE = YES;
488-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
506+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
489507
MTL_ENABLE_DEBUG_INFO = NO;
490508
SDKROOT = iphoneos;
491509
SUPPORTED_PLATFORMS = iphoneos;
@@ -502,6 +520,7 @@
502520
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
503521
CLANG_ENABLE_MODULES = YES;
504522
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
523+
DEVELOPMENT_TEAM = 59TCTNUBMQ;
505524
ENABLE_BITCODE = NO;
506525
FRAMEWORK_SEARCH_PATHS = (
507526
"$(inherited)",
@@ -516,7 +535,7 @@
516535
"$(inherited)",
517536
"$(PROJECT_DIR)/Flutter",
518537
);
519-
PRODUCT_BUNDLE_IDENTIFIER = com.example.example;
538+
PRODUCT_BUNDLE_IDENTIFIER = com.mobility.example;
520539
PRODUCT_NAME = "$(TARGET_NAME)";
521540
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
522541
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -532,6 +551,7 @@
532551
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
533552
CLANG_ENABLE_MODULES = YES;
534553
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
554+
DEVELOPMENT_TEAM = 59TCTNUBMQ;
535555
ENABLE_BITCODE = NO;
536556
FRAMEWORK_SEARCH_PATHS = (
537557
"$(inherited)",
@@ -546,7 +566,7 @@
546566
"$(inherited)",
547567
"$(PROJECT_DIR)/Flutter",
548568
);
549-
PRODUCT_BUNDLE_IDENTIFIER = com.example.example;
569+
PRODUCT_BUNDLE_IDENTIFIER = com.mobility.example;
550570
PRODUCT_NAME = "$(TARGET_NAME)";
551571
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
552572
SWIFT_VERSION = 5.0;

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

Lines changed: 2 additions & 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 = "1300"
3+
LastUpgradeVersion = "1510"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -50,6 +50,7 @@
5050
ignoresPersistentStateOnLaunch = "NO"
5151
debugDocumentVersioning = "YES"
5252
debugServiceExtension = "internal"
53+
enableGPUValidationMode = "1"
5354
allowLocationSimulation = "YES">
5455
<BuildableProductRunnable
5556
runnableDebuggingMode = "0">

packages/mobility_features/example/ios/Runner/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ func registerPlugins(registry: FlutterPluginRegistry) {
88
}
99
}
1010

11-
@UIApplicationMain
11+
@main
1212
@objc class AppDelegate: FlutterAppDelegate {
1313
override func application(
1414
_ application: UIApplication,

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>CADisableMinimumFrameDurationOnPhone</key>
6+
<true/>
57
<key>CFBundleDevelopmentRegion</key>
68
<string>$(DEVELOPMENT_LANGUAGE)</string>
79
<key>CFBundleExecutable</key>
@@ -11,7 +13,7 @@
1113
<key>CFBundleInfoDictionaryVersion</key>
1214
<string>6.0</string>
1315
<key>CFBundleName</key>
14-
<string>example</string>
16+
<string>mobility_example</string>
1517
<key>CFBundlePackageType</key>
1618
<string>APPL</string>
1719
<key>CFBundleShortVersionString</key>
@@ -22,16 +24,18 @@
2224
<string>$(FLUTTER_BUILD_NUMBER)</string>
2325
<key>LSRequiresIPhoneOS</key>
2426
<true/>
25-
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
26-
<string>This app needs access to location when open and in the background.</string>
27-
<key>NSLocationAlwaysUsageDescription</key>
28-
<string>This app needs access to location when in the background.</string>
29-
<key>NSLocationWhenInUseUsageDescription</key>
30-
<string>This app needs access to location when open.</string>
31-
<key>UIBackgroundModes</key>
32-
<array>
33-
<string>location</string>
34-
</array>
27+
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
28+
<string>This app needs access to location when open and in the background.</string>
29+
<key>NSLocationAlwaysUsageDescription</key>
30+
<string>This app needs access to location when in the background.</string>
31+
<key>NSLocationWhenInUseUsageDescription</key>
32+
<string>This app needs access to location when open.</string>
33+
<key>UIApplicationSupportsIndirectInputEvents</key>
34+
<true/>
35+
<key>UIBackgroundModes</key>
36+
<array>
37+
<string>location</string>
38+
</array>
3539
<key>UILaunchStoryboardName</key>
3640
<string>LaunchScreen</string>
3741
<key>UIMainStoryboardFile</key>
@@ -51,9 +55,5 @@
5155
</array>
5256
<key>UIViewControllerBasedStatusBarAppearance</key>
5357
<false/>
54-
<key>CADisableMinimumFrameDurationOnPhone</key>
55-
<true/>
56-
<key>UIApplicationSupportsIndirectInputEvents</key>
57-
<true/>
5858
</dict>
5959
</plist>

0 commit comments

Comments
 (0)