@regulaforensics/face-sdk 6.5.33-beta → 6.5.35-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 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.5.33-beta'
8
+ s.version = '6.5.35-beta'
9
9
  s.summary = package['description']
10
10
  s.license = package['license']
11
11
 
@@ -15,7 +15,7 @@
15
15
  "lint": "eslint"
16
16
  },
17
17
  "dependencies": {
18
- "@regulaforensics/face-sdk": "6.5.33-beta",
18
+ "@regulaforensics/face-sdk": "6.5.35-beta",
19
19
  "@regulaforensics/face-core-basic": "6.5.46-beta",
20
20
  "@awesome-cordova-plugins/camera": "6.6.0",
21
21
  "@awesome-cordova-plugins/file": "6.6.0",
@@ -14,7 +14,7 @@
14
14
  <preference name="orientation" value="portrait" />
15
15
  <preference name="GradlePluginKotlinEnabled" value="true" />
16
16
  <preference name="android-minSdkVersion" value="23" />
17
- <preference name="android-targetSdkVersion" value="34" />
17
+ <preference name="android-targetSdkVersion" value="35" />
18
18
  <allow-intent href="market:*" />
19
19
  <config-file parent="/*" target="AndroidManifest.xml">
20
20
  <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
@@ -14,15 +14,14 @@
14
14
  "author": "Regula Forensics Inc.",
15
15
  "license": "commercial",
16
16
  "dependencies": {
17
- "@regulaforensics/face-sdk": "6.5.33-beta",
17
+ "@regulaforensics/face-sdk": "6.5.35-beta",
18
18
  "@regulaforensics/face-core-basic": "6.5.46-beta",
19
- "cordova-android": "12.0.1",
20
- "cordova-ios": "7.0.1",
19
+ "cordova-android": "13.0.0",
20
+ "cordova-ios": "7.1.1",
21
21
  "cordova-plugin-add-swift-support": "2.0.2",
22
- "cordova-plugin-camera": "7.0.0",
23
- "jetifier": "2.0.0",
22
+ "cordova-plugin-camera": "8.0.0",
24
23
  "cordova-plugin-dialogs": "2.0.2",
25
- "cordova-plugin-file": "8.0.0"
24
+ "cordova-plugin-file": "8.1.3"
26
25
  },
27
26
  "cordova": {
28
27
  "plugins": {
@@ -64,12 +64,12 @@ function setImage(base64, type, position) {
64
64
  var mfImage = new MatchFacesImage(base64, type)
65
65
  if (position == 1) {
66
66
  image1 = mfImage
67
- setUiImage1("data:image/png;base64," + base64)
67
+ setUiImage1(base64)
68
68
  setLivenessStatus("null")
69
69
  }
70
70
  if (position == 2) {
71
71
  image2 = mfImage
72
- setUiImage2("data:image/png;base64," + base64)
72
+ setUiImage2(base64)
73
73
  }
74
74
  }
75
75
 
@@ -77,7 +77,7 @@ async function useCamera(position) {
77
77
  var response = await faceSdk.startFaceCapture()
78
78
  if (response.image == null) return
79
79
  var image = response.image
80
- setImage(image.image, image.imageType, position)
80
+ setImage("data:image/png;base64," + image.image, image.imageType, position)
81
81
  }
82
82
 
83
83
  function useGallery(position) {
@@ -100,15 +100,15 @@ function pickImage(position) {
100
100
 
101
101
  async function loadAssetIfExists(path) {
102
102
  path = cordova.file.applicationDirectory + "www/" + path
103
- return new Promise((resolve, _) => {
104
- window.resolveLocalFileSystemURL(path, (fileEntry) => {
105
- fileEntry.file((file) => {
106
- var reader = new FileReader()
107
- reader.onloadend = function(_) { resolve(this.result) }
108
- reader.readAsDataURL(file)
109
- })
110
- }, (_) => resolve(null))
111
- })
103
+ return new Promise((resolve, _) => {
104
+ window.resolveLocalFileSystemURL(path, (fileEntry) => {
105
+ fileEntry.file((file) => {
106
+ var reader = new FileReader()
107
+ reader.onloadend = function (_) { resolve(this.result) }
108
+ reader.readAsDataURL(file)
109
+ })
110
+ }, (_) => resolve(null))
111
+ })
112
112
  }
113
113
 
114
114
  async function onDeviceReady() {
@@ -25,8 +25,8 @@
25
25
  <application android:usesCleartextTraffic="true" />
26
26
  </edit-config>
27
27
 
28
- <preference name="android-minSdkVersion" value="21" />
29
- <preference name="android-targetSdkVersion" value="33" />
28
+ <preference name="android-minSdkVersion" value="23" />
29
+ <preference name="android-targetSdkVersion" value="35" />
30
30
  <preference name="GradlePluginKotlinEnabled" value="true" />
31
31
 
32
32
  <resource-file src="resources/android/xml/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />
@@ -16,15 +16,15 @@
16
16
  },
17
17
  "private": true,
18
18
  "dependencies": {
19
- "@regulaforensics/face-sdk": "6.5.33-beta",
19
+ "@regulaforensics/face-sdk": "6.5.35-beta",
20
20
  "@regulaforensics/face-core-basic": "6.5.46-beta",
21
- "cordova-plugin-camera": "7.0.0",
22
- "@awesome-cordova-plugins/camera": "6.6.0",
23
- "@awesome-cordova-plugins/core": "6.6.0",
24
- "@awesome-cordova-plugins/dialogs": "6.6.0",
25
- "@awesome-cordova-plugins/splash-screen": "6.6.0",
26
- "@awesome-cordova-plugins/status-bar": "6.6.0",
27
- "@awesome-cordova-plugins/file": "6.6.0",
21
+ "cordova-plugin-camera": "8.0.0",
22
+ "@awesome-cordova-plugins/camera": "6.14.0",
23
+ "@awesome-cordova-plugins/core": "6.14.0",
24
+ "@awesome-cordova-plugins/dialogs": "6.14.0",
25
+ "@awesome-cordova-plugins/splash-screen": "6.14.0",
26
+ "@awesome-cordova-plugins/status-bar": "6.14.0",
27
+ "@awesome-cordova-plugins/file": "6.14.0",
28
28
  "@angular/common": "~13.3.2",
29
29
  "@angular/core": "~13.3.2",
30
30
  "@angular/forms": "~13.3.2",
@@ -33,16 +33,15 @@
33
33
  "@angular/router": "~13.3.2",
34
34
  "@ionic/angular": "^6.0.15",
35
35
  "@ionic/cordova-builders": "^6.1.0",
36
- "cordova-android": "12.0.1",
37
- "cordova-ios": "6.3.0",
36
+ "cordova-android": "13.0.0",
37
+ "cordova-ios": "7.1.1",
38
38
  "cordova-plugin-add-swift-support": "^2.0.2",
39
39
  "cordova-plugin-dialogs": "^2.0.2",
40
40
  "core-js": "^3.6.5",
41
41
  "rxjs": "~6.6.3",
42
42
  "tslib": "^2.0.1",
43
43
  "zone.js": "~0.11.1",
44
- "jetifier": "^2.0.0",
45
- "cordova-plugin-file": "8.0.1"
44
+ "cordova-plugin-file": "8.1.3"
46
45
  },
47
46
  "devDependencies": {
48
47
  "@angular-devkit/architect": "~0.1001.4",
@@ -58,7 +57,7 @@
58
57
  "@types/jasminewd2": "~2.0.8",
59
58
  "@types/node": "~14.11.5",
60
59
  "codelyzer": "^6.0.1",
61
- "cordova-plugin-device": "^2.0.3",
60
+ "cordova-plugin-device": "^3.0.0",
62
61
  "cordova-plugin-ionic-keyboard": "^2.2.0",
63
62
  "cordova-plugin-ionic-webview": "^5.0.0",
64
63
  "cordova-plugin-splashscreen": "^6.0.0",
@@ -12,7 +12,7 @@
12
12
  "test": "jest"
13
13
  },
14
14
  "dependencies": {
15
- "@regulaforensics/face-sdk": "6.5.33-beta",
15
+ "@regulaforensics/face-sdk": "6.5.35-beta",
16
16
  "@regulaforensics/face-core-basic": "6.5.46-beta",
17
17
  "react": "18.3.1",
18
18
  "react-native": "0.75.4",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/face-sdk",
3
- "version": "6.5.33-beta",
3
+ "version": "6.5.35-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.5.33-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/face-sdk" version="6.5.35-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>