react-native-hyperkyc-sdk 0.10.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 CHANGED
@@ -1,4 +1,13 @@
1
1
 
2
+
3
+ # 0.12.0 [3 Jul 2023]
4
+ - Upgrade native android HyperKyc to `0.12.0`
5
+ - Upgrade native iOS HyperKYC to `0.12.0`
6
+
7
+ # 0.11.0 [23 Jun 2023]
8
+ - Upgrade native android HyperKyc to `0.11.0`
9
+ - Upgrade native iOS HyperKYC to `0.11.0`
10
+
2
11
  # 0.10.0 [19 Jun 2023]
3
12
  - Upgrade native android HyperKyc to `0.10.0`
4
13
  - Upgrade native iOS HyperKYC to `0.10.1`
@@ -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.10.0@aar', {
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.HyperKycFlow;
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/.DS_Store CHANGED
Binary file
@@ -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])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-hyperkyc-sdk",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "description": "React Native wrapper for HyperKYC SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -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.10.1"
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' }