From 753b75229fd6a2db5e75174fd77139319e96dd69 Mon Sep 17 00:00:00 2001 From: Okhan Okbay Date: Tue, 26 Mar 2024 17:18:19 +0000 Subject: [PATCH] Update Package.swift file to include OOB SDK --- Package.swift | 13 ++++++- .../project.pbxproj | 39 ++++++------------- 2 files changed, 22 insertions(+), 30 deletions(-) diff --git a/Package.swift b/Package.swift index 730b92c..ca0ec6a 100644 --- a/Package.swift +++ b/Package.swift @@ -15,11 +15,17 @@ let package = Package( .library( name: "CheckoutCardManagementStub", targets: ["CheckoutCardManagementStub"]), + .library( + name: "CheckoutOOBSDK", + targets: ["CheckoutOOBSDK"]) ], dependencies: [ .package( - url: "https://github.com/checkout/checkout-event-logger-ios-framework", - from: "1.2.1"), + url: "https://github.com/checkout/checkout-event-logger-ios-framework.git", + from: "1.2.4"), + .package( + url: "https://github.com/checkout/NetworkClient-iOS.git", + from: "1.1.1"), ], targets: [ .target( @@ -44,5 +50,8 @@ let package = Package( .binaryTarget( name: "CheckoutCardNetworkStub", path: "SupportFrameworks/CheckoutCardNetworkStub.xcframework"), + .binaryTarget( + name: "CheckoutOOBSDK", + path: "SupportFrameworks/CheckoutOOBSDK.xcframework"), ] ) diff --git a/Sample Application/SampleApplication.xcodeproj/project.pbxproj b/Sample Application/SampleApplication.xcodeproj/project.pbxproj index f0c011c..078af56 100644 --- a/Sample Application/SampleApplication.xcodeproj/project.pbxproj +++ b/Sample Application/SampleApplication.xcodeproj/project.pbxproj @@ -10,6 +10,7 @@ 0BBC8C9229FBC509002AA8FB /* CardListViewModel+LayoutCalculations.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0BBC8C9129FBC508002AA8FB /* CardListViewModel+LayoutCalculations.swift */; }; 16262FDA29D477D500C60EA4 /* DesignSystem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 16262FD929D477D500C60EA4 /* DesignSystem.swift */; }; 16262FDC29D4963400C60EA4 /* Credentials.swift in Sources */ = {isa = PBXBuildFile; fileRef = 16262FDB29D4963400C60EA4 /* Credentials.swift */; }; + 162749172BB33A2600984219 /* CheckoutNetwork in Frameworks */ = {isa = PBXBuildFile; productRef = 162749162BB33A2600984219 /* CheckoutNetwork */; }; 164129BE29DAB9D900BA3848 /* AuthenticationRecord.swift in Sources */ = {isa = PBXBuildFile; fileRef = 164129BD29DAB9D900BA3848 /* AuthenticationRecord.swift */; }; 1658CCB029D2ED6D000AB6F6 /* SpinningCircleView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1658CC9629D2ED6C000AB6F6 /* SpinningCircleView.swift */; }; 1658CCB129D2ED6D000AB6F6 /* LockView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1658CC9729D2ED6C000AB6F6 /* LockView.swift */; }; @@ -28,8 +29,6 @@ 16725FD42A1CCE9E00910DC5 /* Authenticator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 16725FD32A1CCE9E00910DC5 /* Authenticator.swift */; }; 16725FD62A1CD83200910DC5 /* NetworkEndpoint.swift in Sources */ = {isa = PBXBuildFile; fileRef = 16725FD52A1CD83200910DC5 /* NetworkEndpoint.swift */; }; 16925A542A1FA96200C44AAF /* AuthenticationValidator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 16925A532A1FA96200C44AAF /* AuthenticationValidator.swift */; }; - 16D74E5C2A27AE4B005F2157 /* CheckoutNetwork in Frameworks */ = {isa = PBXBuildFile; productRef = 16D74E5B2A27AE4B005F2157 /* CheckoutNetwork */; }; - 16D74E5F2A27AE67005F2157 /* CheckoutCardManagementStub in Frameworks */ = {isa = PBXBuildFile; productRef = 16D74E5E2A27AE67005F2157 /* CheckoutCardManagementStub */; }; 16F7C87929C22A9000ECB801 /* SampleApplicationApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 16F7C87829C22A9000ECB801 /* SampleApplicationApp.swift */; }; 16F7C87D29C22A9200ECB801 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 16F7C87C29C22A9200ECB801 /* Assets.xcassets */; }; 16F7C89529C22A9200ECB801 /* SampleApplicationUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 16F7C89429C22A9200ECB801 /* SampleApplicationUITests.swift */; }; @@ -101,8 +100,7 @@ buildActionMask = 2147483647; files = ( 16F7C8A829C22BA200ECB801 /* SwiftJWT in Frameworks */, - 16D74E5C2A27AE4B005F2157 /* CheckoutNetwork in Frameworks */, - 16D74E5F2A27AE67005F2157 /* CheckoutCardManagementStub in Frameworks */, + 162749172BB33A2600984219 /* CheckoutNetwork in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -288,8 +286,7 @@ name = SampleApplication; packageProductDependencies = ( 16F7C8A729C22BA200ECB801 /* SwiftJWT */, - 16D74E5B2A27AE4B005F2157 /* CheckoutNetwork */, - 16D74E5E2A27AE67005F2157 /* CheckoutCardManagementStub */, + 162749162BB33A2600984219 /* CheckoutNetwork */, ); productName = SampleApplication; productReference = 16F7C87529C22A9000ECB801 /* SampleApplication.app */; @@ -343,8 +340,7 @@ mainGroup = 16F7C86C29C22A9000ECB801; packageReferences = ( 16F7C8A629C22BA200ECB801 /* XCRemoteSwiftPackageReference "Swift-JWT" */, - 16F7C8A929C22BF500ECB801 /* XCRemoteSwiftPackageReference "NetworkClient-iOS" */, - 16D74E5D2A27AE67005F2157 /* XCRemoteSwiftPackageReference "CheckoutCardManagement-iOS" */, + 162749152BB33A2600984219 /* XCRemoteSwiftPackageReference "NetworkClient-iOS" */, ); productRefGroup = 16F7C87629C22A9000ECB801 /* Products */; projectDirPath = ""; @@ -711,43 +707,30 @@ /* End XCConfigurationList section */ /* Begin XCRemoteSwiftPackageReference section */ - 16D74E5D2A27AE67005F2157 /* XCRemoteSwiftPackageReference "CheckoutCardManagement-iOS" */ = { + 162749152BB33A2600984219 /* XCRemoteSwiftPackageReference "NetworkClient-iOS" */ = { isa = XCRemoteSwiftPackageReference; - repositoryURL = "git@github.com:checkout/CheckoutCardManagement-iOS.git"; + repositoryURL = "https://github.com/checkout/NetworkClient-iOS"; requirement = { kind = upToNextMajorVersion; - minimumVersion = 1.0.0; + minimumVersion = 1.1.1; }; }; 16F7C8A629C22BA200ECB801 /* XCRemoteSwiftPackageReference "Swift-JWT" */ = { isa = XCRemoteSwiftPackageReference; repositoryURL = "https://github.com/Kitura/Swift-JWT.git"; requirement = { - branch = master; - kind = branch; - }; - }; - 16F7C8A929C22BF500ECB801 /* XCRemoteSwiftPackageReference "NetworkClient-iOS" */ = { - isa = XCRemoteSwiftPackageReference; - repositoryURL = "git@github.com:checkout/NetworkClient-iOS.git"; - requirement = { - branch = main; - kind = branch; + kind = upToNextMajorVersion; + minimumVersion = 4.0.0; }; }; /* End XCRemoteSwiftPackageReference section */ /* Begin XCSwiftPackageProductDependency section */ - 16D74E5B2A27AE4B005F2157 /* CheckoutNetwork */ = { + 162749162BB33A2600984219 /* CheckoutNetwork */ = { isa = XCSwiftPackageProductDependency; - package = 16F7C8A929C22BF500ECB801 /* XCRemoteSwiftPackageReference "NetworkClient-iOS" */; + package = 162749152BB33A2600984219 /* XCRemoteSwiftPackageReference "NetworkClient-iOS" */; productName = CheckoutNetwork; }; - 16D74E5E2A27AE67005F2157 /* CheckoutCardManagementStub */ = { - isa = XCSwiftPackageProductDependency; - package = 16D74E5D2A27AE67005F2157 /* XCRemoteSwiftPackageReference "CheckoutCardManagement-iOS" */; - productName = CheckoutCardManagementStub; - }; 16F7C8A729C22BA200ECB801 /* SwiftJWT */ = { isa = XCSwiftPackageProductDependency; package = 16F7C8A629C22BA200ECB801 /* XCRemoteSwiftPackageReference "Swift-JWT" */;