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

Commit ee3bc9e

Browse files
authored
[share] Update and migrate iOS example project (#2102)
1 parent 8b093a9 commit ee3bc9e

File tree

4 files changed

+33
-40
lines changed

4 files changed

+33
-40
lines changed

packages/share/CHANGELOG.md

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

37
* Specify explicit type for `invokeMethod`.

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

Lines changed: 25 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,12 @@
88

99
/* Begin PBXBuildFile section */
1010
28918A213BCB94C5470742D8 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 85392794417D70A970945C83 /* libPods-Runner.a */; };
11-
2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; };
1211
2D9222511EC45DE6007564B0 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D9222501EC45DE6007564B0 /* GeneratedPluginRegistrant.m */; };
1312
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
1413
3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
1514
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
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,7 +37,8 @@
4037
/* End PBXCopyFilesBuildPhase section */
4138

4239
/* Begin PBXFileReference section */
43-
2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = Flutter/flutter_assets; sourceTree = SOURCE_ROOT; };
40+
002F2AAB9479773692FEF066 /* 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>"; };
41+
1BCE6CBBA2E91FD0397A29C8 /* 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>"; };
4442
2D92224F1EC45DE6007564B0 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
4543
2D9222501EC45DE6007564B0 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
4644
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
@@ -77,6 +75,8 @@
7775
16DDF472245BCC3E62219493 /* Pods */ = {
7876
isa = PBXGroup;
7977
children = (
78+
1BCE6CBBA2E91FD0397A29C8 /* Pods-Runner.debug.xcconfig */,
79+
002F2AAB9479773692FEF066 /* Pods-Runner.release.xcconfig */,
8080
);
8181
name = Pods;
8282
sourceTree = "<group>";
@@ -94,7 +94,6 @@
9494
children = (
9595
3B80C3931E831B6300D905FE /* App.framework */,
9696
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
97-
2D5378251FAA1A9400D5DBA9 /* flutter_assets */,
9897
9740EEBA1CF902C7004384FC /* Flutter.framework */,
9998
9740EEB21CF90195004384FC /* Debug.xcconfig */,
10099
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
@@ -161,7 +160,6 @@
161160
9705A1C41CF9048500538489 /* Embed Frameworks */,
162161
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
163162
12A149CFB1B2610A83692801 /* [CP] Embed Pods Frameworks */,
164-
51BF93FA4709A7E622DF9066 /* [CP] Copy Pods Resources */,
165163
);
166164
buildRules = (
167165
);
@@ -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
);
@@ -228,16 +223,13 @@
228223
files = (
229224
);
230225
inputPaths = (
231-
"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
232-
"${PODS_ROOT}/.symlinks/flutter/ios/Flutter.framework",
233226
);
234227
name = "[CP] Embed Pods Frameworks";
235228
outputPaths = (
236-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
237229
);
238230
runOnlyForDeploymentPostprocessing = 0;
239231
shellPath = /bin/sh;
240-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
232+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
241233
showEnvVarsInLog = 0;
242234
};
243235
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
@@ -254,21 +246,6 @@
254246
shellPath = /bin/sh;
255247
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
256248
};
257-
51BF93FA4709A7E622DF9066 /* [CP] Copy Pods Resources */ = {
258-
isa = PBXShellScriptBuildPhase;
259-
buildActionMask = 2147483647;
260-
files = (
261-
);
262-
inputPaths = (
263-
);
264-
name = "[CP] Copy Pods Resources";
265-
outputPaths = (
266-
);
267-
runOnlyForDeploymentPostprocessing = 0;
268-
shellPath = /bin/sh;
269-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
270-
showEnvVarsInLog = 0;
271-
};
272249
5F8AC0B5B699C537B657C107 /* [CP] Check Pods Manifest.lock */ = {
273250
isa = PBXShellScriptBuildPhase;
274251
buildActionMask = 2147483647;
@@ -341,19 +318,28 @@
341318
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
342319
buildSettings = {
343320
ALWAYS_SEARCH_USER_PATHS = NO;
321+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
344322
CLANG_ANALYZER_NONNULL = YES;
345323
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
346324
CLANG_CXX_LIBRARY = "libc++";
347325
CLANG_ENABLE_MODULES = YES;
348326
CLANG_ENABLE_OBJC_ARC = YES;
327+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
349328
CLANG_WARN_BOOL_CONVERSION = YES;
329+
CLANG_WARN_COMMA = YES;
350330
CLANG_WARN_CONSTANT_CONVERSION = YES;
331+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
351332
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
352333
CLANG_WARN_EMPTY_BODY = YES;
353334
CLANG_WARN_ENUM_CONVERSION = YES;
354335
CLANG_WARN_INFINITE_RECURSION = YES;
355336
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;
356340
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
341+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
342+
CLANG_WARN_STRICT_PROTOTYPES = YES;
357343
CLANG_WARN_SUSPICIOUS_MOVE = YES;
358344
CLANG_WARN_UNREACHABLE_CODE = YES;
359345
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -389,19 +375,28 @@
389375
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
390376
buildSettings = {
391377
ALWAYS_SEARCH_USER_PATHS = NO;
378+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
392379
CLANG_ANALYZER_NONNULL = YES;
393380
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
394381
CLANG_CXX_LIBRARY = "libc++";
395382
CLANG_ENABLE_MODULES = YES;
396383
CLANG_ENABLE_OBJC_ARC = YES;
384+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
397385
CLANG_WARN_BOOL_CONVERSION = YES;
386+
CLANG_WARN_COMMA = YES;
398387
CLANG_WARN_CONSTANT_CONVERSION = YES;
388+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
399389
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
400390
CLANG_WARN_EMPTY_BODY = YES;
401391
CLANG_WARN_ENUM_CONVERSION = YES;
402392
CLANG_WARN_INFINITE_RECURSION = YES;
403393
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;
404397
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
398+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
399+
CLANG_WARN_STRICT_PROTOTYPES = YES;
405400
CLANG_WARN_SUSPICIOUS_MOVE = YES;
406401
CLANG_WARN_UNREACHABLE_CODE = YES;
407402
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -430,7 +425,6 @@
430425
isa = XCBuildConfiguration;
431426
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
432427
buildSettings = {
433-
ARCHS = arm64;
434428
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
435429
ENABLE_BITCODE = NO;
436430
FRAMEWORK_SEARCH_PATHS = (
@@ -452,7 +446,6 @@
452446
isa = XCBuildConfiguration;
453447
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
454448
buildSettings = {
455-
ARCHS = arm64;
456449
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
457450
ENABLE_BITCODE = NO;
458451
FRAMEWORK_SEARCH_PATHS = (

packages/share/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/share/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Flutter plugin for sharing content via the platform share UI, using
33
the ACTION_SEND intent on Android and UIActivityViewController on iOS.
44
author: Flutter Team <[email protected]>
55
homepage: https://github.com/flutter/plugins/tree/master/packages/share
6-
version: 0.6.2+1
6+
version: 0.6.2+2
77

88
flutter:
99
plugin:

0 commit comments

Comments
 (0)