Skip to content

Commit f647527

Browse files
committed
Update the example project
1 parent 471cf04 commit f647527

8 files changed

Lines changed: 45 additions & 18 deletions

File tree

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

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, '9.0'
2+
# platform :ios, '12.0'
33

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

example/ios/Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ EXTERNAL SOURCES:
1414
:path: ".symlinks/plugins/shared_preference_app_group/ios"
1515

1616
SPEC CHECKSUMS:
17-
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
18-
shared_preference_app_group: 83d2284f9e747839c40fc281403b5b60d83e2989
17+
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
18+
shared_preference_app_group: 46aee3873e1da581d4904bece9876596d7f66725
1919

20-
PODFILE CHECKSUM: 8e679eca47255a8ca8067c4c67aab20e64cb974d
20+
PODFILE CHECKSUM: 1a782344d33c12ced0182eeab11e8668d253eb48
2121

22-
COCOAPODS: 1.11.2
22+
COCOAPODS: 1.15.2

example/ios/Runner.xcodeproj/project.pbxproj

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

99
/* Begin PBXBuildFile section */
@@ -151,6 +151,7 @@
151151
97C146EC1CF9000F007C117D /* Resources */,
152152
9705A1C41CF9048500538489 /* Embed Frameworks */,
153153
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
154+
30A9EAC1151D4AEC20723EBC /* [CP] Copy Pods Resources */,
154155
);
155156
buildRules = (
156157
);
@@ -167,7 +168,7 @@
167168
97C146E61CF9000F007C117D /* Project object */ = {
168169
isa = PBXProject;
169170
attributes = {
170-
LastUpgradeCheck = 1300;
171+
LastUpgradeCheck = 1510;
171172
ORGANIZATIONNAME = "";
172173
TargetAttributes = {
173174
97C146ED1CF9000F007C117D = {
@@ -208,12 +209,31 @@
208209
/* End PBXResourcesBuildPhase section */
209210

210211
/* Begin PBXShellScriptBuildPhase section */
212+
30A9EAC1151D4AEC20723EBC /* [CP] Copy Pods Resources */ = {
213+
isa = PBXShellScriptBuildPhase;
214+
buildActionMask = 2147483647;
215+
files = (
216+
);
217+
inputFileListPaths = (
218+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
219+
);
220+
name = "[CP] Copy Pods Resources";
221+
outputFileListPaths = (
222+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
223+
);
224+
runOnlyForDeploymentPostprocessing = 0;
225+
shellPath = /bin/sh;
226+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
227+
showEnvVarsInLog = 0;
228+
};
211229
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
212230
isa = PBXShellScriptBuildPhase;
231+
alwaysOutOfDate = 1;
213232
buildActionMask = 2147483647;
214233
files = (
215234
);
216235
inputPaths = (
236+
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
217237
);
218238
name = "Thin Binary";
219239
outputPaths = (
@@ -224,6 +244,7 @@
224244
};
225245
9740EEB61CF901F6004384FC /* Run Script */ = {
226246
isa = PBXShellScriptBuildPhase;
247+
alwaysOutOfDate = 1;
227248
buildActionMask = 2147483647;
228249
files = (
229250
);
@@ -334,7 +355,7 @@
334355
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
335356
GCC_WARN_UNUSED_FUNCTION = YES;
336357
GCC_WARN_UNUSED_VARIABLE = YES;
337-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
358+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
338359
MTL_ENABLE_DEBUG_INFO = NO;
339360
SDKROOT = iphoneos;
340361
SUPPORTED_PLATFORMS = iphoneos;
@@ -418,7 +439,7 @@
418439
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
419440
GCC_WARN_UNUSED_FUNCTION = YES;
420441
GCC_WARN_UNUSED_VARIABLE = YES;
421-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
442+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
422443
MTL_ENABLE_DEBUG_INFO = YES;
423444
ONLY_ACTIVE_ARCH = YES;
424445
SDKROOT = iphoneos;
@@ -467,7 +488,7 @@
467488
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
468489
GCC_WARN_UNUSED_FUNCTION = YES;
469490
GCC_WARN_UNUSED_VARIABLE = YES;
470-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
491+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
471492
MTL_ENABLE_DEBUG_INFO = NO;
472493
SDKROOT = iphoneos;
473494
SUPPORTED_PLATFORMS = iphoneos;

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 = "1300"
3+
LastUpgradeVersion = "1510"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

example/ios/Runner/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,7 @@
4343
<false/>
4444
<key>CADisableMinimumFrameDurationOnPhone</key>
4545
<true/>
46+
<key>UIApplicationSupportsIndirectInputEvents</key>
47+
<true/>
4648
</dict>
4749
</plist>

example/lib/main.dart

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,15 @@ class _MyAppState extends State<MyApp> {
4242
}
4343

4444
Future<void> getMyParams() async {
45-
bool boolValue = await SharedPreferenceAppGroup.getBool('MY_BOOL_KEY');
46-
String stringValue = await SharedPreferenceAppGroup.getString('MY_STRING_KEY');
47-
int intValue = await SharedPreferenceAppGroup.getInt('MY_INT_KEY');
48-
double doubleValue = await SharedPreferenceAppGroup.getDouble('MY_DOUBLE_KEY');
49-
List<String> stringArrayValue = await SharedPreferenceAppGroup.getStringList('MY_STRING_ARRAY');
45+
bool boolValue =
46+
await SharedPreferenceAppGroup.getBool('MY_BOOL_KEY') ?? false;
47+
String stringValue =
48+
await SharedPreferenceAppGroup.getString('MY_STRING_KEY') ?? 'null';
49+
int intValue = await SharedPreferenceAppGroup.getInt('MY_INT_KEY') ?? 0;
50+
double doubleValue =
51+
await SharedPreferenceAppGroup.getDouble('MY_DOUBLE_KEY') ?? 0.0;
52+
List<String> stringArrayValue =
53+
await SharedPreferenceAppGroup.getStringList('MY_STRING_ARRAY') ?? [];
5054

5155
this.myParams = {
5256
'MY_BOOL_KEY': boolValue,

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies:
2222

2323
# The following adds the Cupertino Icons font to your application.
2424
# Use with the CupertinoIcons class for iOS style icons.
25-
cupertino_icons: ^0.1.3
25+
cupertino_icons: ^1.0.6
2626

2727
dev_dependencies:
2828
flutter_test:

0 commit comments

Comments
 (0)