Skip to content

Commit

Permalink
Switch to SwitchKeychain package in Xcode project
Browse files Browse the repository at this point in the history
  • Loading branch information
jozefizso committed Nov 3, 2024
1 parent 5564be8 commit 61f6e5d
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 23 deletions.
120 changes: 101 additions & 19 deletions OAuth2.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
archiveVersion = 1;
classes = {
};
objectVersion = 47;
objectVersion = 54;
objects = {

/* Begin PBXBuildFile section */
0C2F5E5B1DE2DB8500F621E0 /* OAuth2CodeGrantAzure.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C2F5E5A1DE2DB8500F621E0 /* OAuth2CodeGrantAzure.swift */; };
19C919DD1E51CC8000BFC834 /* OAuth2CustomAuthorizer+macOS.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19C919DC1E51CC8000BFC834 /* OAuth2CustomAuthorizer+macOS.swift */; };
64A52E492CD7C51300596016 /* SwiftKeychain in Frameworks */ = {isa = PBXBuildFile; productRef = 64A52E482CD7C51300596016 /* SwiftKeychain */; };
64A52E4C2CD7C51A00596016 /* SwiftKeychain in Frameworks */ = {isa = PBXBuildFile; productRef = 64A52E4B2CD7C51A00596016 /* SwiftKeychain */; };
64A52E4E2CD7C52000596016 /* SwiftKeychain in Frameworks */ = {isa = PBXBuildFile; productRef = 64A52E4D2CD7C52000596016 /* SwiftKeychain */; };
6598544E1C5B3C9500237D39 /* OAuth2Authorizer+tvOS.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6598543F1C5B3B4000237D39 /* OAuth2Authorizer+tvOS.swift */; };
6598544F1C5B3C9C00237D39 /* OAuth2Base.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEDB8640193FAB9200C4EEA1 /* OAuth2Base.swift */; };
659854501C5B3C9C00237D39 /* OAuth2Requestable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEF47D2A1B1E3FDD0057D838 /* OAuth2Requestable.swift */; };
Expand Down Expand Up @@ -234,20 +237,23 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
64A52E4E2CD7C52000596016 /* SwiftKeychain in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
EEDB8620193FAAE500C4EEA1 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
64A52E4C2CD7C51A00596016 /* SwiftKeychain in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
EEE209431942772800736F1A /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
64A52E492CD7C51300596016 /* SwiftKeychain in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -261,6 +267,13 @@
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
64A52E4A2CD7C51A00596016 /* Frameworks */ = {
isa = PBXGroup;
children = (
);
name = Frameworks;
sourceTree = "<group>";
};
65D294B91C57CB47009DA970 /* tvOS */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -388,6 +401,7 @@
EE01F96E1C58D5D6003AEA7E /* generate-docs.sh */,
EEDB8626193FAAE500C4EEA1 /* OAuth2 */,
EEE209A319427DFE00736F1A /* Tests */,
64A52E4A2CD7C51A00596016 /* Frameworks */,
EEDB8625193FAAE500C4EEA1 /* Products */,
);
sourceTree = "<group>";
Expand Down Expand Up @@ -591,6 +605,9 @@
Base,
);
mainGroup = EEDB861A193FAAE500C4EEA1;
packageReferences = (
64A52E472CD7C51300596016 /* XCRemoteSwiftPackageReference "SwiftKeychain" */,
);
productRefGroup = EEDB8625193FAAE500C4EEA1 /* Products */;
projectDirPath = "";
projectRoot = "";
Expand Down Expand Up @@ -820,9 +837,13 @@
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "$(SRCROOT)/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MTL_ENABLE_DEBUG_INFO = YES;
OTHER_SWIFT_FLAGS = "-DNO_KEYCHAIN_IMPORT -DNO_MODULE_IMPORT";
OTHER_SWIFT_FLAGS = "-DNO_MODULE_IMPORT";
PRODUCT_BUNDLE_IDENTIFIER = com.github.p2.OAuth2;
PRODUCT_NAME = OAuth2;
SDKROOT = appletvos;
Expand All @@ -844,14 +865,19 @@
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "$(SRCROOT)/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MTL_ENABLE_DEBUG_INFO = NO;
OTHER_SWIFT_FLAGS = "-DNO_KEYCHAIN_IMPORT -DNO_MODULE_IMPORT";
OTHER_SWIFT_FLAGS = "-DNO_MODULE_IMPORT";
PRODUCT_BUNDLE_IDENTIFIER = com.github.p2.OAuth2;
PRODUCT_NAME = OAuth2;
SDKROOT = appletvos;
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
TARGETED_DEVICE_FAMILY = 3;
};
name = Release;
Expand Down Expand Up @@ -987,8 +1013,12 @@
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "$(SRCROOT)/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
OTHER_SWIFT_FLAGS = "-DNO_KEYCHAIN_IMPORT -DNO_MODULE_IMPORT";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
OTHER_SWIFT_FLAGS = "-DNO_MODULE_IMPORT";
PRODUCT_BUNDLE_IDENTIFIER = "com.github.p2.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = OAuth2;
SKIP_INSTALL = YES;
Expand All @@ -1007,12 +1037,17 @@
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "$(SRCROOT)/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
OTHER_SWIFT_FLAGS = "-DNO_KEYCHAIN_IMPORT -DNO_MODULE_IMPORT";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
OTHER_SWIFT_FLAGS = "-DNO_MODULE_IMPORT";
PRODUCT_BUNDLE_IDENTIFIER = "com.github.p2.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = OAuth2;
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
};
name = Release;
};
Expand All @@ -1028,8 +1063,12 @@
FRAMEWORK_VERSION = A;
INFOPLIST_FILE = "$(SRCROOT)/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
OTHER_SWIFT_FLAGS = "-DNO_KEYCHAIN_IMPORT -DNO_MODULE_IMPORT";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
"@loader_path/../Frameworks",
);
OTHER_SWIFT_FLAGS = "-DNO_MODULE_IMPORT";
PRODUCT_BUNDLE_IDENTIFIER = "com.github.p2.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = OAuth2;
SDKROOT = macosx;
Expand All @@ -1050,13 +1089,18 @@
FRAMEWORK_VERSION = A;
INFOPLIST_FILE = "$(SRCROOT)/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
OTHER_SWIFT_FLAGS = "-DNO_KEYCHAIN_IMPORT -DNO_MODULE_IMPORT";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
"@loader_path/../Frameworks",
);
OTHER_SWIFT_FLAGS = "-DNO_MODULE_IMPORT";
PRODUCT_BUNDLE_IDENTIFIER = "com.github.p2.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = OAuth2;
SDKROOT = macosx;
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
};
name = Release;
};
Expand All @@ -1069,7 +1113,11 @@
"$(inherited)",
);
INFOPLIST_FILE = Tests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
"@loader_path/../Frameworks",
);
METAL_ENABLE_DEBUG_INFO = YES;
OTHER_SWIFT_FLAGS = "-DNO_MODULE_IMPORT";
PRODUCT_BUNDLE_IDENTIFIER = "com.github.p2.${PRODUCT_NAME:rfc1034identifier}";
Expand All @@ -1088,13 +1136,18 @@
"$(inherited)",
);
INFOPLIST_FILE = Tests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
"@loader_path/../Frameworks",
);
METAL_ENABLE_DEBUG_INFO = NO;
OTHER_SWIFT_FLAGS = "-DNO_MODULE_IMPORT";
PRODUCT_BUNDLE_IDENTIFIER = "com.github.p2.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
};
name = Release;
};
Expand Down Expand Up @@ -1147,6 +1200,35 @@
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
64A52E472CD7C51300596016 /* XCRemoteSwiftPackageReference "SwiftKeychain" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/jozefizso/SwiftKeychain.git";
requirement = {
branch = package;
kind = branch;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
64A52E482CD7C51300596016 /* SwiftKeychain */ = {
isa = XCSwiftPackageProductDependency;
package = 64A52E472CD7C51300596016 /* XCRemoteSwiftPackageReference "SwiftKeychain" */;
productName = SwiftKeychain;
};
64A52E4B2CD7C51A00596016 /* SwiftKeychain */ = {
isa = XCSwiftPackageProductDependency;
package = 64A52E472CD7C51300596016 /* XCRemoteSwiftPackageReference "SwiftKeychain" */;
productName = SwiftKeychain;
};
64A52E4D2CD7C52000596016 /* SwiftKeychain */ = {
isa = XCSwiftPackageProductDependency;
package = 64A52E472CD7C51300596016 /* XCRemoteSwiftPackageReference "SwiftKeychain" */;
productName = SwiftKeychain;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = EEDB861B193FAAE500C4EEA1 /* Project object */;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"originHash" : "ae171b0f49c373efee506bb2ae3fecbc5e53e2fe19a4ef907ab4c5ed1cbe6545",
"pins" : [
{
"identity" : "swiftkeychain",
"kind" : "remoteSourceControl",
"location" : "https://github.com/jozefizso/SwiftKeychain.git",
"state" : {
"branch" : "package",
"revision" : "5909fdb4f5d8d4e63a1c79ccd363627a6134a1f5"
}
}
],
"version" : 3
}
3 changes: 0 additions & 3 deletions Sources/Base/OAuth2KeychainAccount.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@
//

import Foundation
#if !NO_KEYCHAIN_IMPORT // needs to be imported when using `swift build`, not when building via Xcode
import SwiftKeychain
#endif


/**
Keychain integration handler for OAuth2.
Expand Down
2 changes: 1 addition & 1 deletion p2.OAuth2.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Pod::Spec.new do |s|
s.osx.deployment_target = '10.15'
s.tvos.deployment_target = '12.0'
s.pod_target_xcconfig = {
'OTHER_SWIFT_FLAGS' => '-DNO_MODULE_IMPORT -DNO_KEYCHAIN_IMPORT'
'OTHER_SWIFT_FLAGS' => '-DNO_MODULE_IMPORT'
}

s.source_files = [
Expand Down

0 comments on commit 61f6e5d

Please sign in to comment.