@socure-inc/docv-react-native 5.3.1 → 5.4.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/README.md
CHANGED
|
@@ -19,7 +19,7 @@ The Predictive Document Verification (DocV) SDK for React Native is a React Nati
|
|
|
19
19
|
|
|
20
20
|
## React Native New Architecture Support
|
|
21
21
|
|
|
22
|
-
Starting with
|
|
22
|
+
Starting with version 5.2.8, the wrapper fully supports the **React Native New Architecture** (TurboModules / Fabric) introduced in React Native 0.79+. Both Old Architecture and New Architecture builds are supported from the same package with no configuration changes required.
|
|
23
23
|
|
|
24
24
|
### What changed
|
|
25
25
|
|
|
@@ -500,6 +500,7 @@ The following errors may be returned by the Socure DocV SDK:
|
|
|
500
500
|
| `ERR_SESSION_INITIATION` | `"Failed to initiate the session"` | The SDK could not start a verification session with Socure servers. |
|
|
501
501
|
| `ERR_CAMERA_PERMISSION` | `"Permissions to open the camera declined by the user"` | The user denied camera access. |
|
|
502
502
|
| `ERR_CONSENT_DECLINED` | `"Consent declined by the user"` | The user declined the consent screen. |
|
|
503
|
+
| `ERR_GUARDIAN_CONSENT_DECLINED` | `"Consent declined by the guardian"` | The guardian declined the consent screen. |
|
|
503
504
|
| `ERR_UPLOAD_FAILURE` | `"Failed to upload the documents"` | Captured images could not be uploaded. |
|
|
504
505
|
| `ERR_INVALID_TOKEN` | `"Invalid transaction token"` | The `docVTransactionToken` is missing, malformed, or already used. |
|
|
505
506
|
| `ERR_INVALID_KEY` | `"Invalid or missing SDK key"` | The `publicKey` (SDK key) is invalid or was not provided. |
|
package/android/build.gradle
CHANGED
|
@@ -144,9 +144,9 @@ dependencies {
|
|
|
144
144
|
//noinspection GradleDynamicVersion
|
|
145
145
|
implementation "com.facebook.react:react-native:+"
|
|
146
146
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
147
|
-
implementation "com.socure.android:docv-capture:5.
|
|
147
|
+
implementation "com.socure.android:docv-capture:5.6.0"
|
|
148
148
|
|
|
149
|
-
def retrofit_version = "2.
|
|
149
|
+
def retrofit_version = "2.11.0"
|
|
150
150
|
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
|
|
151
151
|
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
|
|
152
152
|
|
|
@@ -196,6 +196,7 @@ class SocureDocVReactNativeModule(reactContext: ReactApplicationContext) :
|
|
|
196
196
|
SocureDocVError.SESSION_INITIATION_FAILURE -> "ERR_SESSION_INITIATION"
|
|
197
197
|
SocureDocVError.CAMERA_PERMISSION_DECLINED -> "ERR_CAMERA_PERMISSION"
|
|
198
198
|
SocureDocVError.CONSENT_DECLINED -> "ERR_CONSENT_DECLINED"
|
|
199
|
+
SocureDocVError.GUARDIAN_CONSENT_DECLINED -> "ERR_GUARDIAN_CONSENT_DECLINED"
|
|
199
200
|
SocureDocVError.DOCUMENT_UPLOAD_FAILURE -> "ERR_UPLOAD_FAILURE"
|
|
200
201
|
SocureDocVError.INVALID_DOCV_TRANSACTION_TOKEN -> "ERR_INVALID_TOKEN"
|
|
201
202
|
SocureDocVError.INVALID_PUBLIC_KEY -> "ERR_INVALID_KEY"
|
|
@@ -211,6 +212,7 @@ class SocureDocVReactNativeModule(reactContext: ReactApplicationContext) :
|
|
|
211
212
|
SocureDocVError.SESSION_INITIATION_FAILURE -> "Failed to initiate the session"
|
|
212
213
|
SocureDocVError.CAMERA_PERMISSION_DECLINED -> "Permissions to open the camera declined by the user"
|
|
213
214
|
SocureDocVError.CONSENT_DECLINED -> "Consent declined by the user"
|
|
215
|
+
SocureDocVError.GUARDIAN_CONSENT_DECLINED -> "Consent declined by the guardian"
|
|
214
216
|
SocureDocVError.DOCUMENT_UPLOAD_FAILURE -> "Failed to upload the documents"
|
|
215
217
|
SocureDocVError.INVALID_DOCV_TRANSACTION_TOKEN -> "Invalid transaction token"
|
|
216
218
|
SocureDocVError.INVALID_PUBLIC_KEY -> "Invalid or missing SDK key"
|
|
@@ -86,6 +86,7 @@ class SocureDocVHelper: NSObject {
|
|
|
86
86
|
case .invalidPublicKey: return "ERR_INVALID_KEY"
|
|
87
87
|
case .sessionExpired: return "ERR_SESSION_EXPIRED"
|
|
88
88
|
case .userCanceled: return "ERR_USER_CANCELED"
|
|
89
|
+
case .guardianConsentDeclined: return "ERR_GUARDIAN_CONSENT_DECLINED"
|
|
89
90
|
case .unknown: fallthrough
|
|
90
91
|
@unknown default: return "ERR_UNKNOWN"
|
|
91
92
|
}
|
|
@@ -102,6 +103,7 @@ class SocureDocVHelper: NSObject {
|
|
|
102
103
|
case .invalidPublicKey: return "Invalid or missing SDK key"
|
|
103
104
|
case .sessionExpired: return "Session expired"
|
|
104
105
|
case .userCanceled: return "Scan canceled by the user"
|
|
106
|
+
case .guardianConsentDeclined: return "Consent declined by the guardian"
|
|
105
107
|
case .unknown: fallthrough
|
|
106
108
|
@unknown default: return "Unknown error"
|
|
107
109
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socure-inc/docv-react-native",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"description": "The Predictive Document Verification (DocV) SDK React Native bridge allows you to use the DocV SDK v5 for Android and iOS in your React Native application.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|