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 +7 -0
- package/android/build.gradle +1 -1
- 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/react-native-hyperkyc-sdk.podspec +1 -1
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`
|
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.9.1@aar', {
|
|
60
60
|
transitive = true
|
|
61
61
|
})
|
|
62
62
|
|
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>
|
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
|
|
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' }
|