Skip to content

Commit

Permalink
feat: Support for 3DS SDK v2.1.0 (#764)
Browse files Browse the repository at this point in the history
* remove unused mock

* Use apiKey for 3DS init

* Use apiKey in 3DS init

* Correct dependency for SPM

* Point to 3DS 2.1.0 podspec while CDN is not up-to-date

---------

Co-authored-by: Jack Newcombe <[email protected]>
Co-authored-by: semirp <[email protected]>
  • Loading branch information
3 people authored Dec 15, 2023
1 parent bcc713d commit 3fd6853
Show file tree
Hide file tree
Showing 8 changed files with 74 additions and 298 deletions.
2 changes: 1 addition & 1 deletion Debug App/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ target 'Debug App' do

# Pods for Debug App
pod 'PrimerSDK', :path => '../'
pod 'Primer3DS'
pod 'Primer3DS', :podspec => 'https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/4/7/d/Primer3DS/2.1.0/Primer3DS.podspec.json'
pod 'PrimerKlarnaSDK'
pod 'PrimerIPay88MYSDK'
pod 'PrimerNolPaySDK'
Expand Down
47 changes: 0 additions & 47 deletions Debug App/Podfile.lock

This file was deleted.

32 changes: 16 additions & 16 deletions Debug App/Primer.io Debug App SPM.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
F00C66142ACC67FA00187028 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B18D7E7738BF86467B0F1465 /* Images.xcassets */; };
F00C66152ACC67FA00187028 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = FC701AFD94F96F0F1D108D1A /* LaunchScreen.xib */; };
F00C66162ACC67FA00187028 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CE259612A00F85709107B872 /* Main.storyboard */; };
F01193FF2B28FD1700D0ABD9 /* Primer3DS in Frameworks */ = {isa = PBXBuildFile; productRef = F01193FE2B28FD1700D0ABD9 /* Primer3DS */; };
F04510E32ACD98E100A0A48C /* PrimerSDK in Frameworks */ = {isa = PBXBuildFile; productRef = F04510E22ACD98E100A0A48C /* PrimerSDK */; };
F04510E62ACD990A00A0A48C /* PrimerKlarnaSDK in Frameworks */ = {isa = PBXBuildFile; productRef = F04510E52ACD990A00A0A48C /* PrimerKlarnaSDK */; };
F04510E92ACD991200A0A48C /* Primer3DS in Frameworks */ = {isa = PBXBuildFile; productRef = F04510E82ACD991200A0A48C /* Primer3DS */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
Expand Down Expand Up @@ -173,7 +173,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
F04510E92ACD991200A0A48C /* Primer3DS in Frameworks */,
F01193FF2B28FD1700D0ABD9 /* Primer3DS in Frameworks */,
F04510E32ACD98E100A0A48C /* PrimerSDK in Frameworks */,
F04510E62ACD990A00A0A48C /* PrimerKlarnaSDK in Frameworks */,
);
Expand Down Expand Up @@ -514,7 +514,7 @@
packageProductDependencies = (
F04510E22ACD98E100A0A48C /* PrimerSDK */,
F04510E52ACD990A00A0A48C /* PrimerKlarnaSDK */,
F04510E82ACD991200A0A48C /* Primer3DS */,
F01193FE2B28FD1700D0ABD9 /* Primer3DS */,
);
productName = "Debug App";
productReference = F00C661E2ACC67FA00187028 /* Debug App SPM.app */;
Expand Down Expand Up @@ -554,7 +554,7 @@
mainGroup = 1C9799A622D0CCDBBF94925B;
packageReferences = (
F04510E42ACD990A00A0A48C /* XCRemoteSwiftPackageReference "primer-klarna-sdk-ios" */,
F04510E72ACD991200A0A48C /* XCRemoteSwiftPackageReference "primer-sdk-3ds-ios" */,
F01193FD2B28FD1700D0ABD9 /* XCRemoteSwiftPackageReference "primer-sdk-3ds-ios" */,
);
productRefGroup = DF30711EB149C64C364BB79A /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -864,25 +864,30 @@
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
F04510E42ACD990A00A0A48C /* XCRemoteSwiftPackageReference "primer-klarna-sdk-ios" */ = {
F01193FD2B28FD1700D0ABD9 /* XCRemoteSwiftPackageReference "primer-sdk-3ds-ios" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/primer-io/primer-klarna-sdk-ios";
repositoryURL = "https://github.com/primer-io/primer-sdk-3ds-ios";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 1.0.4;
branch = nq/update_3ds_sdk;
kind = branch;
};
};
F04510E72ACD991200A0A48C /* XCRemoteSwiftPackageReference "primer-sdk-3ds-ios" */ = {
F04510E42ACD990A00A0A48C /* XCRemoteSwiftPackageReference "primer-klarna-sdk-ios" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/primer-io/primer-sdk-3ds-ios";
repositoryURL = "https://github.com/primer-io/primer-klarna-sdk-ios";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 2.0.0;
minimumVersion = 1.0.4;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
F01193FE2B28FD1700D0ABD9 /* Primer3DS */ = {
isa = XCSwiftPackageProductDependency;
package = F01193FD2B28FD1700D0ABD9 /* XCRemoteSwiftPackageReference "primer-sdk-3ds-ios" */;
productName = Primer3DS;
};
F04510E22ACD98E100A0A48C /* PrimerSDK */ = {
isa = XCSwiftPackageProductDependency;
productName = PrimerSDK;
Expand All @@ -892,11 +897,6 @@
package = F04510E42ACD990A00A0A48C /* XCRemoteSwiftPackageReference "primer-klarna-sdk-ios" */;
productName = PrimerKlarnaSDK;
};
F04510E82ACD991200A0A48C /* Primer3DS */ = {
isa = XCSwiftPackageProductDependency;
package = F04510E72ACD991200A0A48C /* XCRemoteSwiftPackageReference "primer-sdk-3ds-ios" */;
productName = Primer3DS;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 25AB41367F759CCDA1881AD2 /* Project object */;
Expand Down
Loading

0 comments on commit 3fd6853

Please sign in to comment.