@regulaforensics/face-sdk 8.2.919-rc → 8.2.923-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.
Files changed (59) hide show
  1. package/RNFaceSDK.podspec +3 -3
  2. package/android/{CVDFaceSDK.kt → CDVFaceSDK.kt} +1 -1
  3. package/android/build.gradle +1 -1
  4. package/android/cordova.gradle +1 -1
  5. package/android/src/main/java/com/regula/plugin/facesdk/Config.kt +4 -0
  6. package/android/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +12 -7
  7. package/android/src/main/java/com/regula/plugin/facesdk/Utils.kt +2 -3
  8. package/examples/capacitor/android/app/build.gradle +2 -2
  9. package/examples/capacitor/android/app/capacitor.build.gradle +2 -3
  10. package/examples/capacitor/android/app/src/main/AndroidManifest.xml +1 -1
  11. package/examples/capacitor/android/build.gradle +3 -3
  12. package/examples/capacitor/android/capacitor.settings.gradle +2 -5
  13. package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  14. package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.properties +1 -1
  15. package/examples/capacitor/android/gradlew +4 -5
  16. package/examples/capacitor/android/gradlew.bat +2 -2
  17. package/examples/capacitor/android/variables.gradle +10 -10
  18. package/examples/capacitor/ios/App/App.xcodeproj/project.pbxproj +20 -4
  19. package/examples/capacitor/ios/App/Podfile +5 -1
  20. package/examples/capacitor/ios/App/Podfile.lock +14 -14
  21. package/examples/capacitor/package-lock.json +817 -853
  22. package/examples/capacitor/package.json +17 -17
  23. package/examples/ionic/images/icon.png +0 -0
  24. package/examples/ionic/package-lock.json +8477 -8064
  25. package/examples/ionic/package.json +23 -14
  26. package/examples/ionic/patches/cordova-plugin-ionic-webview+5.0.1.patch +23 -0
  27. package/examples/ionic/scripts/ios.sh +1 -1
  28. package/examples/react_native/package-lock.json +1191 -1473
  29. package/examples/react_native/package.json +2 -2
  30. package/ios/CDVFaceSDK.swift +42 -0
  31. package/ios/Config.swift +245 -0
  32. package/ios/Decoder.swift +934 -0
  33. package/ios/Main.swift +191 -0
  34. package/ios/RNFaceSDK.m +7 -39
  35. package/ios/RNFaceSDK.swift +42 -0
  36. package/ios/Utils.swift +82 -0
  37. package/package.json +1 -1
  38. package/plugin.xml +10 -12
  39. package/test/json.tsx +16 -13
  40. package/test/package-lock.json +1 -1
  41. package/www/capacitor/customization/customization_images.js +47 -39
  42. package/www/capacitor/face_capture/face_capture_config.js +4 -0
  43. package/www/capacitor/liveness/liveness_config.js +4 -0
  44. package/www/cordova.js +55 -39
  45. package/www/react-native/customization/customization_images.js +47 -39
  46. package/www/react-native/face_capture/face_capture_config.js +4 -0
  47. package/www/react-native/liveness/liveness_config.js +4 -0
  48. package/www/types/customization/customization_images.d.ts +1 -0
  49. package/www/types/face_capture/face_capture_config.d.ts +6 -0
  50. package/www/types/liveness/liveness_config.d.ts +7 -0
  51. package/ios/CVDFaceSDK.h +0 -7
  52. package/ios/CVDFaceSDK.m +0 -43
  53. package/ios/RFSWConfig.h +0 -27
  54. package/ios/RFSWConfig.m +0 -199
  55. package/ios/RFSWJSONConstructor.h +0 -135
  56. package/ios/RFSWJSONConstructor.m +0 -985
  57. package/ios/RFSWMain.h +0 -24
  58. package/ios/RFSWMain.m +0 -381
  59. package/ios/RNFaceSDK.h +0 -8
@@ -3,30 +3,39 @@
3
3
  "scripts": {
4
4
  "setup": "scripts/setup.sh",
5
5
  "ios": "scripts/ios.sh",
6
- "android": "scripts/android.sh"
6
+ "android": "scripts/android.sh",
7
+ "postinstall": "patch-package"
7
8
  },
8
9
  "dependencies": {
9
- "@angular-devkit/build-angular": "^21.0.5",
10
- "@angular/cli": "^21.0.5",
11
- "@angular/common": "^21.0.8",
12
- "@angular/compiler-cli": "^21.0.8",
13
- "@angular/core": "^21.0.8",
14
- "@angular/forms": "^21.0.8",
15
- "@angular/platform-browser-dynamic": "^21.0.8",
16
- "@angular/router": "^21.0.8",
17
- "@ionic/angular": "^8.7.16",
10
+ "@angular-devkit/build-angular": "^21.1.4",
11
+ "@angular/cli": "^21.1.4",
12
+ "@angular/common": "^21.1.5",
13
+ "@angular/compiler-cli": "^21.1.5",
14
+ "@angular/core": "^21.1.5",
15
+ "@angular/forms": "^21.1.5",
16
+ "@angular/platform-browser-dynamic": "^21.1.5",
17
+ "@angular/router": "^21.1.5",
18
+ "@ionic/angular": "^8.7.17",
18
19
  "@ionic/cordova-builders": "^12.3.0",
19
20
  "@awesome-cordova-plugins/camera": "^8.1.0",
20
21
  "@awesome-cordova-plugins/dialogs": "^8.1.0",
21
22
  "@awesome-cordova-plugins/file": "^8.1.0",
22
- "@regulaforensics/face-sdk": "8.2.919-rc",
23
- "@regulaforensics/face-core-basic": "8.2.498-rc",
23
+ "@regulaforensics/face-sdk": "8.2.923-beta",
24
+ "@regulaforensics/face-core-basic": "8.1.422",
24
25
  "cordova-android": "^14.0.1",
25
- "cordova-ios": "^7.1.1",
26
+ "cordova-ios": "^8.0.0",
26
27
  "cordova-plugin-camera": "^8.0.0",
27
28
  "cordova-plugin-dialogs": "^2.0.2",
28
29
  "cordova-plugin-file": "^8.1.3",
29
- "cordova-plugin-ionic-webview": "^5.0.1"
30
+ "cordova-plugin-ionic-webview": "^5.0.1",
31
+ "patch-package": "^8.0.1"
32
+ },
33
+ "overrides": {
34
+ "ajv": "^8.18.0",
35
+ "serialize-javascript": "^7.0.4",
36
+ "@angular/compiler": "^21.2.4",
37
+ "undici": "^7.24.0",
38
+ "picomatch": "^4.0.4"
30
39
  },
31
40
  "cordova": {
32
41
  "plugins": {
@@ -0,0 +1,23 @@
1
+ diff --git a/node_modules/cordova-plugin-ionic-webview/src/ios/CDVWKWebViewEngine.m b/node_modules/cordova-plugin-ionic-webview/src/ios/CDVWKWebViewEngine.m
2
+ index 2acb99b..900a04c 100644
3
+ --- a/node_modules/cordova-plugin-ionic-webview/src/ios/CDVWKWebViewEngine.m
4
+ +++ b/node_modules/cordova-plugin-ionic-webview/src/ios/CDVWKWebViewEngine.m
5
+ @@ -731,6 +731,18 @@ - (BOOL)defaultResourcePolicyForURL:(NSURL*)url
6
+ return YES;
7
+ }
8
+
9
+ + // Allow internal local-server navigation even when no plugin overrides the request.
10
+ + NSURL *localServerUrl = [NSURL URLWithString:self.CDV_LOCAL_SERVER];
11
+ + if (localServerUrl != nil && url != nil) {
12
+ + NSString *localScheme = localServerUrl.scheme.lowercaseString;
13
+ + NSString *localHost = localServerUrl.host.lowercaseString;
14
+ + NSString *urlScheme = url.scheme.lowercaseString;
15
+ + NSString *urlHost = url.host.lowercaseString;
16
+ + if ([localScheme isEqualToString:urlScheme] && [localHost isEqualToString:urlHost]) {
17
+ + return YES;
18
+ + }
19
+ + }
20
+ +
21
+ return NO;
22
+ }
23
+
@@ -2,7 +2,7 @@
2
2
 
3
3
  if [[ $npm_config_o || $npm_config_open ]]; then
4
4
  ionic cordova prepare ios
5
- open platforms/ios/Face.xcworkspace
5
+ open platforms/ios/App.xcworkspace
6
6
  else
7
7
  ionic cordova run ios
8
8
  fi