react-native-hyperkyc-sdk 0.24.0 → 0.24.3
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/build.gradle
CHANGED
|
@@ -56,7 +56,7 @@ repositories {
|
|
|
56
56
|
dependencies {
|
|
57
57
|
//noinspection GradleDynamicVersion
|
|
58
58
|
implementation "com.facebook.react:react-native:+" // From node_modules
|
|
59
|
-
implementation('co.hyperverge:hyperkyc:0.24.
|
|
59
|
+
implementation('co.hyperverge:hyperkyc:0.24.3@aar', {
|
|
60
60
|
transitive = true
|
|
61
61
|
})
|
|
62
62
|
|
|
@@ -44,12 +44,11 @@ public class HyperkycSdkModule extends ReactContextBaseJavaModule {
|
|
|
44
44
|
return NAME;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
|
|
48
47
|
@ReactMethod
|
|
49
48
|
public void createUniqueId(Callback callback) {
|
|
50
|
-
|
|
49
|
+
callback.invoke(HyperKyc.createUniqueId());
|
|
51
50
|
}
|
|
52
|
-
|
|
51
|
+
|
|
53
52
|
@ReactMethod
|
|
54
53
|
public void prefetch(String appId, String workflowId) {
|
|
55
54
|
if (getReactApplicationContext() != null) {
|
|
@@ -57,7 +56,6 @@ public class HyperkycSdkModule extends ReactContextBaseJavaModule {
|
|
|
57
56
|
}
|
|
58
57
|
}
|
|
59
58
|
|
|
60
|
-
|
|
61
59
|
@ReactMethod
|
|
62
60
|
public void launch(ReadableMap kycConfig, Callback resultCallback) {
|
|
63
61
|
ReactActivity currentActivity = (ReactActivity) getCurrentActivity();
|
|
@@ -90,8 +88,6 @@ public class HyperkycSdkModule extends ReactContextBaseJavaModule {
|
|
|
90
88
|
}
|
|
91
89
|
}
|
|
92
90
|
|
|
93
|
-
|
|
94
|
-
|
|
95
91
|
private void parseKYCResult(HyperKycResult hyperKycResult, Callback callback) {
|
|
96
92
|
try {
|
|
97
93
|
Gson gson = new Gson();
|
|
@@ -129,9 +125,9 @@ public class HyperkycSdkModule extends ReactContextBaseJavaModule {
|
|
|
129
125
|
ReadableMap inputs = kycConfig.hasKey("inputs") ? kycConfig.getMap("inputs") : null;
|
|
130
126
|
String defaultLangCode = kycConfig.hasKey("defaultLangCode") ? kycConfig.getString("defaultLangCode") : null;
|
|
131
127
|
Boolean useLocation = kycConfig.hasKey("useLocation") ? kycConfig.getBoolean("useLocation") : null;
|
|
132
|
-
String uniqueId =
|
|
133
|
-
Map<String, String>
|
|
134
|
-
metadata.put("sdk-version", "0.
|
|
128
|
+
String uniqueId = kycConfig.hasKey("uniqueId") ? kycConfig.getString("uniqueId") : null;
|
|
129
|
+
Map<String, String> metadata = new HashMap<>();
|
|
130
|
+
metadata.put("sdk-version", "0.24.3");
|
|
135
131
|
metadata.put("sdk-type", "React Native");
|
|
136
132
|
if (accessToken == null) {
|
|
137
133
|
assert appId != null;
|
package/ios/HyperkycSdk.swift
CHANGED
|
@@ -32,7 +32,7 @@ class Hyperkyc: NSObject {
|
|
|
32
32
|
let useLocation = _config["useLocation"] as? Bool
|
|
33
33
|
let uniqueId = _config["uniqueId"] as? String
|
|
34
34
|
let metadata: [String: String] = [
|
|
35
|
-
"sdk-version": "0.
|
|
35
|
+
"sdk-version": "0.24.3",
|
|
36
36
|
"sdk-type": "React Native"
|
|
37
37
|
]
|
|
38
38
|
|
|
@@ -59,7 +59,7 @@ class Hyperkyc: NSObject {
|
|
|
59
59
|
if let uniqueId = uniqueId {
|
|
60
60
|
hyperKYCConfig.setUniqueId(uuid: uniqueId)
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
hyperKYCConfig.addMetadata(metadata: metadata)
|
|
63
63
|
|
|
64
64
|
//launch HyperKyc
|
|
65
65
|
HyperKyc.launch(controller!, hyperKycConfig: hyperKYCConfig) { hyperKycResult in
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
|
|
|
17
17
|
s.static_framework = true
|
|
18
18
|
s.weak_frameworks = ['CoreNFC', 'CryptoKit']
|
|
19
19
|
s.dependency "React-Core"
|
|
20
|
-
s.dependency "HyperKYC", "0.24.
|
|
20
|
+
s.dependency "HyperKYC", "0.24.3"
|
|
21
21
|
# Need these lines to support HyperKYC framework
|
|
22
22
|
s.preserve_paths = 'HyperKYC.framework'
|
|
23
23
|
s.xcconfig = { 'OTHER_LDFLAGS' => '-framework HyperKYC' }
|