@regulaforensics/face-sdk 6.4.149-beta → 6.4.152-nightly

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.
Files changed (50) hide show
  1. package/.gitlab/report.yaml +75 -0
  2. package/.gitlab-ci.yml +49 -0
  3. package/RNFaceSDK.podspec +3 -3
  4. package/android/build.gradle +2 -2
  5. package/android/cordova.gradle +2 -2
  6. package/android/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +4 -2
  7. package/examples/capacitor/README.md +4 -4
  8. package/examples/capacitor/android/build.gradle +2 -2
  9. package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.properties +1 -1
  10. package/examples/capacitor/ios/App/App.xcodeproj/project.pbxproj +2 -2
  11. package/examples/capacitor/ios/App/Podfile +1 -1
  12. package/examples/capacitor/package.json +13 -13
  13. package/examples/capacitor/scripts/android.sh +9 -0
  14. package/examples/capacitor/scripts/ios.sh +8 -0
  15. package/examples/capacitor/scripts/setup.sh +4 -0
  16. package/examples/cordova/README.md +4 -4
  17. package/examples/cordova/config.xml +2 -2
  18. package/examples/cordova/package.json +10 -16
  19. package/examples/cordova/scripts/android.sh +8 -0
  20. package/examples/cordova/scripts/ios.sh +8 -0
  21. package/examples/cordova/scripts/setup.sh +5 -0
  22. package/examples/cordova/www/js/index.js +13 -13
  23. package/examples/ionic/README.md +4 -4
  24. package/examples/ionic/config.xml +2 -2
  25. package/examples/ionic/package.json +16 -17
  26. package/examples/ionic/scripts/android.sh +8 -0
  27. package/examples/ionic/scripts/ios.sh +8 -0
  28. package/examples/ionic/scripts/setup.sh +5 -0
  29. package/examples/react-native/Gemfile +1 -0
  30. package/examples/react-native/Gemfile.lock +26 -23
  31. package/examples/react-native/README.md +4 -4
  32. package/examples/react-native/android/app/src/main/java/com/regula/face/api/MainApplication.kt +2 -1
  33. package/examples/react-native/android/build.gradle +3 -3
  34. package/examples/react-native/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  35. package/examples/react-native/android/gradle/wrapper/gradle-wrapper.properties +2 -2
  36. package/examples/react-native/android/gradlew +4 -1
  37. package/examples/react-native/ios/Podfile.lock +319 -303
  38. package/examples/react-native/package-lock.json +6101 -6298
  39. package/examples/react-native/package.json +20 -18
  40. package/examples/react-native/scripts/android.sh +8 -0
  41. package/examples/react-native/scripts/ios.sh +8 -0
  42. package/examples/react-native/scripts/setup.sh +8 -0
  43. package/package.json +1 -1
  44. package/plugin.xml +4 -2
  45. package/www/capacitor/liveness/liveness_backend_exception.js +3 -0
  46. package/www/cordova.js +4 -1
  47. package/www/react-native/liveness/liveness_backend_exception.js +3 -0
  48. package/www/types/index.d.ts +1 -0
  49. package/www/types/liveness/liveness_backend_exception.d.ts +3 -0
  50. package/.used-build-folder +0 -0
@@ -3,38 +3,40 @@
3
3
  "version": "1.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
- "setup": "npm install && (cd ios && bundle install) && npm run pod-install",
7
- "pod-install": "cd ios && RCT_NEW_ARCH_ENABLED=1 bundle exec pod update",
8
- "android": "react-native run-android",
9
- "ios": "react-native run-ios",
6
+ "setup": "scripts/setup.sh",
7
+ "ios": "scripts/ios.sh",
8
+ "android": "scripts/android.sh",
10
9
  "lint": "eslint .",
11
10
  "start": "react-native start",
12
11
  "test": "jest"
13
12
  },
14
13
  "dependencies": {
15
- "@regulaforensics/face-sdk": "6.4.149-beta",
16
- "@regulaforensics/face-core-basic": "6.3.12-beta",
14
+ "@regulaforensics/face-sdk": "6.4.152-nightly",
15
+ "@regulaforensics/face-core-basic": "6.4.86-nightly",
17
16
  "react": "18.3.1",
18
- "react-native": "0.75.4",
17
+ "react-native": "0.76.6",
19
18
  "react-native-fs": "2.20.0",
20
- "react-native-image-picker": "7.1.2"
19
+ "react-native-image-picker": "7.2.3"
21
20
  },
22
21
  "devDependencies": {
23
- "@babel/core": "^7.20.0",
24
- "@babel/preset-env": "^7.20.0",
25
- "@babel/runtime": "^7.20.0",
26
- "@react-native/babel-preset": "0.75.4",
27
- "@react-native/eslint-config": "0.75.4",
28
- "@react-native/metro-config": "0.75.4",
29
- "@react-native/typescript-config": "0.75.4",
22
+ "@babel/core": "^7.26.0",
23
+ "@babel/preset-env": "^7.26.0",
24
+ "@babel/runtime": "^7.26.0",
25
+ "@react-native-community/cli": "15.1.3",
26
+ "@react-native-community/cli-platform-android": "15.1.3",
27
+ "@react-native-community/cli-platform-ios": "15.1.3",
28
+ "@react-native/babel-preset": "0.76.6",
29
+ "@react-native/eslint-config": "0.76.6",
30
+ "@react-native/metro-config": "0.76.6",
31
+ "@react-native/typescript-config": "0.76.6",
30
32
  "@types/react": "^18.2.6",
31
33
  "@types/react-test-renderer": "^18.0.0",
32
- "babel-jest": "^29.6.3",
34
+ "babel-jest": "^29.7.0",
33
35
  "eslint": "^8.19.0",
34
- "jest": "^29.6.3",
36
+ "jest": "^29.7.0",
35
37
  "prettier": "2.8.8",
36
38
  "react-test-renderer": "18.3.1",
37
- "typescript": "5.0.4"
39
+ "typescript": "5.7.3"
38
40
  },
39
41
  "engines": {
40
42
  "node": ">=18"
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ if [[ $npm_config_o || $npm_config_open ]]; then
5
+ studio android || open -a 'Android Studio' android
6
+ else
7
+ react-native run-android
8
+ fi
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ if [[ $npm_config_o || $npm_config_open ]]; then
5
+ open ios/FaceSDK.xcworkspace
6
+ else
7
+ react-native run-ios
8
+ fi
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ npm install
5
+ cd ios
6
+ bundle install
7
+ RCT_NEW_ARCH_ENABLED=1 bundle exec pod install ||
8
+ RCT_NEW_ARCH_ENABLED=1 bundle exec pod update
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/face-sdk",
3
- "version": "6.4.149-beta",
3
+ "version": "6.4.152-nightly",
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.4.149-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/face-sdk" version="6.4.152-nightly" 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>
@@ -14,6 +14,7 @@
14
14
  <feature name="FaceSDK">
15
15
  <param name="ios-package" value="CVDFaceSDK" />
16
16
  </feature>
17
+ <preference name="deployment-target" value="12.0" />
17
18
  </config-file>
18
19
  <header-file src="ios/CVDFaceSDK.h" />
19
20
  <source-file src="ios/CVDFaceSDK.m" />
@@ -25,9 +26,10 @@
25
26
  <source-file src="ios/RFSWConfig.m" />
26
27
  <podspec>
27
28
  <config>
29
+ <source url="https://cdn.cocoapods.org/" />
28
30
  </config>
29
31
  <pods>
30
- <pod name="FaceSDK" spec="6.3.2181" />
32
+ <pod name="FaceSDKNightly" spec="6.4.2473" />
31
33
  </pods>
32
34
  </podspec>
33
35
  </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 i in __webpack_exports__) __webpack_export_target__[i] = __webpack_exports__[i];
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,
@@ -87,6 +87,7 @@ export class FaceSDK {
87
87
  * The only instance of singleton class {@link FaceSDK}.
88
88
  */
89
89
  static get instance(): FaceSDK
90
+ private constructor()
90
91
 
91
92
  /**
92
93
  * Information about the SDK.
@@ -8,6 +8,9 @@ export class LivenessBackendException {
8
8
  export enum LivenessBackendErrorCode {
9
9
  UNDEFINED,
10
10
  NO_LICENSE,
11
+ NOT_INITIALIZED,
12
+ COMMAND_IS_NOT_SUPPORTED,
13
+ PARAMS_READ_ERROR,
11
14
  LOW_QUALITY,
12
15
  TRACK_BREAK,
13
16
  CLOSED_EYES_DETECTED,
File without changes