@veriff/react-native-sdk 5.2.0 → 6.0.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/android/build.gradle
CHANGED
|
@@ -97,6 +97,7 @@ public class VeriffSdkModule extends ReactContextBaseJavaModule {
|
|
|
97
97
|
public static final String KEY_BUTTON_RADIUS = "buttonRadius";
|
|
98
98
|
private static final String KEY_CUSTOM_INTRO_SCREEN = "customIntroScreen";
|
|
99
99
|
private static final String KEY_RN_IMAGE_URI = "uri";
|
|
100
|
+
private static final String KEY_RN_VENDOR_DATA = "vendorData";
|
|
100
101
|
|
|
101
102
|
private static final String KEY_FONT = "androidFont";
|
|
102
103
|
|
|
@@ -330,6 +331,10 @@ public class VeriffSdkModule extends ReactContextBaseJavaModule {
|
|
|
330
331
|
configBuilder.locale(Locale.forLanguageTag(configuration.getString(KEY_LOCALE)));
|
|
331
332
|
}
|
|
332
333
|
|
|
334
|
+
if (configuration.hasKey(KEY_RN_VENDOR_DATA)) {
|
|
335
|
+
configBuilder.vendorData(configuration.getString(KEY_RN_VENDOR_DATA));
|
|
336
|
+
}
|
|
337
|
+
|
|
333
338
|
Intent intent = Sdk.createLaunchIntent(activity, startUrl, configBuilder.build());
|
|
334
339
|
activity.startActivityForResult(intent, VERIFF_REQUEST_CODE);
|
|
335
340
|
|
package/babel.config.js
CHANGED
package/ios/Podfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
platform :ios, '
|
|
1
|
+
platform :ios, '13.4'
|
|
2
2
|
|
|
3
3
|
# Resolve react_native_pods.rb with node to allow for hoisting
|
|
4
4
|
require Pod::Executable.execute_command('node', ['-p',
|
|
@@ -9,12 +9,10 @@ require Pod::Executable.execute_command('node', ['-p',
|
|
|
9
9
|
|
|
10
10
|
target 'VeriffSdk' do
|
|
11
11
|
# Pods for VeriffSdk
|
|
12
|
-
pod 'VeriffSDK', '6.
|
|
12
|
+
pod 'VeriffSDK', '6.23.0'
|
|
13
13
|
|
|
14
14
|
config = use_native_modules!
|
|
15
15
|
|
|
16
|
-
# Flags change depending on the env values.
|
|
17
|
-
flags = get_default_flags()
|
|
18
16
|
use_react_native!(
|
|
19
17
|
:path => config[:reactNativePath]
|
|
20
18
|
)
|
package/ios/VeriffSdk.swift
CHANGED
|
@@ -29,6 +29,7 @@ class VeriffSdk: NSObject {
|
|
|
29
29
|
private static let LOCALE = "locale"
|
|
30
30
|
private static let LOGO = "logo"
|
|
31
31
|
private static let USE_CUSTOM_INTRO_SCREEN = "customIntroScreen"
|
|
32
|
+
private static let VENDOR_DATA = "vendorData"
|
|
32
33
|
|
|
33
34
|
private static let STATUS = "status"
|
|
34
35
|
private static let ERROR = "error"
|
|
@@ -118,7 +119,6 @@ class VeriffSdk: NSObject {
|
|
|
118
119
|
}
|
|
119
120
|
|
|
120
121
|
veriffConfiguration = Veriff.VeriffSdk.Configuration(branding: veriffBranding, languageLocale: locale)
|
|
121
|
-
veriffConfiguration?.customIntroScreen = VeriffSdk.checkCustomIntro(configuration: configuration)
|
|
122
122
|
} else if let sessionToken = configuration[VeriffSdk.SESSION_TOKEN] as? String {
|
|
123
123
|
// Using deprecated API
|
|
124
124
|
let baseURLString = configuration[VeriffSdk.BASE_URL] as? String ?? VeriffSdk.DEFAULT_BASE_URL
|
|
@@ -128,13 +128,15 @@ class VeriffSdk: NSObject {
|
|
|
128
128
|
sessionURL = baseURL.appendingPathComponent(sessionToken)
|
|
129
129
|
|
|
130
130
|
veriffConfiguration = Veriff.VeriffSdk.Configuration(branding: veriffBranding)
|
|
131
|
-
veriffConfiguration?.customIntroScreen = VeriffSdk.checkCustomIntro(configuration: configuration)
|
|
132
131
|
} else {
|
|
133
132
|
// Failed to configure
|
|
134
133
|
reject(VeriffSdk.ERROR_INVALID_ARGS, "No sessionUrl or sessionToken in Veriff SDK configuration", nil)
|
|
135
134
|
return
|
|
136
135
|
}
|
|
137
136
|
|
|
137
|
+
veriffConfiguration?.customIntroScreen = VeriffSdk.checkCustomIntro(configuration: configuration)
|
|
138
|
+
veriffConfiguration?.vendorData = configuration[VeriffSdk.VENDOR_DATA] as? String
|
|
139
|
+
|
|
138
140
|
DispatchQueue.main.async {
|
|
139
141
|
self.resolve = resolve
|
|
140
142
|
self.reject = reject
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veriff/react-native-sdk",
|
|
3
3
|
"title": "React Native Veriff SDK",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "6.0.0",
|
|
5
5
|
"description": "React Native SDK for Veriff identity verification",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"scripts": {
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
"readmeFilename": "README.md",
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"react": "18.2.0",
|
|
31
|
-
"react-native": "^0.
|
|
31
|
+
"react-native": "^0.73.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@react-native/eslint-config": "^0.
|
|
35
|
-
"@react-native/metro-config": "^0.
|
|
34
|
+
"@react-native/eslint-config": "^0.73.1",
|
|
35
|
+
"@react-native/metro-config": "^0.73.2",
|
|
36
36
|
"@rnx-kit/align-deps": "^2.2.0",
|
|
37
37
|
"eslint": "^8.19.0",
|
|
38
|
-
"prettier": "
|
|
38
|
+
"prettier": "2.8.8",
|
|
39
39
|
"react": "18.2.0",
|
|
40
|
-
"react-native": "0.
|
|
40
|
+
"react-native": "0.73.0"
|
|
41
41
|
},
|
|
42
42
|
"resolutions": {
|
|
43
43
|
"ansi-regex": "^5.0.1",
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
"alignDeps": {
|
|
67
67
|
"requirements": {
|
|
68
68
|
"development": [
|
|
69
|
-
"react-native@0.
|
|
69
|
+
"react-native@0.73"
|
|
70
70
|
],
|
|
71
71
|
"production": [
|
|
72
|
-
"react-native@0.
|
|
72
|
+
"react-native@0.73"
|
|
73
73
|
]
|
|
74
74
|
},
|
|
75
75
|
"capabilities": [
|
package/react-native-sdk.podspec
CHANGED