react-native-hyperkyc-sdk 0.9.1 → 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 +3 -0
- package/ios/.DS_Store +0 -0
- package/ios/HyperkycSdk.swift +21 -21
- package/ios/HyperkycSdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/HyperkycSdk.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/HyperkycSdk.xcodeproj/project.xcworkspace/xcuserdata/niveditamuthusubramanian.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/HyperkycSdk.xcodeproj/xcuserdata/niveditamuthusubramanian.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/ios/.DS_Store
ADDED
|
Binary file
|
package/ios/HyperkycSdk.swift
CHANGED
|
@@ -22,36 +22,36 @@ class Hyperkyc: NSObject {
|
|
|
22
22
|
|
|
23
23
|
DispatchQueue.main.async {
|
|
24
24
|
let controller = RCTPresentedViewController()
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
|
|
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
|
|
|
Binary file
|
|
@@ -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>
|