Skip to content

Commit 47b9a78

Browse files
authored
Merge pull request #70 from Flagsmith/docs/update-example
docs: Upgrade example dependencies to match SDK, fix macOS web access
2 parents d0fe692 + 67d8914 commit 47b9a78

File tree

15 files changed

+176
-82
lines changed

15 files changed

+176
-82
lines changed

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>

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'

example/ios/Podfile.lock

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
PODS:
22
- Flutter (1.0.0)
3-
- hexcolor (0.0.1):
4-
- Flutter
53
- path_provider_foundation (0.0.1):
64
- Flutter
75
- FlutterMacOS
@@ -11,26 +9,22 @@ PODS:
119

1210
DEPENDENCIES:
1311
- Flutter (from `Flutter`)
14-
- hexcolor (from `.symlinks/plugins/hexcolor/ios`)
15-
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/ios`)
16-
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/ios`)
12+
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
13+
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
1714

1815
EXTERNAL SOURCES:
1916
Flutter:
2017
:path: Flutter
21-
hexcolor:
22-
:path: ".symlinks/plugins/hexcolor/ios"
2318
path_provider_foundation:
24-
:path: ".symlinks/plugins/path_provider_foundation/ios"
19+
:path: ".symlinks/plugins/path_provider_foundation/darwin"
2520
shared_preferences_foundation:
26-
:path: ".symlinks/plugins/shared_preferences_foundation/ios"
21+
:path: ".symlinks/plugins/shared_preferences_foundation/darwin"
2722

2823
SPEC CHECKSUMS:
29-
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
30-
hexcolor: fdfb9c4258ad96e949c2dbcdf790a62194b8aa89
31-
path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943
32-
shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126
24+
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
25+
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
26+
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
3327

34-
PODFILE CHECKSUM: 70d9d25280d0dd177a5f637cdb0f0b0b12c6a189
28+
PODFILE CHECKSUM: 819463e6a0290f5a72f145ba7cde16e8b6ef0796
3529

36-
COCOAPODS: 1.12.1
30+
COCOAPODS: 1.16.2

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
97C146E61CF9000F007C117D /* Project object */ = {
216216
isa = PBXProject;
217217
attributes = {
218-
LastUpgradeCheck = 1300;
218+
LastUpgradeCheck = 1510;
219219
ORGANIZATIONNAME = "";
220220
TargetAttributes = {
221221
331C8080294A63A400263BE5 = {
@@ -452,7 +452,7 @@
452452
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
453453
GCC_WARN_UNUSED_FUNCTION = YES;
454454
GCC_WARN_UNUSED_VARIABLE = YES;
455-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
455+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
456456
MTL_ENABLE_DEBUG_INFO = NO;
457457
SDKROOT = iphoneos;
458458
SUPPORTED_PLATFORMS = iphoneos;
@@ -580,7 +580,7 @@
580580
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
581581
GCC_WARN_UNUSED_FUNCTION = YES;
582582
GCC_WARN_UNUSED_VARIABLE = YES;
583-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
583+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
584584
MTL_ENABLE_DEBUG_INFO = YES;
585585
ONLY_ACTIVE_ARCH = YES;
586586
SDKROOT = iphoneos;
@@ -629,7 +629,7 @@
629629
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
630630
GCC_WARN_UNUSED_FUNCTION = YES;
631631
GCC_WARN_UNUSED_VARIABLE = YES;
632-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
632+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
633633
MTL_ENABLE_DEBUG_INFO = NO;
634634
SDKROOT = iphoneos;
635635
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/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import UIKit
22
import Flutter
33

4-
@UIApplicationMain
4+
@main
55
@objc class AppDelegate: FlutterAppDelegate {
66
override func application(
77
_ application: UIApplication,

example/macos/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
platform :osx, '10.11'
1+
platform :osx, '10.14'
22

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

example/macos/Podfile.lock

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
PODS:
2+
- FlutterMacOS (1.0.0)
3+
- path_provider_foundation (0.0.1):
4+
- Flutter
5+
- FlutterMacOS
6+
- shared_preferences_foundation (0.0.1):
7+
- Flutter
8+
- FlutterMacOS
9+
10+
DEPENDENCIES:
11+
- FlutterMacOS (from `Flutter/ephemeral`)
12+
- path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`)
13+
- shared_preferences_foundation (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin`)
14+
15+
EXTERNAL SOURCES:
16+
FlutterMacOS:
17+
:path: Flutter/ephemeral
18+
path_provider_foundation:
19+
:path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin
20+
shared_preferences_foundation:
21+
:path: Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin
22+
23+
SPEC CHECKSUMS:
24+
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
25+
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
26+
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
27+
28+
PODFILE CHECKSUM: 353c8bcc5d5b0994e508d035b5431cfe18c1dea7
29+
30+
COCOAPODS: 1.16.2

example/macos/Runner.xcodeproj/project.pbxproj

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

99
/* Begin PBXAggregateTarget section */
@@ -26,6 +26,7 @@
2626
33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };
2727
33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };
2828
33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };
29+
3D189E0613DC3E4797D822E7 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E2EA73C1EE2C2EAECFB4A1F2 /* Pods_Runner.framework */; };
2930
/* End PBXBuildFile section */
3031

3132
/* Begin PBXContainerItemProxy section */
@@ -54,7 +55,7 @@
5455
/* Begin PBXFileReference section */
5556
333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = "<group>"; };
5657
335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = "<group>"; };
57-
33CC10ED2044A3C60003C045 /* example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "example.app"; sourceTree = BUILT_PRODUCTS_DIR; };
58+
33CC10ED2044A3C60003C045 /* example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example.app; sourceTree = BUILT_PRODUCTS_DIR; };
5859
33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
5960
33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = "<group>"; };
6061
33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
@@ -66,15 +67,20 @@
6667
33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = "<group>"; };
6768
33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = "<group>"; };
6869
33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = "<group>"; };
70+
64343D3FBED7E2E015F3BFEA /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
6971
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = "<group>"; };
7072
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = "<group>"; };
73+
9E92D3E0125E87A6C651F0BD /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
74+
B066A9364192C8DF3C4F58BC /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
75+
E2EA73C1EE2C2EAECFB4A1F2 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
7176
/* End PBXFileReference section */
7277

7378
/* Begin PBXFrameworksBuildPhase section */
7479
33CC10EA2044A3C60003C045 /* Frameworks */ = {
7580
isa = PBXFrameworksBuildPhase;
7681
buildActionMask = 2147483647;
7782
files = (
83+
3D189E0613DC3E4797D822E7 /* Pods_Runner.framework in Frameworks */,
7884
);
7985
runOnlyForDeploymentPostprocessing = 0;
8086
};
@@ -99,6 +105,7 @@
99105
33CEB47122A05771004F2AC0 /* Flutter */,
100106
33CC10EE2044A3C60003C045 /* Products */,
101107
D73912EC22F37F3D000D13A0 /* Frameworks */,
108+
A1D62BAF04650DFA066485C2 /* Pods */,
102109
);
103110
sourceTree = "<group>";
104111
};
@@ -145,9 +152,21 @@
145152
path = Runner;
146153
sourceTree = "<group>";
147154
};
155+
A1D62BAF04650DFA066485C2 /* Pods */ = {
156+
isa = PBXGroup;
157+
children = (
158+
B066A9364192C8DF3C4F58BC /* Pods-Runner.debug.xcconfig */,
159+
64343D3FBED7E2E015F3BFEA /* Pods-Runner.release.xcconfig */,
160+
9E92D3E0125E87A6C651F0BD /* Pods-Runner.profile.xcconfig */,
161+
);
162+
name = Pods;
163+
path = Pods;
164+
sourceTree = "<group>";
165+
};
148166
D73912EC22F37F3D000D13A0 /* Frameworks */ = {
149167
isa = PBXGroup;
150168
children = (
169+
E2EA73C1EE2C2EAECFB4A1F2 /* Pods_Runner.framework */,
151170
);
152171
name = Frameworks;
153172
sourceTree = "<group>";
@@ -159,11 +178,13 @@
159178
isa = PBXNativeTarget;
160179
buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */;
161180
buildPhases = (
181+
933D1654FA7DDF631ACD6694 /* [CP] Check Pods Manifest.lock */,
162182
33CC10E92044A3C60003C045 /* Sources */,
163183
33CC10EA2044A3C60003C045 /* Frameworks */,
164184
33CC10EB2044A3C60003C045 /* Resources */,
165185
33CC110E2044A8840003C045 /* Bundle Framework */,
166186
3399D490228B24CF009A79C7 /* ShellScript */,
187+
211AA5E8A81ADCAC730DB577 /* [CP] Embed Pods Frameworks */,
167188
);
168189
buildRules = (
169190
);
@@ -182,7 +203,7 @@
182203
isa = PBXProject;
183204
attributes = {
184205
LastSwiftUpdateCheck = 0920;
185-
LastUpgradeCheck = 0930;
206+
LastUpgradeCheck = 1510;
186207
ORGANIZATIONNAME = "";
187208
TargetAttributes = {
188209
33CC10EC2044A3C60003C045 = {
@@ -233,8 +254,26 @@
233254
/* End PBXResourcesBuildPhase section */
234255

235256
/* Begin PBXShellScriptBuildPhase section */
257+
211AA5E8A81ADCAC730DB577 /* [CP] Embed Pods Frameworks */ = {
258+
isa = PBXShellScriptBuildPhase;
259+
buildActionMask = 2147483647;
260+
files = (
261+
);
262+
inputFileListPaths = (
263+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
264+
);
265+
name = "[CP] Embed Pods Frameworks";
266+
outputFileListPaths = (
267+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
268+
);
269+
runOnlyForDeploymentPostprocessing = 0;
270+
shellPath = /bin/sh;
271+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
272+
showEnvVarsInLog = 0;
273+
};
236274
3399D490228B24CF009A79C7 /* ShellScript */ = {
237275
isa = PBXShellScriptBuildPhase;
276+
alwaysOutOfDate = 1;
238277
buildActionMask = 2147483647;
239278
files = (
240279
);
@@ -270,6 +309,28 @@
270309
shellPath = /bin/sh;
271310
shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire";
272311
};
312+
933D1654FA7DDF631ACD6694 /* [CP] Check Pods Manifest.lock */ = {
313+
isa = PBXShellScriptBuildPhase;
314+
buildActionMask = 2147483647;
315+
files = (
316+
);
317+
inputFileListPaths = (
318+
);
319+
inputPaths = (
320+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
321+
"${PODS_ROOT}/Manifest.lock",
322+
);
323+
name = "[CP] Check Pods Manifest.lock";
324+
outputFileListPaths = (
325+
);
326+
outputPaths = (
327+
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
328+
);
329+
runOnlyForDeploymentPostprocessing = 0;
330+
shellPath = /bin/sh;
331+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
332+
showEnvVarsInLog = 0;
333+
};
273334
/* End PBXShellScriptBuildPhase section */
274335

275336
/* Begin PBXSourcesBuildPhase section */
@@ -344,7 +405,7 @@
344405
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
345406
GCC_WARN_UNUSED_FUNCTION = YES;
346407
GCC_WARN_UNUSED_VARIABLE = YES;
347-
MACOSX_DEPLOYMENT_TARGET = 10.11;
408+
MACOSX_DEPLOYMENT_TARGET = 10.14;
348409
MTL_ENABLE_DEBUG_INFO = NO;
349410
SDKROOT = macosx;
350411
SWIFT_COMPILATION_MODE = wholemodule;
@@ -423,7 +484,7 @@
423484
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
424485
GCC_WARN_UNUSED_FUNCTION = YES;
425486
GCC_WARN_UNUSED_VARIABLE = YES;
426-
MACOSX_DEPLOYMENT_TARGET = 10.11;
487+
MACOSX_DEPLOYMENT_TARGET = 10.14;
427488
MTL_ENABLE_DEBUG_INFO = YES;
428489
ONLY_ACTIVE_ARCH = YES;
429490
SDKROOT = macosx;
@@ -470,7 +531,7 @@
470531
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
471532
GCC_WARN_UNUSED_FUNCTION = YES;
472533
GCC_WARN_UNUSED_VARIABLE = YES;
473-
MACOSX_DEPLOYMENT_TARGET = 10.11;
534+
MACOSX_DEPLOYMENT_TARGET = 10.14;
474535
MTL_ENABLE_DEBUG_INFO = NO;
475536
SDKROOT = macosx;
476537
SWIFT_COMPILATION_MODE = wholemodule;

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

0 commit comments

Comments
 (0)