@regulaforensics/face-sdk 8.4.1399-rc → 8.4.1403-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 (75) hide show
  1. package/Package.swift +27 -0
  2. package/README.md +3 -0
  3. package/android/CDVFaceSDK.kt +4 -3
  4. package/android/build.gradle.kts +37 -0
  5. package/android/cordova.gradle.kts +17 -0
  6. package/android/src/main/kotlin/com/regula/plugin/{facesdk → face/sdk}/Config.kt +1 -1
  7. package/android/src/main/kotlin/com/regula/plugin/{facesdk → face/sdk}/Implementation.kt +2 -2
  8. package/android/src/main/kotlin/com/regula/plugin/{facesdk → face/sdk}/JSONConstructor.kt +4 -4
  9. package/android/src/main/kotlin/com/regula/plugin/{facesdk → face/sdk}/RNFaceApiModule.kt +1 -1
  10. package/android/src/main/kotlin/com/regula/plugin/{facesdk → face/sdk}/Utils.kt +2 -2
  11. package/app.plugin.js +10 -7
  12. package/examples/capacitor/README.md +2 -0
  13. package/examples/capacitor/android/app/build.gradle +1 -10
  14. package/examples/capacitor/android/app/src/main/AndroidManifest.xml +9 -0
  15. package/examples/capacitor/android/app/src/main/res/xml/file_paths.xml +5 -0
  16. package/examples/capacitor/android/build.gradle +12 -3
  17. package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  18. package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.properties +1 -1
  19. package/examples/capacitor/android/gradle.properties +4 -0
  20. package/examples/capacitor/android/gradlew +4 -7
  21. package/examples/capacitor/android/gradlew.bat +82 -94
  22. package/examples/capacitor/android/variables.gradle +13 -9
  23. package/examples/capacitor/capacitor.config.json +15 -0
  24. package/examples/capacitor/index.tsx +15 -23
  25. package/examples/capacitor/ios/App/App/AppDelegate.swift +5 -40
  26. package/examples/capacitor/ios/App/App/Info.plist +18 -2
  27. package/examples/capacitor/ios/App/App/SceneDelegate.swift +23 -0
  28. package/examples/capacitor/ios/App/App.xcodeproj/project.pbxproj +25 -85
  29. package/examples/capacitor/ios/App/CapApp-SPM/Sources/CapApp-SPM/CapApp-SPM.swift +1 -0
  30. package/examples/capacitor/package-lock.json +1075 -1935
  31. package/examples/capacitor/package.json +14 -19
  32. package/examples/capacitor/scripts/android.sh +5 -8
  33. package/examples/capacitor/scripts/ios.sh +5 -7
  34. package/examples/capacitor/scripts/setup.sh +2 -6
  35. package/examples/capacitor/src/main.css +5 -1
  36. package/examples/capacitor/vite.config.ts +0 -12
  37. package/examples/ionic/README.md +2 -0
  38. package/examples/ionic/config.xml +1 -1
  39. package/examples/ionic/index.tsx +8 -3
  40. package/examples/ionic/package-lock.json +6445 -12138
  41. package/examples/ionic/package.json +23 -27
  42. package/examples/ionic/scripts/android.sh +0 -2
  43. package/examples/ionic/scripts/ios.sh +0 -2
  44. package/examples/ionic/scripts/setup.sh +0 -2
  45. package/examples/ionic/tsconfig.json +0 -1
  46. package/examples/react_native/README.md +2 -0
  47. package/examples/react_native/app.config.ts +0 -1
  48. package/examples/react_native/package.json +19 -17
  49. package/examples/react_native/scripts/android.sh +8 -6
  50. package/examples/react_native/scripts/ios.sh +7 -5
  51. package/examples/react_native/scripts/setup.sh +7 -4
  52. package/ios/CDVFaceSDK.swift +6 -1
  53. package/ios/Decoder.swift +1 -1
  54. package/ios/Implementation.swift +4 -4
  55. package/ios/RNFaceSDK.swift +2 -2
  56. package/package.json +1 -1
  57. package/plugin.xml +11 -11
  58. package/react-native-face-sdk.podspec +14 -0
  59. package/test/package-lock.json +1 -1
  60. package/www/capacitor/internal/cordova.js +2 -2
  61. package/www/cordova.js +2 -2
  62. package/RNFaceSDK.podspec +0 -21
  63. package/android/build.gradle +0 -36
  64. package/android/cordova.gradle +0 -18
  65. package/examples/capacitor/android/app/capacitor.build.gradle +0 -21
  66. package/examples/capacitor/android/capacitor.settings.gradle +0 -12
  67. package/examples/capacitor/ionic.config.json +0 -7
  68. package/examples/capacitor/ios/App/App/Base.lproj/Main.storyboard +0 -19
  69. package/examples/capacitor/ios/App/App.xcworkspace/contents.xcworkspacedata +0 -10
  70. package/examples/capacitor/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  71. package/examples/capacitor/ios/App/Podfile +0 -31
  72. package/examples/capacitor/ios/App/Podfile.lock +0 -57
  73. package/examples/react_native/package-lock.json +0 -8908
  74. package/examples/react_native/vendor/image-size-metro-compat/index.cjs +0 -16
  75. package/examples/react_native/vendor/image-size-metro-compat/package.json +0 -8
@@ -6,25 +6,20 @@
6
6
  "android": "scripts/android.sh"
7
7
  },
8
8
  "dependencies": {
9
- "@regulaforensics/face-sdk": "8.4.1399-rc",
10
- "@regulaforensics/face-core-basic": "8.4.848-rc",
11
- "@awesome-cordova-plugins/file": "^8.1.0",
12
- "@awesome-cordova-plugins/camera": "^8.1.0",
13
- "cordova-plugin-file": "^8.1.3",
14
- "cordova-plugin-camera": "^8.0.0",
15
- "@capacitor/cli": "^8.0.0",
16
- "@capacitor/core": "^8.0.0",
17
- "@capacitor/app": "^8.0.0",
18
- "@capacitor/ios": "^8.0.0",
19
- "@capacitor/android": "^8.0.0",
9
+ "@regulaforensics/face-sdk": "8.4.1403-beta",
10
+ "@regulaforensics/face-core-basic": "8.4.854-beta",
20
11
  "@capacitor/dialog": "^8.0.0",
21
- "@capacitor/status-bar": "^8.0.0",
22
- "@ionic/react": "^8.7.17",
23
- "@vitejs/plugin-react": "^5.1.2",
24
- "vite-plugin-static-copy": "^3.2.0",
25
- "@types/react-router-dom": "^5.3.3"
12
+ "@capacitor/cli": "^8.5.2",
13
+ "@capacitor/core": "^8.5.2",
14
+ "@capacitor/ios": "^8.5.2",
15
+ "@capacitor/android": "^8.5.2",
16
+ "@capacitor/camera": "^8.2.4",
17
+ "vite": "^8.3.0"
26
18
  },
27
19
  "overrides": {
28
- "esbuild": "^0.28.1"
29
- }
30
- }
20
+ "xcode": {
21
+ "uuid": "^11.1.1"
22
+ }
23
+ },
24
+ "type": "module"
25
+ }
@@ -1,11 +1,8 @@
1
1
  #!/usr/bin/env bash
2
2
  set -e
3
3
 
4
- if [[ " $* " == *" --open "* ]] || [[ " $* " == *" -o "* ]]; then
5
- ionic cap sync android
6
- open -a 'Android Studio' android
7
- else
8
- ionic cap run android
9
- fi
10
-
11
- exit 0
4
+ vite build
5
+ npx cap sync android
6
+ [[ " $* " == *" --open "* || " $* " == *" -o "* ]] &&
7
+ npx cap open android ||
8
+ npx cap run android --no-sync
@@ -1,10 +1,8 @@
1
1
  #!/usr/bin/env bash
2
2
  set -e
3
3
 
4
- if [[ " $* " == *" --open "* ]] || [[ " $* " == *" -o "* ]]; then
5
- ionic cap run ios --open
6
- else
7
- ionic cap run ios
8
- fi
9
-
10
- exit 0
4
+ vite build
5
+ npx cap sync ios
6
+ [[ " $* " == *" --open "* || " $* " == *" -o "* ]] &&
7
+ npx cap open ios ||
8
+ npx cap run ios --no-sync
@@ -2,9 +2,5 @@
2
2
  set -e
3
3
 
4
4
  npm install
5
- ionic cap sync ios || {
6
- cd ios/App
7
- pod update
8
- }
9
-
10
- exit 0
5
+ vite build
6
+ npx cap sync
@@ -1,6 +1,7 @@
1
1
  html,
2
2
  body {
3
3
  margin: 0;
4
+ font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, sans-serif;
4
5
  width: 100%;
5
6
  height: 99vh;
6
7
  display: flex;
@@ -134,4 +135,7 @@ input[type="checkbox"] {
134
135
  height: 20px;
135
136
  background-color: #4285F4;
136
137
  border-radius: 5px;
137
- }
138
+ }
139
+ * {
140
+ box-sizing: border-box;
141
+ }
@@ -1,17 +1,5 @@
1
- import react from '@vitejs/plugin-react'
2
1
  import { defineConfig } from 'vite'
3
- import { viteStaticCopy } from 'vite-plugin-static-copy';
4
2
 
5
3
  export default defineConfig({
6
- plugins: [
7
- react(),
8
- viteStaticCopy({
9
- targets: [
10
- {
11
- src: 'src/main.html',
12
- dest: '.'
13
- }
14
- ]
15
- })],
16
4
  build: { outDir: 'www' }
17
5
  })
@@ -1,5 +1,7 @@
1
1
  # Regula Face SDK Ionic demo application
2
2
 
3
+ Requires Node.js 22+, Xcode 26+, Android Studio with JDK 17 and Android SDK 36.
4
+
3
5
  ## How to build demo application
4
6
  1. Download or the clone current repository using the command `git clone https://github.com/regulaforensics/npm-face-sdk.git`.
5
7
 
@@ -12,7 +12,7 @@
12
12
  </edit-config>
13
13
  </platform>
14
14
  <platform name="ios">
15
- <preference name="deployment-target" value="14.0" />
15
+ <preference name="deployment-target" value="15.0" />
16
16
  <preference name="orientation" value="portrait" />
17
17
  <allow-intent href="itms:*" />
18
18
  <allow-intent href="itms-apps:*" />
@@ -1,8 +1,9 @@
1
1
  import 'zone.js';
2
2
  import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'
3
3
  import { BrowserModule } from '@angular/platform-browser'
4
- import { IonicModule, Platform } from '@ionic/angular'
5
- import { NgModule } from '@angular/core'
4
+ import { IonicModule } from '@ionic/angular/lazy'
5
+ import { Platform } from '@ionic/angular'
6
+ import { NgModule, provideZoneChangeDetection } from '@angular/core'
6
7
 
7
8
  import { Component } from '@angular/core'
8
9
  import { File } from '@awesome-cordova-plugins/file'
@@ -47,6 +48,7 @@ var cameraInstance: Camera
47
48
  var dialogsInstance: Dialogs
48
49
  @Component({
49
50
  selector: 'app-root',
51
+ standalone: false,
50
52
  templateUrl: 'src/main.html',
51
53
  styleUrl: 'src/main.css'
52
54
  })
@@ -64,9 +66,12 @@ class Main {
64
66
 
65
67
  @NgModule({
66
68
  bootstrap: [Main],
69
+ declarations: [Main],
67
70
  providers: [Platform, Camera, Dialogs],
68
71
  imports: [BrowserModule, IonicModule.forRoot()]
69
72
  })
70
73
  class MainModule { }
71
74
 
72
- platformBrowserDynamic().bootstrapModule(MainModule)
75
+ platformBrowserDynamic().bootstrapModule(MainModule, {
76
+ applicationProviders: [provideZoneChangeDetection()]
77
+ })