Skip to content

Commit 3fee2b6

Browse files
authored
Create SPM projects for the example apps (#153)
* Add SPM project for iOS example app. * Add SPM project for macOS example app. * Update iOS example readme.
1 parent ebd678a commit 3fee2b6

File tree

12 files changed

+1014
-124
lines changed

12 files changed

+1014
-124
lines changed

Examples/Example-iOS/Example-iOS.xcodeproj/project.pbxproj

Lines changed: 75 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 46;
6+
objectVersion = 52;
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
27923519B02CC850BAE7BB47 /* libPods-Example-iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A66770A5B0DA1953FF4F1CC1 /* libPods-Example-iOS.a */; };
1110
346E916E1C29D42800D3620B /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 346E916D1C29D42800D3620B /* main.m */; };
1211
346E91711C29D42800D3620B /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 346E91701C29D42800D3620B /* AppDelegate.m */; };
1312
346E91791C29D42800D3620B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 346E91781C29D42800D3620B /* Assets.xcassets */; };
@@ -16,7 +15,9 @@
1615
34CB09BD1C42007600A54261 /* GTMAppAuthExampleViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 34CB09BB1C42007600A54261 /* GTMAppAuthExampleViewController.m */; };
1716
34CB09BE1C42007600A54261 /* GTMAppAuthExampleViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 34CB09BC1C42007600A54261 /* GTMAppAuthExampleViewController.xib */; };
1817
C1AF3AEB28187F71003BAEFF /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = C1AF3AE928187F71003BAEFF /* README.md */; };
19-
C1AF3AEC28187F71003BAEFF /* Podfile in Resources */ = {isa = PBXBuildFile; fileRef = C1AF3AEA28187F71003BAEFF /* Podfile */; };
18+
C1B5D3572825968E0068D12B /* GTMAppAuth in Frameworks */ = {isa = PBXBuildFile; productRef = C1B5D3562825968E0068D12B /* GTMAppAuth */; };
19+
C1B5D35A282596F00068D12B /* AppAuth in Frameworks */ = {isa = PBXBuildFile; productRef = C1B5D359282596F00068D12B /* AppAuth */; };
20+
C1B5D3622825A4900068D12B /* GTMSessionFetcherCore in Frameworks */ = {isa = PBXBuildFile; productRef = C1B5D3612825A4900068D12B /* GTMSessionFetcherCore */; };
2021
/* End PBXBuildFile section */
2122

2223
/* Begin PBXFileReference section */
@@ -31,23 +32,19 @@
3132
34CB09BA1C42007600A54261 /* GTMAppAuthExampleViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GTMAppAuthExampleViewController.h; sourceTree = "<group>"; };
3233
34CB09BB1C42007600A54261 /* GTMAppAuthExampleViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GTMAppAuthExampleViewController.m; sourceTree = "<group>"; };
3334
34CB09BC1C42007600A54261 /* GTMAppAuthExampleViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = GTMAppAuthExampleViewController.xib; sourceTree = "<group>"; };
34-
4D2C3A0F07471D71220EC99E /* libPods-Example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Example.a"; sourceTree = BUILT_PRODUCTS_DIR; };
35-
7351FECD4CF1AA2E3D6F17AB /* Pods-Example-iOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Example-iOS.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Example-iOS/Pods-Example-iOS.debug.xcconfig"; sourceTree = "<group>"; };
36-
784EEF4F0056CA06A5723564 /* Pods-Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-Example/Pods-Example.release.xcconfig"; sourceTree = "<group>"; };
37-
A2A7E80B84B03CF1A0F2C3C8 /* Pods-Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Example/Pods-Example.debug.xcconfig"; sourceTree = "<group>"; };
38-
A66770A5B0DA1953FF4F1CC1 /* libPods-Example-iOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Example-iOS.a"; sourceTree = BUILT_PRODUCTS_DIR; };
3935
C1AF3AE928187F71003BAEFF /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
40-
C1AF3AEA28187F71003BAEFF /* Podfile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Podfile; sourceTree = "<group>"; };
41-
FF81BDB7585990BBE84E9946 /* Pods-Example-iOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Example-iOS.release.xcconfig"; path = "Pods/Target Support Files/Pods-Example-iOS/Pods-Example-iOS.release.xcconfig"; sourceTree = "<group>"; };
36+
C1B5D35C282598A40068D12B /* GTMAppAuth */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = GTMAppAuth; path = ../..; sourceTree = "<group>"; };
4237
/* End PBXFileReference section */
4338

4439
/* Begin PBXFrameworksBuildPhase section */
4540
346E91661C29D42800D3620B /* Frameworks */ = {
4641
isa = PBXFrameworksBuildPhase;
4742
buildActionMask = 2147483647;
4843
files = (
44+
C1B5D35A282596F00068D12B /* AppAuth in Frameworks */,
4945
346E91991C2A245000D3620B /* SafariServices.framework in Frameworks */,
50-
27923519B02CC850BAE7BB47 /* libPods-Example-iOS.a in Frameworks */,
46+
C1B5D3572825968E0068D12B /* GTMAppAuth in Frameworks */,
47+
C1B5D3622825A4900068D12B /* GTMSessionFetcherCore in Frameworks */,
5148
);
5249
runOnlyForDeploymentPostprocessing = 0;
5350
};
@@ -58,21 +55,18 @@
5855
isa = PBXGroup;
5956
children = (
6057
346E91981C2A245000D3620B /* SafariServices.framework */,
61-
4D2C3A0F07471D71220EC99E /* libPods-Example.a */,
62-
A66770A5B0DA1953FF4F1CC1 /* libPods-Example-iOS.a */,
6358
);
6459
name = Frameworks;
6560
sourceTree = "<group>";
6661
};
6762
346E91601C29D42800D3620B = {
6863
isa = PBXGroup;
6964
children = (
70-
C1AF3AEA28187F71003BAEFF /* Podfile */,
65+
C1B5D35B282598A40068D12B /* Packages */,
7166
C1AF3AE928187F71003BAEFF /* README.md */,
7267
346E916B1C29D42800D3620B /* Source */,
7368
341564001C487ABA00ECA3D9 /* Frameworks */,
7469
346E916A1C29D42800D3620B /* Products */,
75-
981930FF6A96C356DBB3D59A /* Pods */,
7670
);
7771
sourceTree = "<group>";
7872
};
@@ -100,15 +94,12 @@
10094
path = Source;
10195
sourceTree = "<group>";
10296
};
103-
981930FF6A96C356DBB3D59A /* Pods */ = {
97+
C1B5D35B282598A40068D12B /* Packages */ = {
10498
isa = PBXGroup;
10599
children = (
106-
A2A7E80B84B03CF1A0F2C3C8 /* Pods-Example.debug.xcconfig */,
107-
784EEF4F0056CA06A5723564 /* Pods-Example.release.xcconfig */,
108-
7351FECD4CF1AA2E3D6F17AB /* Pods-Example-iOS.debug.xcconfig */,
109-
FF81BDB7585990BBE84E9946 /* Pods-Example-iOS.release.xcconfig */,
100+
C1B5D35C282598A40068D12B /* GTMAppAuth */,
110101
);
111-
name = Pods;
102+
name = Packages;
112103
sourceTree = "<group>";
113104
};
114105
/* End PBXGroup section */
@@ -118,7 +109,6 @@
118109
isa = PBXNativeTarget;
119110
buildConfigurationList = 346E91801C29D42800D3620B /* Build configuration list for PBXNativeTarget "Example-iOS" */;
120111
buildPhases = (
121-
BDE4B6070A39E43433C082C5 /* [CP] Check Pods Manifest.lock */,
122112
346E91651C29D42800D3620B /* Sources */,
123113
346E91661C29D42800D3620B /* Frameworks */,
124114
346E91671C29D42800D3620B /* Resources */,
@@ -128,6 +118,11 @@
128118
dependencies = (
129119
);
130120
name = "Example-iOS";
121+
packageProductDependencies = (
122+
C1B5D3562825968E0068D12B /* GTMAppAuth */,
123+
C1B5D359282596F00068D12B /* AppAuth */,
124+
C1B5D3612825A4900068D12B /* GTMSessionFetcherCore */,
125+
);
131126
productName = Example;
132127
productReference = 346E91691C29D42800D3620B /* Example-iOS.app */;
133128
productType = "com.apple.product-type.application";
@@ -156,6 +151,11 @@
156151
Base,
157152
);
158153
mainGroup = 346E91601C29D42800D3620B;
154+
packageReferences = (
155+
C1B5D3552825968E0068D12B /* XCRemoteSwiftPackageReference "GTMAppAuth" */,
156+
C1B5D358282596F00068D12B /* XCRemoteSwiftPackageReference "AppAuth-iOS" */,
157+
C1B5D3602825A4900068D12B /* XCRemoteSwiftPackageReference "gtm-session-fetcher" */,
158+
);
159159
productRefGroup = 346E916A1C29D42800D3620B /* Products */;
160160
projectDirPath = "";
161161
projectRoot = "";
@@ -170,7 +170,6 @@
170170
isa = PBXResourcesBuildPhase;
171171
buildActionMask = 2147483647;
172172
files = (
173-
C1AF3AEC28187F71003BAEFF /* Podfile in Resources */,
174173
346E917C1C29D42800D3620B /* LaunchScreen.storyboard in Resources */,
175174
346E91791C29D42800D3620B /* Assets.xcassets in Resources */,
176175
C1AF3AEB28187F71003BAEFF /* README.md in Resources */,
@@ -180,27 +179,6 @@
180179
};
181180
/* End PBXResourcesBuildPhase section */
182181

183-
/* Begin PBXShellScriptBuildPhase section */
184-
BDE4B6070A39E43433C082C5 /* [CP] Check Pods Manifest.lock */ = {
185-
isa = PBXShellScriptBuildPhase;
186-
buildActionMask = 2147483647;
187-
files = (
188-
);
189-
inputPaths = (
190-
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
191-
"${PODS_ROOT}/Manifest.lock",
192-
);
193-
name = "[CP] Check Pods Manifest.lock";
194-
outputPaths = (
195-
"$(DERIVED_FILE_DIR)/Pods-Example-iOS-checkManifestLockResult.txt",
196-
);
197-
runOnlyForDeploymentPostprocessing = 0;
198-
shellPath = /bin/sh;
199-
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";
200-
showEnvVarsInLog = 0;
201-
};
202-
/* End PBXShellScriptBuildPhase section */
203-
204182
/* Begin PBXSourcesBuildPhase section */
205183
346E91651C29D42800D3620B /* Sources */ = {
206184
isa = PBXSourcesBuildPhase;
@@ -320,12 +298,14 @@
320298
};
321299
346E91811C29D42800D3620B /* Debug */ = {
322300
isa = XCBuildConfiguration;
323-
baseConfigurationReference = 7351FECD4CF1AA2E3D6F17AB /* Pods-Example-iOS.debug.xcconfig */;
324301
buildSettings = {
325302
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
326303
INFOPLIST_FILE = Source/Info.plist;
327304
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
328-
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
305+
LD_RUNPATH_SEARCH_PATHS = (
306+
"$(inherited)",
307+
"@executable_path/Frameworks",
308+
);
329309
OTHER_LDFLAGS = (
330310
"-ObjC",
331311
"$(inherited)",
@@ -337,12 +317,14 @@
337317
};
338318
346E91821C29D42800D3620B /* Release */ = {
339319
isa = XCBuildConfiguration;
340-
baseConfigurationReference = FF81BDB7585990BBE84E9946 /* Pods-Example-iOS.release.xcconfig */;
341320
buildSettings = {
342321
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
343322
INFOPLIST_FILE = Source/Info.plist;
344323
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
345-
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
324+
LD_RUNPATH_SEARCH_PATHS = (
325+
"$(inherited)",
326+
"@executable_path/Frameworks",
327+
);
346328
OTHER_LDFLAGS = (
347329
"-ObjC",
348330
"$(inherited)",
@@ -374,6 +356,51 @@
374356
defaultConfigurationName = Release;
375357
};
376358
/* End XCConfigurationList section */
359+
360+
/* Begin XCRemoteSwiftPackageReference section */
361+
C1B5D3552825968E0068D12B /* XCRemoteSwiftPackageReference "GTMAppAuth" */ = {
362+
isa = XCRemoteSwiftPackageReference;
363+
repositoryURL = "https://github.com/google/GTMAppAuth.git";
364+
requirement = {
365+
kind = upToNextMajorVersion;
366+
minimumVersion = 1.0.0;
367+
};
368+
};
369+
C1B5D358282596F00068D12B /* XCRemoteSwiftPackageReference "AppAuth-iOS" */ = {
370+
isa = XCRemoteSwiftPackageReference;
371+
repositoryURL = "https://github.com/openid/AppAuth-iOS.git";
372+
requirement = {
373+
kind = upToNextMajorVersion;
374+
minimumVersion = 1.0.0;
375+
};
376+
};
377+
C1B5D3602825A4900068D12B /* XCRemoteSwiftPackageReference "gtm-session-fetcher" */ = {
378+
isa = XCRemoteSwiftPackageReference;
379+
repositoryURL = "https://github.com/google/gtm-session-fetcher.git";
380+
requirement = {
381+
kind = upToNextMajorVersion;
382+
minimumVersion = 1.0.0;
383+
};
384+
};
385+
/* End XCRemoteSwiftPackageReference section */
386+
387+
/* Begin XCSwiftPackageProductDependency section */
388+
C1B5D3562825968E0068D12B /* GTMAppAuth */ = {
389+
isa = XCSwiftPackageProductDependency;
390+
package = C1B5D3552825968E0068D12B /* XCRemoteSwiftPackageReference "GTMAppAuth" */;
391+
productName = GTMAppAuth;
392+
};
393+
C1B5D359282596F00068D12B /* AppAuth */ = {
394+
isa = XCSwiftPackageProductDependency;
395+
package = C1B5D358282596F00068D12B /* XCRemoteSwiftPackageReference "AppAuth-iOS" */;
396+
productName = AppAuth;
397+
};
398+
C1B5D3612825A4900068D12B /* GTMSessionFetcherCore */ = {
399+
isa = XCSwiftPackageProductDependency;
400+
package = C1B5D3602825A4900068D12B /* XCRemoteSwiftPackageReference "gtm-session-fetcher" */;
401+
productName = GTMSessionFetcherCore;
402+
};
403+
/* End XCSwiftPackageProductDependency section */
377404
};
378405
rootObject = 346E91611C29D42800D3620B /* Project object */;
379406
}

0 commit comments

Comments
 (0)