Skip to content

Commit abab165

Browse files
authored
Merge pull request #47 from xendit/feat/CC-6266-support-spm
[CC-6266] support Swift Package Manager
2 parents a0c80cb + 9bd076c commit abab165

File tree

169 files changed

+4395
-1162
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+4395
-1162
lines changed

.gitignore

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
## Build generated
1010
build/
11+
.build/
1112
DerivedData/
1213

1314
## Various settings
@@ -45,10 +46,13 @@ Carthage/Build
4546

4647
# fastlane
4748
#
48-
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
49+
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
4950
# screenshots whenever they are needed.
5051
# For more information about the recommended setup visit:
5152
# https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md
5253

5354
fastlane/report.xml
5455
fastlane/screenshots
56+
57+
# SPM
58+
.swiftpm/

CardinalMobile.xcframework/Info.plist

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>AvailableLibraries</key>
6+
<array>
7+
<dict>
8+
<key>LibraryIdentifier</key>
9+
<string>ios-arm64_armv7</string>
10+
<key>LibraryPath</key>
11+
<string>CardinalMobile.framework</string>
12+
<key>SupportedArchitectures</key>
13+
<array>
14+
<string>arm64</string>
15+
<string>armv7</string>
16+
</array>
17+
<key>SupportedPlatform</key>
18+
<string>ios</string>
19+
</dict>
20+
<dict>
21+
<key>LibraryIdentifier</key>
22+
<string>ios-arm64_i386_x86_64-simulator</string>
23+
<key>LibraryPath</key>
24+
<string>CardinalMobile.framework</string>
25+
<key>SupportedArchitectures</key>
26+
<array>
27+
<string>arm64</string>
28+
<string>i386</string>
29+
<string>x86_64</string>
30+
</array>
31+
<key>SupportedPlatform</key>
32+
<string>ios</string>
33+
<key>SupportedPlatformVariant</key>
34+
<string>simulator</string>
35+
</dict>
36+
</array>
37+
<key>CFBundlePackageType</key>
38+
<string>XFWK</string>
39+
<key>XCFrameworkFormatVersion</key>
40+
<string>1.0</string>
41+
</dict>
42+
</plist>
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
//
2+
// AuthenticationRequestParameters.h
3+
// CardinalEMVCoSDK
4+
//
5+
// Copyright © 2018 Cardinal Commerce. All rights reserved.
6+
//
7+
8+
#import <Foundation/Foundation.h>
9+
10+
/**
11+
* The AuthenticationRequestParameters class holds transaction data that the App passes to the 3DS Server for creating the AReq.
12+
*/
13+
@interface AuthenticationRequestParameters : NSObject
14+
15+
- (id _Nonnull ) initWithSDKTransactionId: (NSString *_Nonnull) sdkTransactionId
16+
deviceData: (NSString *_Nonnull) deviceData
17+
sdkEphemeralPublicKey: (NSString *_Nonnull) sdkEphemeralPublicKey
18+
sdkAppID: (NSString *_Nonnull) sdkAppID
19+
sdkReferenceNumber: (NSString *_Nonnull) sdkReferenceNumber
20+
messageVersion: (NSString *_Nonnull) messageVersion;
21+
22+
/**
23+
* @property sdkTransactionID SDK Transaction ID.
24+
*/
25+
@property (nonnull, nonatomic, strong, readonly) NSString* sdkTransactionID;
26+
27+
/**
28+
* @property deviceData Device data collected by the SDK.
29+
*/
30+
@property (nullable, nonatomic, strong, readonly) NSString* deviceData;
31+
32+
/**
33+
* @property sdkEphemeralPublicKey SDK Ephemeral Public Key (Qc).
34+
*/
35+
@property (nonnull, nonatomic, strong, readonly) NSString* sdkEphemeralPublicKey;
36+
37+
/**
38+
* @property sdkAppID SDK App ID.
39+
*/
40+
@property (nonnull, nonatomic, strong, readonly) NSString* sdkAppID;
41+
42+
/**
43+
* @property sdkReferenceNumber SDK Reference Number.
44+
*/
45+
@property (nonnull, nonatomic, strong, readonly) NSString* sdkReferenceNumber;
46+
47+
/**
48+
* @property messageVersion Protocol version that is supported by the SDK and used for the transaction.
49+
*/
50+
@property (nonnull, nonatomic, strong, readonly) NSString* messageVersion;
51+
52+
/**
53+
* The getDeviceData method returns the encrypted device data as a string.
54+
* @return NSString
55+
*/
56+
- (NSString *_Nullable) getDeviceData;
57+
58+
/**
59+
* The getSDKTransactionID method returns the SDK Transaction ID.
60+
* @return NSString
61+
*/
62+
- (NSString *_Nonnull) getSDKTransactionID;
63+
64+
/**
65+
* The getSDKAppID method returns the SDK App ID.
66+
* @return NSString
67+
*/
68+
- (NSString *_Nonnull) getSDKAppID;
69+
70+
/**
71+
* The getSDKReferenceNumber method returns the SDK Reference Number.
72+
* @return NSString
73+
*/
74+
- (NSString *_Nonnull) getSDKReferenceNumber;
75+
76+
/**
77+
* The getSDKEphemeralPublicKey method returns the SDK Ephemeral Public Key.
78+
* @return NSString
79+
*/
80+
- (NSString *_Nonnull) getSDKEphemeralPublicKey;
81+
82+
/**
83+
* The getMessageVersion method returns the protocol version that is used for the transaction.
84+
* @return NSString
85+
*/
86+
- (NSString *_Nonnull) getMessageVersion;
87+
88+
+ (instancetype _Nonnull )new NS_UNAVAILABLE;
89+
- (instancetype _Nonnull )init NS_UNAVAILABLE;
90+
91+
@end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
//
2+
// ButtonCustomization.h
3+
// CardinalEMVCoSDK
4+
//
5+
// Copyright © 2018 Cardinal Commerce. All rights reserved.
6+
//
7+
8+
#import "Customization.h"
9+
10+
/**
11+
* The ButtonCustomization class provides methods for the 3DS Requestor App to pass button customization parameters to the 3DS SDK.
12+
*/
13+
@interface ButtonCustomization : Customization
14+
15+
/**
16+
* @property backgroundColor Colour code in Hex format. For example, the colour code can be “#999999”.
17+
*/
18+
@property (nonatomic, strong) NSString* backgroundColor;
19+
20+
/**
21+
* @property cornerRadius Radius (integer value) for the button corners.
22+
*/
23+
@property int cornerRadius;
24+
25+
@end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// CardinalEMVCoSDK.h
3+
// CardinalEMVCoSDK
4+
//
5+
// Copyright © 2018 Cardinal Commerce. All rights reserved.
6+
//
7+
8+
#import <UIKit/UIKit.h>
9+
10+
#import <CardinalMobile/CardinalResponse.h>
11+
#import <CardinalMobile/CardinalSession.h>
12+
#import <CardinalMobile/CardinalSessionConfiguration.h>
13+
#import <CardinalMobile/CardinalSession.h>
14+
#import <CardinalMobile/CardinalStepUpDelegate.h>
15+
#import <CardinalMobile/DirectoryServerIDConst.h>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//
2+
// CardinalEMVCoSDK.h
3+
// CardinalEMVCoSDK
4+
//
5+
// Copyright © 2018 Cardinal Commerce. All rights reserved.
6+
//
7+
8+
#import <UIKit/UIKit.h>
9+
10+
#import <CardinalMobile/ThreeDS2Service.h>
11+
#import <CardinalMobile/Transaction.h>
12+
#import <CardinalMobile/ConfigParameters.h>
13+
#import <CardinalMobile/UiCustomization.h>
14+
15+
#import <CardinalMobile/CardinalThreeDS2ServiceImpl.h>
16+
#import <CardinalMobile/CardinalTransaction.h>
17+
#import <CardinalMobile/ProgressDialog.h>
18+
#import <CardinalMobile/ChallengeStatusReceiver.h>
19+
#import <CardinalMobile/ChallengeParameters.h>
20+
#import <CardinalMobile/CompletionEvent.h>
21+
#import <CardinalMobile/RuntimeErrorEvent.h>
22+
#import <CardinalMobile/ProtocolErrorEvent.h>
23+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//
2+
// CardinalMobile.h
3+
// CardinalMobile
4+
//
5+
// Created by Sudeep Tuladhar on 10/23/18.
6+
// Copyright © 2018 Cardinal Commerce. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
//! Project version number for CardinalMobile.
12+
FOUNDATION_EXPORT double CardinalMobileVersionNumber;
13+
14+
//! Project version string for CardinalMobile.
15+
FOUNDATION_EXPORT const unsigned char CardinalMobileVersionString[];
16+
17+
// In this header, you should import all the public headers of your framework using statements like #import <CardinalMobile/PublicHeader.h>
18+
19+
#import <CardinalMobile/CardinalCMSDK.h>
20+
#import <CardinalMobile/CardinalEMVCoSDK.h>

0 commit comments

Comments
 (0)