@regulaforensics/face-sdk 7.1.195-rc → 7.1.201-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 (55) hide show
  1. package/README.md +1 -1
  2. package/RNFaceSDK.podspec +3 -3
  3. package/android/CVDFaceSDK.kt +22 -8
  4. package/android/build.gradle +2 -2
  5. package/android/cordova.gradle +2 -2
  6. package/android/src/main/java/com/regula/plugin/facesdk/Config.kt +7 -1
  7. package/android/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +2 -0
  8. package/android/src/main/java/com/regula/plugin/facesdk/Main.kt +2 -7
  9. package/android/src/main/java/com/regula/plugin/facesdk/RNFaceApiModule.kt +16 -6
  10. package/android/src/main/java/com/regula/plugin/facesdk/Utils.kt +1 -1
  11. package/examples/capacitor/README.md +1 -1
  12. package/examples/capacitor/android/app/capacitor.build.gradle +5 -4
  13. package/examples/capacitor/android/capacitor.settings.gradle +3 -0
  14. package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.properties +1 -1
  15. package/examples/capacitor/android/variables.gradle +12 -12
  16. package/examples/capacitor/ios/App/Podfile +3 -0
  17. package/examples/capacitor/ios/App/Podfile.lock +72 -0
  18. package/examples/capacitor/package-lock.json +11336 -0
  19. package/examples/capacitor/package.json +17 -19
  20. package/examples/capacitor/scripts/setup.sh +2 -0
  21. package/examples/capacitor/src/pages/Home.tsx +16 -12
  22. package/examples/cordova/README.md +1 -1
  23. package/examples/cordova/package-lock.json +1373 -0
  24. package/examples/cordova/package.json +2 -2
  25. package/examples/cordova/scripts/setup.sh +5 -1
  26. package/examples/ionic/README.md +1 -1
  27. package/examples/ionic/package-lock.json +15761 -0
  28. package/examples/ionic/package.json +2 -2
  29. package/examples/ionic/scripts/setup.sh +5 -1
  30. package/examples/ionic/src/app/home/home.page.ts +11 -11
  31. package/examples/react-native/Gemfile.lock +23 -21
  32. package/examples/react-native/ios/Podfile +2 -0
  33. package/examples/react-native/ios/Podfile.lock +471 -424
  34. package/examples/react-native/package-lock.json +615 -702
  35. package/examples/react-native/package.json +7 -7
  36. package/examples/react-native/scripts/android.sh +4 -0
  37. package/examples/react-native/scripts/ios.sh +4 -0
  38. package/ios/RFSWJSONConstructor.m +13 -15
  39. package/ios/RFSWMain.m +1 -1
  40. package/package.json +1 -1
  41. package/plugin.xml +4 -4
  42. package/www/capacitor/detect_faces/detect_faces_request.js +2 -0
  43. package/www/capacitor/image_quality/image_quality_characteristic.js +2 -0
  44. package/www/capacitor/image_quality/image_quality_group.js +1 -0
  45. package/www/capacitor/internal/bridge.js +8 -7
  46. package/www/capacitor/person_database/person_database.js +1 -1
  47. package/www/cordova.js +84 -75
  48. package/www/react-native/detect_faces/detect_faces_request.js +2 -0
  49. package/www/react-native/image_quality/image_quality_characteristic.js +2 -0
  50. package/www/react-native/image_quality/image_quality_group.js +1 -0
  51. package/www/react-native/internal/bridge.js +8 -7
  52. package/www/react-native/person_database/person_database.js +1 -1
  53. package/www/types/person_database/person_database.d.ts +1 -1
  54. package/.gitlab/report.yaml +0 -75
  55. package/.gitlab-ci.yml +0 -49
@@ -16,8 +16,8 @@
16
16
  },
17
17
  "private": true,
18
18
  "dependencies": {
19
- "@regulaforensics/face-sdk": "7.1.195-rc",
20
- "@regulaforensics/face-core-basic": "7.1.112-rc",
19
+ "@regulaforensics/face-sdk": "7.1.201-nightly",
20
+ "@regulaforensics/face-core-basic": "7.1.114-nightly",
21
21
  "cordova-plugin-camera": "8.0.0",
22
22
  "@awesome-cordova-plugins/camera": "6.14.0",
23
23
  "@awesome-cordova-plugins/core": "6.14.0",
@@ -2,4 +2,8 @@
2
2
  set -e
3
3
 
4
4
  npm install
5
- ionic cordova prepare
5
+ rm -rf platforms plugins
6
+ ionic cordova prepare || {
7
+ pod repo update
8
+ ionic cordova prepare
9
+ }
@@ -20,7 +20,7 @@ async function startLiveness() {
20
20
  }
21
21
  })
22
22
  if (response.image == null) return
23
- setImage(response.image, ImageType.LIVE, 1)
23
+ setImage("data:image/png;base64," + response.image, ImageType.LIVE, 1)
24
24
  setLivenessStatus(response.liveness == LivenessStatus.PASSED ? "passed" : "unknown")
25
25
  }
26
26
 
@@ -69,12 +69,12 @@ function setImage(base64: string, type: number, position: number) {
69
69
  var mfImage = new MatchFacesImage(base64, type)
70
70
  if (position == 1) {
71
71
  image1 = mfImage
72
- setUiImage1("data:image/png;base64," + base64)
72
+ setUiImage1(base64)
73
73
  setLivenessStatus("null")
74
74
  }
75
75
  if (position == 2) {
76
76
  image2 = mfImage
77
- setUiImage2("data:image/png;base64," + base64)
77
+ setUiImage2(base64)
78
78
  }
79
79
  }
80
80
 
@@ -82,22 +82,22 @@ async function useCamera(position: number) {
82
82
  var response = await faceSdk.startFaceCapture()
83
83
  if (response.image == null) return
84
84
  var image = response.image
85
- setImage(image.image, image.imageType, position)
85
+ setImage("data:image/png;base64," + image.image, image.imageType, position)
86
86
  }
87
87
 
88
- function useGallery(position: number) {
89
- app.camera.getPicture({
88
+ async function useGallery(position: number) {
89
+ var image = await app.camera.getPicture({
90
90
  destinationType: DestinationType.DATA_URL,
91
91
  mediaType: MediaType.PICTURE,
92
92
  sourceType: PictureSourceType.PHOTOLIBRARY
93
- }).then((result: string) => setImage(result, ImageType.PRINTED, position))
93
+ })
94
+ setImage(image, ImageType.PRINTED, position)
94
95
  }
95
96
 
96
- function pickImage(position: number) {
97
- app.dialogs.confirm("", "Select option", ["Use gallery", "Use camera"]).then(button => {
98
- if (button == 1) useGallery(position)
97
+ async function pickImage(position: number) {
98
+ var option = await app.dialogs.confirm("", "Select option", ["Use gallery", "Use camera"])
99
+ if (option == 1) useGallery(position)
99
100
  else useCamera(position)
100
- })
101
101
  }
102
102
 
103
103
  async function loadAssetIfExists(path: string): Promise<string | null> {
@@ -65,39 +65,41 @@ GEM
65
65
  netrc (~> 0.11)
66
66
  cocoapods-try (1.2.0)
67
67
  colored2 (3.1.2)
68
- concurrent-ruby (1.3.4)
69
- connection_pool (2.5.0)
68
+ concurrent-ruby (1.3.5)
69
+ connection_pool (2.5.2)
70
70
  drb (2.2.1)
71
71
  escape (0.0.4)
72
72
  ethon (0.16.0)
73
73
  ffi (>= 1.15.0)
74
- ffi (1.17.1)
75
- ffi (1.17.1-aarch64-linux-gnu)
76
- ffi (1.17.1-aarch64-linux-musl)
77
- ffi (1.17.1-arm-linux-gnu)
78
- ffi (1.17.1-arm-linux-musl)
79
- ffi (1.17.1-arm64-darwin)
80
- ffi (1.17.1-x86-linux-gnu)
81
- ffi (1.17.1-x86-linux-musl)
82
- ffi (1.17.1-x86_64-darwin)
83
- ffi (1.17.1-x86_64-linux-gnu)
84
- ffi (1.17.1-x86_64-linux-musl)
74
+ ffi (1.17.2)
75
+ ffi (1.17.2-aarch64-linux-gnu)
76
+ ffi (1.17.2-aarch64-linux-musl)
77
+ ffi (1.17.2-arm-linux-gnu)
78
+ ffi (1.17.2-arm-linux-musl)
79
+ ffi (1.17.2-arm64-darwin)
80
+ ffi (1.17.2-x86-linux-gnu)
81
+ ffi (1.17.2-x86-linux-musl)
82
+ ffi (1.17.2-x86_64-darwin)
83
+ ffi (1.17.2-x86_64-linux-gnu)
84
+ ffi (1.17.2-x86_64-linux-musl)
85
85
  fourflusher (2.3.1)
86
86
  fuzzy_match (2.0.4)
87
87
  gh_inspector (1.1.3)
88
- httpclient (2.8.3)
89
- i18n (1.14.6)
88
+ httpclient (2.9.0)
89
+ mutex_m
90
+ i18n (1.14.7)
90
91
  concurrent-ruby (~> 1.0)
91
- json (2.9.1)
92
- logger (1.6.4)
93
- minitest (5.25.4)
92
+ json (2.11.3)
93
+ logger (1.7.0)
94
+ minitest (5.25.5)
94
95
  molinillo (0.8.0)
96
+ mutex_m (0.3.0)
95
97
  nanaimo (0.3.0)
96
98
  nap (1.1.0)
97
99
  netrc (0.11.0)
98
100
  nkf (0.2.0)
99
101
  public_suffix (4.0.7)
100
- rexml (3.4.0)
102
+ rexml (3.4.1)
101
103
  ruby-macho (2.5.1)
102
104
  securerandom (0.4.1)
103
105
  typhoeus (1.4.1)
@@ -131,7 +133,7 @@ DEPENDENCIES
131
133
  xcodeproj (< 1.26.0)
132
134
 
133
135
  RUBY VERSION
134
- ruby 3.4.1p0
136
+ ruby 3.4.2p28
135
137
 
136
138
  BUNDLED WITH
137
- 2.6.2
139
+ 2.6.3
@@ -1,3 +1,5 @@
1
+ source "https://github.com/CocoaPods/Specs.git"
2
+
1
3
  # Resolve react_native_pods.rb with node to allow for hoisting
2
4
  require Pod::Executable.execute_command('node', ['-p',
3
5
  'require.resolve(