vialink-react-native-sdk 2.0.5 → 2.0.6
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.
|
Binary file
|
|
@@ -10,6 +10,10 @@ class ViaLinkModule(reactContext: ReactApplicationContext) :
|
|
|
10
10
|
ReactContextBaseJavaModule(reactContext),
|
|
11
11
|
ActivityEventListener {
|
|
12
12
|
|
|
13
|
+
companion object {
|
|
14
|
+
const val WRAPPER_VERSION = "2.0.5"
|
|
15
|
+
}
|
|
16
|
+
|
|
13
17
|
private val scope = CoroutineScope(Dispatchers.Main + SupervisorJob())
|
|
14
18
|
private var pendingDeepLink: WritableMap? = null
|
|
15
19
|
private var pendingDeferred: WritableMap? = null
|
|
@@ -31,6 +35,7 @@ class ViaLinkModule(reactContext: ReactApplicationContext) :
|
|
|
31
35
|
@ReactMethod
|
|
32
36
|
fun configure(apiKey: String, promise: Promise) {
|
|
33
37
|
val context = reactApplicationContext
|
|
38
|
+
ViaLinkSDK.setWrapper("react-native/$WRAPPER_VERSION")
|
|
34
39
|
ViaLinkSDK.init(context, apiKey)
|
|
35
40
|
|
|
36
41
|
ViaLinkSDK.onDeepLink { data ->
|
package/ios/ViaLinkModule.swift
CHANGED
|
@@ -5,6 +5,8 @@ import ViaLinkSDK // xcframework
|
|
|
5
5
|
@objc(ViaLinkSDK)
|
|
6
6
|
class ViaLinkModule: RCTEventEmitter {
|
|
7
7
|
|
|
8
|
+
static let wrapperVersion = "2.0.5"
|
|
9
|
+
|
|
8
10
|
private var pendingDeepLink: [String: Any?]?
|
|
9
11
|
private var pendingDeferred: [String: Any?]?
|
|
10
12
|
private var hasListeners = false
|
|
@@ -32,6 +34,7 @@ class ViaLinkModule: RCTEventEmitter {
|
|
|
32
34
|
|
|
33
35
|
@objc func configure(_ apiKey: String, resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock) {
|
|
34
36
|
DispatchQueue.main.async {
|
|
37
|
+
ViaLinkSDK.shared.setWrapper("react-native/\(Self.wrapperVersion)")
|
|
35
38
|
ViaLinkSDK.shared.configure(apiKey: apiKey)
|
|
36
39
|
|
|
37
40
|
ViaLinkSDK.shared.onDeepLink { [weak self] data in
|
package/package.json
CHANGED