Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 7ea0591

Browse files
committed
[path_provider] Update and migrate iOS example project
1 parent a2b5a77 commit 7ea0591

File tree

4 files changed

+41
-42
lines changed

4 files changed

+41
-42
lines changed

packages/path_provider/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.3.1
2+
3+
* Update and migrate iOS example project.
4+
15
## 1.3.0
26

37
* Added iOS-only support for `getLibraryDirectory`.

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

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
0675671949C15323862C164B /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06B796751C0435964931B69B /* Pods_Runner.framework */; };
1110
2D9222481EC32A19007564B0 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D9222471EC32A19007564B0 /* GeneratedPluginRegistrant.m */; };
1211
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
13-
2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; };
1412
3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
1513
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
14+
85DDFCF6BBDEE02B9D9F8138 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C0EE60090AA5F3AAAF2175B6 /* libPods-Runner.a */; };
1615
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
1716
9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
18-
9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; };
19-
9740EEB51CF90195004384FC /* Generated.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB31CF90195004384FC /* Generated.xcconfig */; };
2017
978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; };
2118
97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; };
2219
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
@@ -40,12 +37,11 @@
4037
/* End PBXCopyFilesBuildPhase section */
4138

4239
/* Begin PBXFileReference section */
43-
06B796751C0435964931B69B /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
4440
2D9222461EC32A19007564B0 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
4541
2D9222471EC32A19007564B0 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
4642
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
47-
2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = Flutter/flutter_assets; sourceTree = SOURCE_ROOT; };
4843
3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
44+
694A199F61914F41AAFD0B7F /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
4945
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
5046
7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
5147
7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
@@ -58,6 +54,8 @@
5854
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
5955
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
6056
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
57+
C0EE60090AA5F3AAAF2175B6 /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; };
58+
D317CA1E83064E01753D8BB5 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
6159
/* End PBXFileReference section */
6260

6361
/* Begin PBXFrameworksBuildPhase section */
@@ -67,7 +65,7 @@
6765
files = (
6866
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
6967
3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
70-
0675671949C15323862C164B /* Pods_Runner.framework in Frameworks */,
68+
85DDFCF6BBDEE02B9D9F8138 /* libPods-Runner.a in Frameworks */,
7169
);
7270
runOnlyForDeploymentPostprocessing = 0;
7371
};
@@ -77,6 +75,8 @@
7775
840012C8B5EDBCF56B0E4AC1 /* Pods */ = {
7876
isa = PBXGroup;
7977
children = (
78+
694A199F61914F41AAFD0B7F /* Pods-Runner.debug.xcconfig */,
79+
D317CA1E83064E01753D8BB5 /* Pods-Runner.release.xcconfig */,
8080
);
8181
name = Pods;
8282
sourceTree = "<group>";
@@ -86,7 +86,6 @@
8686
children = (
8787
3B80C3931E831B6300D905FE /* App.framework */,
8888
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
89-
2D5378251FAA1A9400D5DBA9 /* flutter_assets */,
9089
9740EEBA1CF902C7004384FC /* Flutter.framework */,
9190
9740EEB21CF90195004384FC /* Debug.xcconfig */,
9291
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
@@ -141,7 +140,7 @@
141140
CF3B75C9A7D2FA2A4C99F110 /* Frameworks */ = {
142141
isa = PBXGroup;
143142
children = (
144-
06B796751C0435964931B69B /* Pods_Runner.framework */,
143+
C0EE60090AA5F3AAAF2175B6 /* libPods-Runner.a */,
145144
);
146145
name = Frameworks;
147146
sourceTree = "<group>";
@@ -160,7 +159,6 @@
160159
97C146EC1CF9000F007C117D /* Resources */,
161160
9705A1C41CF9048500538489 /* Embed Frameworks */,
162161
95BB15E9E1769C0D146AA592 /* [CP] Embed Pods Frameworks */,
163-
532EA9D341340B1DCD08293D /* [CP] Copy Pods Resources */,
164162
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
165163
);
166164
buildRules = (
@@ -178,7 +176,7 @@
178176
97C146E61CF9000F007C117D /* Project object */ = {
179177
isa = PBXProject;
180178
attributes = {
181-
LastUpgradeCheck = 0830;
179+
LastUpgradeCheck = 1100;
182180
ORGANIZATIONNAME = "The Chromium Authors";
183181
TargetAttributes = {
184182
97C146ED1CF9000F007C117D = {
@@ -188,7 +186,7 @@
188186
};
189187
buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
190188
compatibilityVersion = "Xcode 3.2";
191-
developmentRegion = English;
189+
developmentRegion = en;
192190
hasScannedForEncodings = 0;
193191
knownRegions = (
194192
en,
@@ -210,10 +208,7 @@
210208
buildActionMask = 2147483647;
211209
files = (
212210
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
213-
9740EEB51CF90195004384FC /* Generated.xcconfig in Resources */,
214211
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
215-
2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */,
216-
9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */,
217212
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
218213
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
219214
);
@@ -236,21 +231,6 @@
236231
shellPath = /bin/sh;
237232
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
238233
};
239-
532EA9D341340B1DCD08293D /* [CP] Copy Pods Resources */ = {
240-
isa = PBXShellScriptBuildPhase;
241-
buildActionMask = 2147483647;
242-
files = (
243-
);
244-
inputPaths = (
245-
);
246-
name = "[CP] Copy Pods Resources";
247-
outputPaths = (
248-
);
249-
runOnlyForDeploymentPostprocessing = 0;
250-
shellPath = /bin/sh;
251-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
252-
showEnvVarsInLog = 0;
253-
};
254234
95BB15E9E1769C0D146AA592 /* [CP] Embed Pods Frameworks */ = {
255235
isa = PBXShellScriptBuildPhase;
256236
buildActionMask = 2147483647;
@@ -263,7 +243,7 @@
263243
);
264244
runOnlyForDeploymentPostprocessing = 0;
265245
shellPath = /bin/sh;
266-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
246+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
267247
showEnvVarsInLog = 0;
268248
};
269249
9740EEB61CF901F6004384FC /* Run Script */ = {
@@ -286,13 +266,16 @@
286266
files = (
287267
);
288268
inputPaths = (
269+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
270+
"${PODS_ROOT}/Manifest.lock",
289271
);
290272
name = "[CP] Check Pods Manifest.lock";
291273
outputPaths = (
274+
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
292275
);
293276
runOnlyForDeploymentPostprocessing = 0;
294277
shellPath = /bin/sh;
295-
shellScript = "diff \"${PODS_ROOT}/../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";
278+
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";
296279
showEnvVarsInLog = 0;
297280
};
298281
/* End PBXShellScriptBuildPhase section */
@@ -335,19 +318,28 @@
335318
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
336319
buildSettings = {
337320
ALWAYS_SEARCH_USER_PATHS = NO;
321+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
338322
CLANG_ANALYZER_NONNULL = YES;
339323
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
340324
CLANG_CXX_LIBRARY = "libc++";
341325
CLANG_ENABLE_MODULES = YES;
342326
CLANG_ENABLE_OBJC_ARC = YES;
327+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
343328
CLANG_WARN_BOOL_CONVERSION = YES;
329+
CLANG_WARN_COMMA = YES;
344330
CLANG_WARN_CONSTANT_CONVERSION = YES;
331+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
345332
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
346333
CLANG_WARN_EMPTY_BODY = YES;
347334
CLANG_WARN_ENUM_CONVERSION = YES;
348335
CLANG_WARN_INFINITE_RECURSION = YES;
349336
CLANG_WARN_INT_CONVERSION = YES;
337+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
338+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
339+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
350340
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
341+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
342+
CLANG_WARN_STRICT_PROTOTYPES = YES;
351343
CLANG_WARN_SUSPICIOUS_MOVE = YES;
352344
CLANG_WARN_UNREACHABLE_CODE = YES;
353345
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -383,19 +375,28 @@
383375
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
384376
buildSettings = {
385377
ALWAYS_SEARCH_USER_PATHS = NO;
378+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
386379
CLANG_ANALYZER_NONNULL = YES;
387380
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
388381
CLANG_CXX_LIBRARY = "libc++";
389382
CLANG_ENABLE_MODULES = YES;
390383
CLANG_ENABLE_OBJC_ARC = YES;
384+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
391385
CLANG_WARN_BOOL_CONVERSION = YES;
386+
CLANG_WARN_COMMA = YES;
392387
CLANG_WARN_CONSTANT_CONVERSION = YES;
388+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
393389
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
394390
CLANG_WARN_EMPTY_BODY = YES;
395391
CLANG_WARN_ENUM_CONVERSION = YES;
396392
CLANG_WARN_INFINITE_RECURSION = YES;
397393
CLANG_WARN_INT_CONVERSION = YES;
394+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
395+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
396+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
398397
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
398+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
399+
CLANG_WARN_STRICT_PROTOTYPES = YES;
399400
CLANG_WARN_SUSPICIOUS_MOVE = YES;
400401
CLANG_WARN_UNREACHABLE_CODE = YES;
401402
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -424,7 +425,6 @@
424425
isa = XCBuildConfiguration;
425426
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
426427
buildSettings = {
427-
ARCHS = arm64;
428428
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
429429
ENABLE_BITCODE = NO;
430430
FRAMEWORK_SEARCH_PATHS = (
@@ -446,7 +446,6 @@
446446
isa = XCBuildConfiguration;
447447
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
448448
buildSettings = {
449-
ARCHS = arm64;
450449
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
451450
ENABLE_BITCODE = NO;
452451
FRAMEWORK_SEARCH_PATHS = (

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0830"
3+
LastUpgradeVersion = "1100"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -27,8 +27,6 @@
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
30-
<Testables>
31-
</Testables>
3230
<MacroExpansion>
3331
<BuildableReference
3432
BuildableIdentifier = "primary"
@@ -38,8 +36,8 @@
3836
ReferencedContainer = "container:Runner.xcodeproj">
3937
</BuildableReference>
4038
</MacroExpansion>
41-
<AdditionalOptions>
42-
</AdditionalOptions>
39+
<Testables>
40+
</Testables>
4341
</TestAction>
4442
<LaunchAction
4543
buildConfiguration = "Debug"
@@ -61,8 +59,6 @@
6159
ReferencedContainer = "container:Runner.xcodeproj">
6260
</BuildableReference>
6361
</BuildableProductRunnable>
64-
<AdditionalOptions>
65-
</AdditionalOptions>
6662
</LaunchAction>
6763
<ProfileAction
6864
buildConfiguration = "Release"

packages/path_provider/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Flutter plugin for getting commonly used locations on the Android &
33
iOS file systems, such as the temp and app data directories.
44
author: Flutter Team <[email protected]>
55
homepage: https://github.com/flutter/plugins/tree/master/packages/path_provider
6-
version: 1.3.0
6+
version: 1.3.1
77

88
flutter:
99
plugin:

0 commit comments

Comments
 (0)