react-native-prizor-sdk-module 3.5.3 → 3.5.5
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/.gradle/7.1.1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.1.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.1.1/gc.properties +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/src/main/java/com/reactnativeprizorsdkmodule/PrizorSdkModuleModule.kt +22 -0
- package/ios/PrizorSdkModule.m +4 -0
- package/ios/PrizorSdkModule.swift +26 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/index.d.ts +2 -0
- package/package.json +1 -1
- package/src/index.tsx +2 -0
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
File without changes
|
|
@@ -52,4 +52,26 @@ class PrizorSdkModuleModule(reactContext: ReactApplicationContext) : ReactContex
|
|
|
52
52
|
)
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
+
|
|
56
|
+
@ReactMethod
|
|
57
|
+
fun startIrisWithJson(jsonString: String) {
|
|
58
|
+
if (!this.reactApplicationContext.hasCurrentActivity()) return;
|
|
59
|
+
this.reactApplicationContext.currentActivity?.runOnUiThread {
|
|
60
|
+
PrizorManager.startIris(
|
|
61
|
+
this.reactApplicationContext.currentActivity,
|
|
62
|
+
jsonString
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@ReactMethod
|
|
68
|
+
fun startIrisWithKeyValuePairs(keyValuePairs: ReadableMap) {
|
|
69
|
+
if (!this.reactApplicationContext.hasCurrentActivity()) return;
|
|
70
|
+
this.reactApplicationContext.currentActivity?.runOnUiThread {
|
|
71
|
+
PrizorManager.startIris(
|
|
72
|
+
this.reactApplicationContext.currentActivity,
|
|
73
|
+
keyValuePairs.toHashMap()
|
|
74
|
+
)
|
|
75
|
+
}
|
|
76
|
+
}
|
|
55
77
|
}
|
package/ios/PrizorSdkModule.m
CHANGED
|
@@ -7,6 +7,10 @@ RCT_EXTERN_METHOD(startWithJson:(NSString)params)
|
|
|
7
7
|
|
|
8
8
|
RCT_EXTERN_METHOD(startWithKeyValuePairs:(NSDictionary)params)
|
|
9
9
|
|
|
10
|
+
RCT_EXTERN_METHOD(startIrisWithJson:(NSString)params)
|
|
11
|
+
|
|
12
|
+
RCT_EXTERN_METHOD(startIrisWithKeyValuePairs:(NSDictionary)params)
|
|
13
|
+
|
|
10
14
|
RCT_EXTERN_METHOD(close:)
|
|
11
15
|
|
|
12
16
|
@end
|
|
@@ -34,6 +34,32 @@ class PrizorSdkModule: NSObject {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
@objc(startIrisWithJson:)
|
|
38
|
+
func start(jsonString: String) -> Void {
|
|
39
|
+
DispatchQueue.main.async {
|
|
40
|
+
if let viewController = RCTPresentedViewController(), !jsonString.isEmpty, let jsonData = jsonString.data(using: .utf8) {
|
|
41
|
+
PrizorManager.startIris(
|
|
42
|
+
from: viewController,
|
|
43
|
+
withJson: jsonData,
|
|
44
|
+
animated: false
|
|
45
|
+
)
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@objc(startIrisWithKeyValuePairs:)
|
|
51
|
+
func start(keyValuePairs: [String: Any]) -> Void {
|
|
52
|
+
DispatchQueue.main.async {
|
|
53
|
+
if let viewController = RCTPresentedViewController() {
|
|
54
|
+
PrizorManager.startIris(
|
|
55
|
+
from: viewController,
|
|
56
|
+
with: keyValuePairs,
|
|
57
|
+
animated: false
|
|
58
|
+
)
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
37
63
|
@objc(close)
|
|
38
64
|
func close() -> Void {
|
|
39
65
|
DispatchQueue.main.async {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.tsx"],"names":["PrizorSdkModule","NativeModules"],"mappings":";;;;;;;AAAA;;
|
|
1
|
+
{"version":3,"sources":["index.tsx"],"names":["PrizorSdkModule","NativeModules"],"mappings":";;;;;;;AAAA;;AAUA,MAAM;AAAEA,EAAAA;AAAF,IAAsBC,0BAA5B;eAEeD,e","sourcesContent":["import { NativeModules } from 'react-native';\n\ntype PrizorSdkModuleType = {\n startWithJson(params: object): Promise<void>;\n startWithKeyValuePairs(params: object): Promise<void>;\n startIrisWithJson(params: object): Promise<void>;\n startIrisWithKeyValuePairs(params: object): Promise<void>;\n close(): Promise<void>;\n};\n\nconst { PrizorSdkModule } = NativeModules;\n\nexport default PrizorSdkModule as PrizorSdkModuleType;\n"]}
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.tsx"],"names":["NativeModules","PrizorSdkModule"],"mappings":"AAAA,SAASA,aAAT,QAA8B,cAA9B;
|
|
1
|
+
{"version":3,"sources":["index.tsx"],"names":["NativeModules","PrizorSdkModule"],"mappings":"AAAA,SAASA,aAAT,QAA8B,cAA9B;AAUA,MAAM;AAAEC,EAAAA;AAAF,IAAsBD,aAA5B;AAEA,eAAeC,eAAf","sourcesContent":["import { NativeModules } from 'react-native';\n\ntype PrizorSdkModuleType = {\n startWithJson(params: object): Promise<void>;\n startWithKeyValuePairs(params: object): Promise<void>;\n startIrisWithJson(params: object): Promise<void>;\n startIrisWithKeyValuePairs(params: object): Promise<void>;\n close(): Promise<void>;\n};\n\nconst { PrizorSdkModule } = NativeModules;\n\nexport default PrizorSdkModule as PrizorSdkModuleType;\n"]}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
declare type PrizorSdkModuleType = {
|
|
2
2
|
startWithJson(params: object): Promise<void>;
|
|
3
3
|
startWithKeyValuePairs(params: object): Promise<void>;
|
|
4
|
+
startIrisWithJson(params: object): Promise<void>;
|
|
5
|
+
startIrisWithKeyValuePairs(params: object): Promise<void>;
|
|
4
6
|
close(): Promise<void>;
|
|
5
7
|
};
|
|
6
8
|
declare const _default: PrizorSdkModuleType;
|
package/package.json
CHANGED
package/src/index.tsx
CHANGED
|
@@ -3,6 +3,8 @@ import { NativeModules } from 'react-native';
|
|
|
3
3
|
type PrizorSdkModuleType = {
|
|
4
4
|
startWithJson(params: object): Promise<void>;
|
|
5
5
|
startWithKeyValuePairs(params: object): Promise<void>;
|
|
6
|
+
startIrisWithJson(params: object): Promise<void>;
|
|
7
|
+
startIrisWithKeyValuePairs(params: object): Promise<void>;
|
|
6
8
|
close(): Promise<void>;
|
|
7
9
|
};
|
|
8
10
|
|