vialink-react-native-sdk 2.1.5 → 2.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/libs/vialink-sdk.aar +0 -0
- package/dist/index.js +1 -1
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios.abi.json +4 -4
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios.package.swiftinterface +1 -1
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios.private.swiftinterface +1 -1
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios.swiftinterface +1 -1
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64/ViaLinkCore.framework/ViaLinkCore +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios-simulator.abi.json +4 -4
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios-simulator.package.swiftinterface +1 -1
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1 -1
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1 -1
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/x86_64-apple-ios-simulator.abi.json +4 -4
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/x86_64-apple-ios-simulator.package.swiftinterface +1 -1
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1 -1
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/Modules/ViaLinkCore.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1 -1
- package/ios/Frameworks/ViaLinkCore.xcframework/ios-arm64_x86_64-simulator/ViaLinkCore.framework/ViaLinkCore +0 -0
- package/package.json +1 -1
- package/vialink-react-native-sdk.podspec +1 -1
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var reactNative=require('react-native');var {ViaLinkSDK:n}=reactNative.NativeModules,i=new reactNative.NativeEventEmitter(n),
|
|
1
|
+
'use strict';var reactNative=require('react-native');var {ViaLinkSDK:n}=reactNative.NativeModules,i=new reactNative.NativeEventEmitter(n),u=/^[A-Za-z0-9_-]{1,100}$/,r=class a{constructor(){this.payment={initiated:async e=>{if(!e||typeof e!="object")throw new Error("args\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4.");if(typeof e.orderId!="string"||!u.test(e.orderId))throw new Error("order_id \uD615\uC2DD\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 (1~100\uC790, \uC601\uBB38/\uC22B\uC790/\uD558\uC774\uD508/\uC5B8\uB354\uC2A4\uCF54\uC5B4).");if(typeof e.amount!="number"||!Number.isFinite(e.amount)||e.amount<=0)throw new Error("amount\uB294 0\uBCF4\uB2E4 \uD070 \uC22B\uC790\uC5EC\uC57C \uD569\uB2C8\uB2E4.");if(typeof e.currency!="string"||e.currency.trim().length===0)throw new Error("currency\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4.");let t=await n.paymentInitiated({orderId:e.orderId,amount:e.amount,currency:e.currency.trim().toUpperCase(),linkId:e.linkId??null,paymentMethod:e.paymentMethod??null,metadata:e.metadata??null});return {success:!!t?.success,paymentEventId:String(t?.paymentEventId??"")}}};}static get shared(){return this._instance||(this._instance=new a),this._instance}async configure(e){await n.configure(e);}onDeepLink(e){this.deepLinkSub?.remove(),this.deepLinkSub=i.addListener("onDeepLink",e);}onDeferredDeepLink(e){this.deferredSub?.remove(),this.deferredSub=i.addListener("onDeferredDeepLink",e);}track(e,t){n.track(e,t??null);}async createLink(e,t,o,d="static"){return n.createLink(e,t??null,o??null,d)}destroy(){this.deepLinkSub?.remove(),this.deferredSub?.remove();}};exports.ViaLinkSDK=r;
|
|
Binary file
|
|
@@ -2477,14 +2477,14 @@
|
|
|
2477
2477
|
{
|
|
2478
2478
|
"filePath": "\/Users\/sungyonglee\/Dropbox\/project\/vialink-ios-sdk\/Sources\/ViaLinkCore\/ViaLinkSDK.swift",
|
|
2479
2479
|
"kind": "StringLiteral",
|
|
2480
|
-
"offset":
|
|
2481
|
-
"length":
|
|
2482
|
-
"value": "\"
|
|
2480
|
+
"offset": 9348,
|
|
2481
|
+
"length": 8,
|
|
2482
|
+
"value": "\"static\""
|
|
2483
2483
|
},
|
|
2484
2484
|
{
|
|
2485
2485
|
"filePath": "\/Users\/sungyonglee\/Dropbox\/project\/vialink-ios-sdk\/Sources\/ViaLinkCore\/ViaLinkSDK.swift",
|
|
2486
2486
|
"kind": "StringLiteral",
|
|
2487
|
-
"offset":
|
|
2487
|
+
"offset": 11778,
|
|
2488
2488
|
"length": 26,
|
|
2489
2489
|
"value": "\"^[A-Za-z0-9_\\-]{1,100}$\""
|
|
2490
2490
|
}
|
|
@@ -55,7 +55,7 @@ public enum PaymentError : Swift.Error, Foundation.LocalizedError, Swift.Sendabl
|
|
|
55
55
|
@discardableResult
|
|
56
56
|
final public func handleURL(_ url: Foundation.URL) -> Swift.Bool
|
|
57
57
|
final public func track(_ eventName: Swift.String, data: [Swift.String : Swift.String]? = nil)
|
|
58
|
-
final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "
|
|
58
|
+
final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "static") async throws -> Swift.String
|
|
59
59
|
public enum CreateLinkError : Swift.Error, Foundation.LocalizedError {
|
|
60
60
|
case notConfigured
|
|
61
61
|
case invalidResponse
|
|
@@ -55,7 +55,7 @@ public enum PaymentError : Swift.Error, Foundation.LocalizedError, Swift.Sendabl
|
|
|
55
55
|
@discardableResult
|
|
56
56
|
final public func handleURL(_ url: Foundation.URL) -> Swift.Bool
|
|
57
57
|
final public func track(_ eventName: Swift.String, data: [Swift.String : Swift.String]? = nil)
|
|
58
|
-
final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "
|
|
58
|
+
final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "static") async throws -> Swift.String
|
|
59
59
|
public enum CreateLinkError : Swift.Error, Foundation.LocalizedError {
|
|
60
60
|
case notConfigured
|
|
61
61
|
case invalidResponse
|
|
Binary file
|
|
@@ -55,7 +55,7 @@ public enum PaymentError : Swift.Error, Foundation.LocalizedError, Swift.Sendabl
|
|
|
55
55
|
@discardableResult
|
|
56
56
|
final public func handleURL(_ url: Foundation.URL) -> Swift.Bool
|
|
57
57
|
final public func track(_ eventName: Swift.String, data: [Swift.String : Swift.String]? = nil)
|
|
58
|
-
final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "
|
|
58
|
+
final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "static") async throws -> Swift.String
|
|
59
59
|
public enum CreateLinkError : Swift.Error, Foundation.LocalizedError {
|
|
60
60
|
case notConfigured
|
|
61
61
|
case invalidResponse
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -2477,14 +2477,14 @@
|
|
|
2477
2477
|
{
|
|
2478
2478
|
"filePath": "\/Users\/sungyonglee\/Dropbox\/project\/vialink-ios-sdk\/Sources\/ViaLinkCore\/ViaLinkSDK.swift",
|
|
2479
2479
|
"kind": "StringLiteral",
|
|
2480
|
-
"offset":
|
|
2481
|
-
"length":
|
|
2482
|
-
"value": "\"
|
|
2480
|
+
"offset": 9348,
|
|
2481
|
+
"length": 8,
|
|
2482
|
+
"value": "\"static\""
|
|
2483
2483
|
},
|
|
2484
2484
|
{
|
|
2485
2485
|
"filePath": "\/Users\/sungyonglee\/Dropbox\/project\/vialink-ios-sdk\/Sources\/ViaLinkCore\/ViaLinkSDK.swift",
|
|
2486
2486
|
"kind": "StringLiteral",
|
|
2487
|
-
"offset":
|
|
2487
|
+
"offset": 11778,
|
|
2488
2488
|
"length": 26,
|
|
2489
2489
|
"value": "\"^[A-Za-z0-9_\\-]{1,100}$\""
|
|
2490
2490
|
}
|
|
@@ -55,7 +55,7 @@ public enum PaymentError : Swift.Error, Foundation.LocalizedError, Swift.Sendabl
|
|
|
55
55
|
@discardableResult
|
|
56
56
|
final public func handleURL(_ url: Foundation.URL) -> Swift.Bool
|
|
57
57
|
final public func track(_ eventName: Swift.String, data: [Swift.String : Swift.String]? = nil)
|
|
58
|
-
final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "
|
|
58
|
+
final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "static") async throws -> Swift.String
|
|
59
59
|
public enum CreateLinkError : Swift.Error, Foundation.LocalizedError {
|
|
60
60
|
case notConfigured
|
|
61
61
|
case invalidResponse
|
|
@@ -55,7 +55,7 @@ public enum PaymentError : Swift.Error, Foundation.LocalizedError, Swift.Sendabl
|
|
|
55
55
|
@discardableResult
|
|
56
56
|
final public func handleURL(_ url: Foundation.URL) -> Swift.Bool
|
|
57
57
|
final public func track(_ eventName: Swift.String, data: [Swift.String : Swift.String]? = nil)
|
|
58
|
-
final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "
|
|
58
|
+
final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "static") async throws -> Swift.String
|
|
59
59
|
public enum CreateLinkError : Swift.Error, Foundation.LocalizedError {
|
|
60
60
|
case notConfigured
|
|
61
61
|
case invalidResponse
|
|
Binary file
|
|
@@ -55,7 +55,7 @@ public enum PaymentError : Swift.Error, Foundation.LocalizedError, Swift.Sendabl
|
|
|
55
55
|
@discardableResult
|
|
56
56
|
final public func handleURL(_ url: Foundation.URL) -> Swift.Bool
|
|
57
57
|
final public func track(_ eventName: Swift.String, data: [Swift.String : Swift.String]? = nil)
|
|
58
|
-
final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "
|
|
58
|
+
final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "static") async throws -> Swift.String
|
|
59
59
|
public enum CreateLinkError : Swift.Error, Foundation.LocalizedError {
|
|
60
60
|
case notConfigured
|
|
61
61
|
case invalidResponse
|
|
@@ -2477,14 +2477,14 @@
|
|
|
2477
2477
|
{
|
|
2478
2478
|
"filePath": "\/Users\/sungyonglee\/Dropbox\/project\/vialink-ios-sdk\/Sources\/ViaLinkCore\/ViaLinkSDK.swift",
|
|
2479
2479
|
"kind": "StringLiteral",
|
|
2480
|
-
"offset":
|
|
2481
|
-
"length":
|
|
2482
|
-
"value": "\"
|
|
2480
|
+
"offset": 9348,
|
|
2481
|
+
"length": 8,
|
|
2482
|
+
"value": "\"static\""
|
|
2483
2483
|
},
|
|
2484
2484
|
{
|
|
2485
2485
|
"filePath": "\/Users\/sungyonglee\/Dropbox\/project\/vialink-ios-sdk\/Sources\/ViaLinkCore\/ViaLinkSDK.swift",
|
|
2486
2486
|
"kind": "StringLiteral",
|
|
2487
|
-
"offset":
|
|
2487
|
+
"offset": 11778,
|
|
2488
2488
|
"length": 26,
|
|
2489
2489
|
"value": "\"^[A-Za-z0-9_\\-]{1,100}$\""
|
|
2490
2490
|
}
|
|
@@ -55,7 +55,7 @@ public enum PaymentError : Swift.Error, Foundation.LocalizedError, Swift.Sendabl
|
|
|
55
55
|
@discardableResult
|
|
56
56
|
final public func handleURL(_ url: Foundation.URL) -> Swift.Bool
|
|
57
57
|
final public func track(_ eventName: Swift.String, data: [Swift.String : Swift.String]? = nil)
|
|
58
|
-
final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "
|
|
58
|
+
final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "static") async throws -> Swift.String
|
|
59
59
|
public enum CreateLinkError : Swift.Error, Foundation.LocalizedError {
|
|
60
60
|
case notConfigured
|
|
61
61
|
case invalidResponse
|
|
@@ -55,7 +55,7 @@ public enum PaymentError : Swift.Error, Foundation.LocalizedError, Swift.Sendabl
|
|
|
55
55
|
@discardableResult
|
|
56
56
|
final public func handleURL(_ url: Foundation.URL) -> Swift.Bool
|
|
57
57
|
final public func track(_ eventName: Swift.String, data: [Swift.String : Swift.String]? = nil)
|
|
58
|
-
final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "
|
|
58
|
+
final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "static") async throws -> Swift.String
|
|
59
59
|
public enum CreateLinkError : Swift.Error, Foundation.LocalizedError {
|
|
60
60
|
case notConfigured
|
|
61
61
|
case invalidResponse
|
|
Binary file
|
|
@@ -55,7 +55,7 @@ public enum PaymentError : Swift.Error, Foundation.LocalizedError, Swift.Sendabl
|
|
|
55
55
|
@discardableResult
|
|
56
56
|
final public func handleURL(_ url: Foundation.URL) -> Swift.Bool
|
|
57
57
|
final public func track(_ eventName: Swift.String, data: [Swift.String : Swift.String]? = nil)
|
|
58
|
-
final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "
|
|
58
|
+
final public func createLink(path: Swift.String, data: [Swift.String : Swift.String]? = nil, campaign: Swift.String? = nil, linkType: Swift.String = "static") async throws -> Swift.String
|
|
59
59
|
public enum CreateLinkError : Swift.Error, Foundation.LocalizedError {
|
|
60
60
|
case notConfigured
|
|
61
61
|
case invalidResponse
|
|
Binary file
|
package/package.json
CHANGED