Skip to content

Commit

Permalink
Create SPM projects for the example apps (google#153)
Browse files Browse the repository at this point in the history
* Add SPM project for iOS example app.

* Add SPM project for macOS example app.

* Update iOS example readme.
  • Loading branch information
petea authored May 6, 2022
1 parent ebd678a commit 3fee2b6
Show file tree
Hide file tree
Showing 12 changed files with 1,014 additions and 124 deletions.
123 changes: 75 additions & 48 deletions Examples/Example-iOS/Example-iOS.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objectVersion = 52;
objects = {

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

/* Begin PBXFileReference section */
Expand All @@ -31,23 +32,19 @@
34CB09BA1C42007600A54261 /* GTMAppAuthExampleViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GTMAppAuthExampleViewController.h; sourceTree = "<group>"; };
34CB09BB1C42007600A54261 /* GTMAppAuthExampleViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GTMAppAuthExampleViewController.m; sourceTree = "<group>"; };
34CB09BC1C42007600A54261 /* GTMAppAuthExampleViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = GTMAppAuthExampleViewController.xib; sourceTree = "<group>"; };
4D2C3A0F07471D71220EC99E /* libPods-Example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Example.a"; sourceTree = BUILT_PRODUCTS_DIR; };
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>"; };
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>"; };
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>"; };
A66770A5B0DA1953FF4F1CC1 /* libPods-Example-iOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Example-iOS.a"; sourceTree = BUILT_PRODUCTS_DIR; };
C1AF3AE928187F71003BAEFF /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
C1AF3AEA28187F71003BAEFF /* Podfile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Podfile; sourceTree = "<group>"; };
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>"; };
C1B5D35C282598A40068D12B /* GTMAppAuth */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = GTMAppAuth; path = ../..; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
346E91661C29D42800D3620B /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
C1B5D35A282596F00068D12B /* AppAuth in Frameworks */,
346E91991C2A245000D3620B /* SafariServices.framework in Frameworks */,
27923519B02CC850BAE7BB47 /* libPods-Example-iOS.a in Frameworks */,
C1B5D3572825968E0068D12B /* GTMAppAuth in Frameworks */,
C1B5D3622825A4900068D12B /* GTMSessionFetcherCore in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -58,21 +55,18 @@
isa = PBXGroup;
children = (
346E91981C2A245000D3620B /* SafariServices.framework */,
4D2C3A0F07471D71220EC99E /* libPods-Example.a */,
A66770A5B0DA1953FF4F1CC1 /* libPods-Example-iOS.a */,
);
name = Frameworks;
sourceTree = "<group>";
};
346E91601C29D42800D3620B = {
isa = PBXGroup;
children = (
C1AF3AEA28187F71003BAEFF /* Podfile */,
C1B5D35B282598A40068D12B /* Packages */,
C1AF3AE928187F71003BAEFF /* README.md */,
346E916B1C29D42800D3620B /* Source */,
341564001C487ABA00ECA3D9 /* Frameworks */,
346E916A1C29D42800D3620B /* Products */,
981930FF6A96C356DBB3D59A /* Pods */,
);
sourceTree = "<group>";
};
Expand Down Expand Up @@ -100,15 +94,12 @@
path = Source;
sourceTree = "<group>";
};
981930FF6A96C356DBB3D59A /* Pods */ = {
C1B5D35B282598A40068D12B /* Packages */ = {
isa = PBXGroup;
children = (
A2A7E80B84B03CF1A0F2C3C8 /* Pods-Example.debug.xcconfig */,
784EEF4F0056CA06A5723564 /* Pods-Example.release.xcconfig */,
7351FECD4CF1AA2E3D6F17AB /* Pods-Example-iOS.debug.xcconfig */,
FF81BDB7585990BBE84E9946 /* Pods-Example-iOS.release.xcconfig */,
C1B5D35C282598A40068D12B /* GTMAppAuth */,
);
name = Pods;
name = Packages;
sourceTree = "<group>";
};
/* End PBXGroup section */
Expand All @@ -118,7 +109,6 @@
isa = PBXNativeTarget;
buildConfigurationList = 346E91801C29D42800D3620B /* Build configuration list for PBXNativeTarget "Example-iOS" */;
buildPhases = (
BDE4B6070A39E43433C082C5 /* [CP] Check Pods Manifest.lock */,
346E91651C29D42800D3620B /* Sources */,
346E91661C29D42800D3620B /* Frameworks */,
346E91671C29D42800D3620B /* Resources */,
Expand All @@ -128,6 +118,11 @@
dependencies = (
);
name = "Example-iOS";
packageProductDependencies = (
C1B5D3562825968E0068D12B /* GTMAppAuth */,
C1B5D359282596F00068D12B /* AppAuth */,
C1B5D3612825A4900068D12B /* GTMSessionFetcherCore */,
);
productName = Example;
productReference = 346E91691C29D42800D3620B /* Example-iOS.app */;
productType = "com.apple.product-type.application";
Expand Down Expand Up @@ -156,6 +151,11 @@
Base,
);
mainGroup = 346E91601C29D42800D3620B;
packageReferences = (
C1B5D3552825968E0068D12B /* XCRemoteSwiftPackageReference "GTMAppAuth" */,
C1B5D358282596F00068D12B /* XCRemoteSwiftPackageReference "AppAuth-iOS" */,
C1B5D3602825A4900068D12B /* XCRemoteSwiftPackageReference "gtm-session-fetcher" */,
);
productRefGroup = 346E916A1C29D42800D3620B /* Products */;
projectDirPath = "";
projectRoot = "";
Expand All @@ -170,7 +170,6 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
C1AF3AEC28187F71003BAEFF /* Podfile in Resources */,
346E917C1C29D42800D3620B /* LaunchScreen.storyboard in Resources */,
346E91791C29D42800D3620B /* Assets.xcassets in Resources */,
C1AF3AEB28187F71003BAEFF /* README.md in Resources */,
Expand All @@ -180,27 +179,6 @@
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
BDE4B6070A39E43433C082C5 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-Example-iOS-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
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";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
346E91651C29D42800D3620B /* Sources */ = {
isa = PBXSourcesBuildPhase;
Expand Down Expand Up @@ -320,12 +298,14 @@
};
346E91811C29D42800D3620B /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7351FECD4CF1AA2E3D6F17AB /* Pods-Example-iOS.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = Source/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
OTHER_LDFLAGS = (
"-ObjC",
"$(inherited)",
Expand All @@ -337,12 +317,14 @@
};
346E91821C29D42800D3620B /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = FF81BDB7585990BBE84E9946 /* Pods-Example-iOS.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = Source/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
OTHER_LDFLAGS = (
"-ObjC",
"$(inherited)",
Expand Down Expand Up @@ -374,6 +356,51 @@
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
C1B5D3552825968E0068D12B /* XCRemoteSwiftPackageReference "GTMAppAuth" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/google/GTMAppAuth.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 1.0.0;
};
};
C1B5D358282596F00068D12B /* XCRemoteSwiftPackageReference "AppAuth-iOS" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/openid/AppAuth-iOS.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 1.0.0;
};
};
C1B5D3602825A4900068D12B /* XCRemoteSwiftPackageReference "gtm-session-fetcher" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/google/gtm-session-fetcher.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 1.0.0;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
C1B5D3562825968E0068D12B /* GTMAppAuth */ = {
isa = XCSwiftPackageProductDependency;
package = C1B5D3552825968E0068D12B /* XCRemoteSwiftPackageReference "GTMAppAuth" */;
productName = GTMAppAuth;
};
C1B5D359282596F00068D12B /* AppAuth */ = {
isa = XCSwiftPackageProductDependency;
package = C1B5D358282596F00068D12B /* XCRemoteSwiftPackageReference "AppAuth-iOS" */;
productName = AppAuth;
};
C1B5D3612825A4900068D12B /* GTMSessionFetcherCore */ = {
isa = XCSwiftPackageProductDependency;
package = C1B5D3602825A4900068D12B /* XCRemoteSwiftPackageReference "gtm-session-fetcher" */;
productName = GTMSessionFetcherCore;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 346E91611C29D42800D3620B /* Project object */;
}
Loading

0 comments on commit 3fee2b6

Please sign in to comment.