@regulaforensics/face-sdk 6.4.199-beta → 6.5.29-beta
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/RNFaceSDK.podspec +2 -2
- package/android/build.gradle +1 -1
- package/android/cordova.gradle +1 -1
- package/android/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +4 -2
- package/examples/capacitor/package.json +2 -2
- package/examples/cordova/package.json +2 -2
- package/examples/ionic/package.json +2 -2
- package/examples/react-native/package.json +2 -2
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/www/capacitor/liveness/liveness_backend_exception.js +3 -0
- package/www/cordova.js +4 -1
- package/www/react-native/liveness/liveness_backend_exception.js +3 -0
- package/www/types/liveness/liveness_backend_exception.d.ts +3 -0
package/RNFaceSDK.podspec
CHANGED
|
@@ -5,7 +5,7 @@ source = File.join(__dir__, 'ios')
|
|
|
5
5
|
|
|
6
6
|
Pod::Spec.new do |s|
|
|
7
7
|
s.name = 'RNFaceSDK'
|
|
8
|
-
s.version = '6.
|
|
8
|
+
s.version = '6.5.29-beta'
|
|
9
9
|
s.summary = package['description']
|
|
10
10
|
s.license = package['license']
|
|
11
11
|
|
|
@@ -16,6 +16,6 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
s.ios.deployment_target = '11.0'
|
|
17
17
|
s.source_files = 'ios/**/*.{h,m}'
|
|
18
18
|
s.exclude_files = [ 'ios/CVDFaceSDK.h', 'ios/CVDFaceSDK.m' ]
|
|
19
|
-
s.dependency 'FaceSDK', '6.
|
|
19
|
+
s.dependency 'FaceSDK', '6.4.2321'
|
|
20
20
|
s.dependency 'React'
|
|
21
21
|
end
|
package/android/build.gradle
CHANGED
|
@@ -41,7 +41,7 @@ dependencies {
|
|
|
41
41
|
//noinspection GradleDynamicVersion
|
|
42
42
|
implementation 'com.facebook.react:react-native:+'
|
|
43
43
|
//noinspection GradleDependency
|
|
44
|
-
implementation('com.regula.face:api:6.
|
|
44
|
+
implementation('com.regula.face:api:6.4.3456'){
|
|
45
45
|
transitive = true
|
|
46
46
|
}
|
|
47
47
|
}
|
package/android/cordova.gradle
CHANGED
|
@@ -193,13 +193,15 @@ fun generateLivenessException(input: LivenessErrorException?) = input?.let {
|
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
fun livenessBackendExceptionFromJSON(input: JSONObject?) = input?.let {
|
|
196
|
-
LivenessBackendException(LivenessBackendErrorCode.createValue(it.getInt("code")))
|
|
196
|
+
LivenessBackendException(LivenessBackendErrorCode.createValue(it.getInt("code")), "")
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
fun generateLivenessBackendException(input: LivenessBackendException?) = input?.let {
|
|
200
|
+
var message = it.message!!
|
|
201
|
+
if (message.startsWith(": ")) message = message.substring(2)
|
|
200
202
|
mapOf(
|
|
201
203
|
"code" to it.errorCode.value,
|
|
202
|
-
"message" to
|
|
204
|
+
"message" to message
|
|
203
205
|
).toJson()
|
|
204
206
|
}
|
|
205
207
|
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"lint": "eslint"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@regulaforensics/face-sdk": "6.
|
|
19
|
-
"@regulaforensics/face-core-basic": "6.
|
|
18
|
+
"@regulaforensics/face-sdk": "6.5.29-beta",
|
|
19
|
+
"@regulaforensics/face-core-basic": "6.5.32-beta",
|
|
20
20
|
"@awesome-cordova-plugins/camera": "6.6.0",
|
|
21
21
|
"@awesome-cordova-plugins/file": "6.6.0",
|
|
22
22
|
"@awesome-cordova-plugins/dialogs": "6.6.0",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"author": "Regula Forensics Inc.",
|
|
15
15
|
"license": "commercial",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@regulaforensics/face-sdk": "6.
|
|
18
|
-
"@regulaforensics/face-core-basic": "6.
|
|
17
|
+
"@regulaforensics/face-sdk": "6.5.29-beta",
|
|
18
|
+
"@regulaforensics/face-core-basic": "6.5.32-beta",
|
|
19
19
|
"cordova-android": "12.0.1",
|
|
20
20
|
"cordova-ios": "7.0.1",
|
|
21
21
|
"cordova-plugin-add-swift-support": "2.0.2",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
},
|
|
17
17
|
"private": true,
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@regulaforensics/face-sdk": "6.
|
|
20
|
-
"@regulaforensics/face-core-basic": "6.
|
|
19
|
+
"@regulaforensics/face-sdk": "6.5.29-beta",
|
|
20
|
+
"@regulaforensics/face-core-basic": "6.5.32-beta",
|
|
21
21
|
"cordova-plugin-camera": "7.0.0",
|
|
22
22
|
"@awesome-cordova-plugins/camera": "6.6.0",
|
|
23
23
|
"@awesome-cordova-plugins/core": "6.6.0",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"test": "jest"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@regulaforensics/face-sdk": "6.
|
|
16
|
-
"@regulaforensics/face-core-basic": "6.
|
|
15
|
+
"@regulaforensics/face-sdk": "6.5.29-beta",
|
|
16
|
+
"@regulaforensics/face-core-basic": "6.5.32-beta",
|
|
17
17
|
"react": "18.3.1",
|
|
18
18
|
"react-native": "0.75.4",
|
|
19
19
|
"react-native-fs": "2.20.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/face-sdk",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.5.29-beta",
|
|
4
4
|
"description": "This is an npm module for Regula Face SDK. It allows you to easily compaire faces using your phone's camera.",
|
|
5
5
|
"main": "www/react-native/index.js",
|
|
6
6
|
"module": "www/capacitor/index.js",
|
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id="@regulaforensics/face-sdk" version="6.
|
|
2
|
+
<plugin id="@regulaforensics/face-sdk" version="6.5.29-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
3
3
|
<name>FaceSDK</name>
|
|
4
4
|
<description>Cordova plugin for Regula Face SDK</description>
|
|
5
5
|
<license>commercial</license>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<config>
|
|
28
28
|
</config>
|
|
29
29
|
<pods>
|
|
30
|
-
<pod name="FaceSDK" spec="6.
|
|
30
|
+
<pod name="FaceSDK" spec="6.4.2321" />
|
|
31
31
|
</pods>
|
|
32
32
|
</podspec>
|
|
33
33
|
</platform>
|
|
@@ -16,6 +16,9 @@ export class LivenessBackendException {
|
|
|
16
16
|
export const LivenessBackendErrorCode = {
|
|
17
17
|
UNDEFINED: -1,
|
|
18
18
|
NO_LICENSE: 200,
|
|
19
|
+
NOT_INITIALIZED: 201,
|
|
20
|
+
COMMAND_IS_NOT_SUPPORTED: 202,
|
|
21
|
+
PARAMS_READ_ERROR: 203,
|
|
19
22
|
LOW_QUALITY: 231,
|
|
20
23
|
TRACK_BREAK: 246,
|
|
21
24
|
CLOSED_EYES_DETECTED: 230,
|
package/www/cordova.js
CHANGED
|
@@ -2525,6 +2525,9 @@ class LivenessBackendException {
|
|
|
2525
2525
|
const LivenessBackendErrorCode = {
|
|
2526
2526
|
UNDEFINED: -1,
|
|
2527
2527
|
NO_LICENSE: 200,
|
|
2528
|
+
NOT_INITIALIZED: 201,
|
|
2529
|
+
COMMAND_IS_NOT_SUPPORTED: 202,
|
|
2530
|
+
PARAMS_READ_ERROR: 203,
|
|
2528
2531
|
LOW_QUALITY: 231,
|
|
2529
2532
|
TRACK_BREAK: 246,
|
|
2530
2533
|
CLOSED_EYES_DETECTED: 230,
|
|
@@ -3740,7 +3743,7 @@ class SearchPersonRequest {
|
|
|
3740
3743
|
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
3741
3744
|
/******/ var __webpack_exports__ = __webpack_require__("./src/index.js");
|
|
3742
3745
|
/******/ var __webpack_export_target__ = exports;
|
|
3743
|
-
/******/ for(var
|
|
3746
|
+
/******/ for(var __webpack_i__ in __webpack_exports__) __webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
3744
3747
|
/******/ if(__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, "__esModule", { value: true });
|
|
3745
3748
|
/******/
|
|
3746
3749
|
/******/ })()
|
|
@@ -16,6 +16,9 @@ export class LivenessBackendException {
|
|
|
16
16
|
export const LivenessBackendErrorCode = {
|
|
17
17
|
UNDEFINED: -1,
|
|
18
18
|
NO_LICENSE: 200,
|
|
19
|
+
NOT_INITIALIZED: 201,
|
|
20
|
+
COMMAND_IS_NOT_SUPPORTED: 202,
|
|
21
|
+
PARAMS_READ_ERROR: 203,
|
|
19
22
|
LOW_QUALITY: 231,
|
|
20
23
|
TRACK_BREAK: 246,
|
|
21
24
|
CLOSED_EYES_DETECTED: 230,
|