react-native-hyperkyc-sdk 0.11.0 → 0.13.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.
@@ -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.11.0@aar', {
59
+ implementation('co.hyperverge:hyperkyc:0.13.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)
@@ -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.11.0",
3
+ "version": "0.13.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.11.0"
19
+ s.dependency "HyperKYC", "0.13.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' }
package/CHANGELOG.md DELETED
@@ -1,90 +0,0 @@
1
-
2
-
3
- # 0.11.0 [23 Jun 2023]
4
- - Upgrade native android HyperKyc to `0.11.0`
5
- - Upgrade native iOS HyperKYC to `0.11.0`
6
-
7
- # 0.10.0 [19 Jun 2023]
8
- - Upgrade native android HyperKyc to `0.10.0`
9
- - Upgrade native iOS HyperKYC to `0.10.1`
10
- # 0.9.2 [14 Jun 2023]
11
- - Fix callback not invoked for accessToken flow
12
-
13
- # 0.9.1 [8 May 2023]
14
- - Upgrade native android HyperKyc to `0.9.1`
15
- - Upgrade native iOS HyperKYC to `0.9.1`
16
-
17
- # 0.8.0 [10 April 2023]
18
- - Upgrade native android HyperKyc to `0.8.0`
19
- - Upgrade native iOS HyperKYC to `0.8.0`
20
-
21
- # 0.7.4 [4 March 2023]
22
- - Upgrade native android HyperKyc to `0.7.4`
23
-
24
- # 0.7.3 [4 March 2023]
25
- - Upgrade native iOS HyperKYC to `0.7.2`
26
- - Upgrade native android HyperKyc to `0.7.3`
27
-
28
- # 0.7.2 [18 Feb 2023]
29
- - Added changes to podspec for iOS framework
30
-
31
- # 0.7.1 [16 Feb 2023]
32
- - Upgrade native iOS HyperKYC to `0.7.1`
33
- - Upgrade native android HyperKyc to `0.7.2`
34
-
35
- # 0.7.0 [8 Feb 2023]
36
- - Upgrade native iOS HyperKYC to `0.7.0`
37
- - Upgrade native android HyperKyc to `0.7.0`
38
-
39
-
40
- # 0.3.14 [10 Jan 2022]
41
- 1. Updated Android SDK to 0.3.14
42
- 2. Updated and fix iOS SDK to 0.3.10
43
-
44
-
45
-
46
- # 0.3.13 [2 Jan 2022]
47
- 1. Updated Android SDK to 0.3.13
48
- 2. Updated and fix iOS SDK to 0.3.9
49
-
50
- # 0.6.0 [2 Jan 2023]
51
- - Upgrade native iOS HyperKYC to `0.6.0`
52
- - Upgrade native android HyperKyc to `0.6.0`
53
-
54
- # 0.5.0 [2 Jan 2023]
55
- - Upgrade native iOS HyperKYC to `0.5.0` - Includes `DocDetect`
56
- - Upgrade native android HyperKyc to `0.5.0` - Includes `DocDetect`
57
- - Update deployment target to 11 (for iOS)
58
- - Update compileSDK version to 33 (for android)
59
- - Made ios framework static. Have to add use_framework! for HyperKYC pod.
60
-
61
- ** Please note that 0.4.0 version does not exist. We have taken this decision to maintain version number consistency between all the platforms that we support **
62
-
63
- # 0.3.12 [12 Dec 2022]
64
- 1. Updated Android SDK to 0.3.12
65
- 2. Updated and fix iOS SDK to 0.3.8
66
-
67
-
68
-
69
- # 0.3.11 [28th Oct 2022]
70
- 1. Updated Android SDK version to 0.3.10
71
-
72
- # 0.3.10 [13th Oct 2022]
73
- 1. Updated Android SDK version to 0.3.8
74
-
75
-
76
- # 0.3.9 [7th Oct 2022]
77
- 1. Updated Android SDK version to 0.3.6
78
-
79
- # 0.3.8 [19 Aug 2022]
80
- 1. Updated Android SDK version to 0.3.2
81
-
82
- # 0.3.7 [11 Aug 2022]
83
- 1. Added support for the new response structure in HyperKYC native SDKs
84
- 2. Added support for default language code
85
-
86
- # 0.3.6 [28 July 2022]
87
- 1. Fixed issue with missing headers in Android
88
-
89
- # 0.3.5 [28 July 2022]
90
- 1. Added support to set custom inputs
package/ios/.DS_Store DELETED
Binary file