react-native-hyperkyc-sdk 0.8.0 → 0.9.2

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,11 @@
1
1
 
2
+ # 0.9.2 [14 Jun 2023]
3
+ - Fix callback not invoked for accessToken flow
4
+
5
+ # 0.9.1 [8 May 2023]
6
+ - Upgrade native android HyperKyc to `0.9.1`
7
+ - Upgrade native iOS HyperKYC to `0.9.1`
8
+
2
9
  # 0.8.0 [10 April 2023]
3
10
  - Upgrade native android HyperKyc to `0.8.0`
4
11
  - Upgrade native iOS HyperKYC to `0.8.0`
@@ -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.8.0@aar', {
59
+ implementation('co.hyperverge:hyperkyc:0.9.1@aar', {
60
60
  transitive = true
61
61
  })
62
62
 
package/ios/.DS_Store ADDED
Binary file
@@ -22,36 +22,36 @@ class Hyperkyc: NSObject {
22
22
 
23
23
  DispatchQueue.main.async {
24
24
  let controller = RCTPresentedViewController()
25
-
26
- if let accessTokenConfig = accessToken{
27
- let hyperKYCConfig = HyperKycConfig(accessToken: accessTokenConfig, workflowId: workflowId!, transactionId: transactionId!)
28
- if let inputs = inputs{
29
- hyperKYCConfig.setInputs(inputs: inputs)
30
- }
31
- if let defaultLangCode = defaultLangCode{
32
- hyperKYCConfig.setDefaultLangCode(language: defaultLangCode)
33
- }
34
- HyperKyc.launch(controller!, hyperKycConfig: hyperKYCConfig) { hyperKycResult in
35
-
36
- }
25
+
26
+ var hyperKYCConfig: HyperKycConfig?
27
+
28
+
29
+ // Launch HyperKyc if accessTokenConfig is available
30
+ if let accessToken = accessToken {
31
+ hyperKYCConfig = HyperKycConfig(accessToken: accessToken, workflowId: workflowId!, transactionId: transactionId!)
37
32
  }
38
-
39
- if(appKey != nil && appId != nil){
40
- let hyperKYCConfig = HyperKycConfig(appId: appId!, appKey: appKey!, workflowId: workflowId!, transactionId: transactionId!)
41
- if let inputs = inputs{
33
+
34
+ // Launch HyperKyc if appKey and appId are available
35
+ if let appKey = appKey, let appId = appId {
36
+ hyperKYCConfig = HyperKycConfig(appId: appId, appKey: appKey, workflowId: workflowId!, transactionId: transactionId!)
37
+ }
38
+
39
+ // Launch HyperKyc with hyperKYCConfig if available
40
+ if let hyperKYCConfig = hyperKYCConfig {
41
+ if let inputs = inputs {
42
42
  hyperKYCConfig.setInputs(inputs: inputs)
43
43
  }
44
- if let defaultLangCode = defaultLangCode{
44
+ if let defaultLangCode = defaultLangCode {
45
45
  hyperKYCConfig.setDefaultLangCode(language: defaultLangCode)
46
46
  }
47
-
48
47
  HyperKyc.launch(controller!, hyperKycConfig: hyperKYCConfig) { hyperKycResult in
49
-
50
- let result = self.processHyperKycResponse(hyperKycResult: hyperKycResult)
51
- callback( [result])
48
+ let result = self.processHyperKycResponse(hyperKycResult: hyperKycResult)
49
+ callback([result])
52
50
  }
53
51
  }
54
52
 
53
+
54
+
55
55
  }
56
56
  }
57
57
 
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Workspace
3
+ version = "1.0">
4
+ <FileRef
5
+ location = "self:">
6
+ </FileRef>
7
+ </Workspace>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>IDEDidComputeMac32BitWarning</key>
6
+ <true/>
7
+ </dict>
8
+ </plist>
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>SchemeUserState</key>
6
+ <dict>
7
+ <key>HyperkycSdk.xcscheme_^#shared#^_</key>
8
+ <dict>
9
+ <key>orderHint</key>
10
+ <integer>0</integer>
11
+ </dict>
12
+ </dict>
13
+ </dict>
14
+ </plist>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-hyperkyc-sdk",
3
- "version": "0.8.0",
3
+ "version": "0.9.2",
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/DocDetect", "0.8.0"
19
+ s.dependency "HyperKYC", "0.9.1"
20
20
  # Need these lines to support HyperKYC framework
21
21
  s.preserve_paths = 'HyperKYC.framework'
22
22
  s.xcconfig = { 'OTHER_LDFLAGS' => '-framework HyperKYC' }