react-native-hyperkyc-sdk 0.11.0 → 0.12.0
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/CHANGELOG.md +4 -0
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/reactnativehyperkycsdk/HyperkycSdkModule.java +3 -3
- package/ios/HyperkycSdk.swift +4 -0
- package/ios/HyperkycSdk.xcodeproj/project.xcworkspace/xcuserdata/niveditamuthusubramanian.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/package.json +1 -1
- package/react-native-hyperkyc-sdk.podspec +1 -1
package/CHANGELOG.md
CHANGED
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.
|
|
59
|
+
implementation('co.hyperverge:hyperkyc:0.12.0@aar', {
|
|
60
60
|
transitive = true
|
|
61
61
|
})
|
|
62
62
|
|
|
@@ -33,10 +33,8 @@ import org.json.JSONException;
|
|
|
33
33
|
import org.json.JSONObject;
|
|
34
34
|
|
|
35
35
|
import co.hyperverge.hyperkyc.HyperKyc;
|
|
36
|
-
import co.hyperverge.hyperkyc.data.models.DocFlowConfig;
|
|
37
|
-
import co.hyperverge.hyperkyc.data.models.HyperKycConfig;
|
|
38
36
|
|
|
39
|
-
import co.hyperverge.hyperkyc.data.models.
|
|
37
|
+
import co.hyperverge.hyperkyc.data.models.HyperKycConfig;
|
|
40
38
|
|
|
41
39
|
import co.hyperverge.hyperkyc.data.models.result.HyperKycData;
|
|
42
40
|
import co.hyperverge.hyperkyc.data.models.result.HyperKycResult;
|
|
@@ -82,6 +80,7 @@ public class HyperkycSdkModule extends ReactContextBaseJavaModule implements Act
|
|
|
82
80
|
String transactionId = kycConfig.hasKey("transactionId") ? kycConfig.getString("transactionId") : null;
|
|
83
81
|
String accessToken = kycConfig.hasKey("accessToken")? kycConfig.getString("accessToken") : null;
|
|
84
82
|
String defaultLangCode = kycConfig.hasKey("defaultLangCode")? kycConfig.getString("defaultLangCode") : null;
|
|
83
|
+
Boolean useLocation = kycConfig.hasKey("useLocation")? kycConfig.getBoolean("useLocation") : false;
|
|
85
84
|
ReadableMap inputsMap = kycConfig.hasKey("inputs")?kycConfig.getMap("inputs"): null;
|
|
86
85
|
|
|
87
86
|
HyperKycConfig config = null;
|
|
@@ -98,6 +97,7 @@ public class HyperkycSdkModule extends ReactContextBaseJavaModule implements Act
|
|
|
98
97
|
config.setDefaultLangCode(defaultLangCode);
|
|
99
98
|
}
|
|
100
99
|
|
|
100
|
+
config.setUseLocation(useLocation);
|
|
101
101
|
contract = new HyperKyc.Contract();
|
|
102
102
|
Intent newIntent = contract.createIntent(currentActivity, config);
|
|
103
103
|
if(currentActivity != null)
|
package/ios/HyperkycSdk.swift
CHANGED
|
@@ -17,6 +17,7 @@ class Hyperkyc: NSObject {
|
|
|
17
17
|
let workflowId = _config["workflowId"] as? String
|
|
18
18
|
let defaultLangCode = _config["defaultLangCode"] as? String
|
|
19
19
|
let inputs = _config["inputs"] as? [String: String]
|
|
20
|
+
let useLocation = _config["useLocation"] as? Bool
|
|
20
21
|
|
|
21
22
|
|
|
22
23
|
|
|
@@ -44,6 +45,9 @@ class Hyperkyc: NSObject {
|
|
|
44
45
|
if let defaultLangCode = defaultLangCode {
|
|
45
46
|
hyperKYCConfig.setDefaultLangCode(language: defaultLangCode)
|
|
46
47
|
}
|
|
48
|
+
if let useLocation = useLocation {
|
|
49
|
+
hyperKYCConfig.setUseLocation(shouldUse: useLocation)
|
|
50
|
+
}
|
|
47
51
|
HyperKyc.launch(controller!, hyperKycConfig: hyperKYCConfig) { hyperKycResult in
|
|
48
52
|
let result = self.processHyperKycResponse(hyperKycResult: hyperKycResult)
|
|
49
53
|
callback([result])
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
17
17
|
s.static_framework = true
|
|
18
18
|
s.dependency "React-Core"
|
|
19
|
-
s.dependency "HyperKYC", "0.
|
|
19
|
+
s.dependency "HyperKYC", "0.12.0"
|
|
20
20
|
# Need these lines to support HyperKYC framework
|
|
21
21
|
s.preserve_paths = 'HyperKYC.framework'
|
|
22
22
|
s.xcconfig = { 'OTHER_LDFLAGS' => '-framework HyperKYC' }
|