@regulaforensics/face-sdk 6.3.16-beta → 6.3.21-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/examples/capacitor/package.json +2 -2
- package/examples/cordova/package.json +2 -2
- package/examples/ionic/package.json +2 -2
- package/examples/react-native/README.md +2 -2
- package/examples/react-native/package.json +3 -3
- package/package.json +1 -1
- package/plugin.xml +1 -1
- package/www/capacitor/index.js +3 -1
- package/www/cordova.js +3 -1
- package/www/react-native/index.js +3 -1
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"lint": "eslint"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@regulaforensics/face-sdk": "6.3.
|
|
19
|
-
"@regulaforensics/cordova-plugin-face-core-basic": "6.3.
|
|
18
|
+
"@regulaforensics/face-sdk": "6.3.21-beta",
|
|
19
|
+
"@regulaforensics/cordova-plugin-face-core-basic": "6.3.146",
|
|
20
20
|
"@awesome-cordova-plugins/camera": "6.6.0",
|
|
21
21
|
"@awesome-cordova-plugins/file": "6.6.0",
|
|
22
22
|
"@awesome-cordova-plugins/dialogs": "6.6.0",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"author": "Regula Forensics Inc.",
|
|
15
15
|
"license": "commercial",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@regulaforensics/face-sdk": "6.3.
|
|
18
|
-
"@regulaforensics/cordova-plugin-face-core-basic": "6.3.
|
|
17
|
+
"@regulaforensics/face-sdk": "6.3.21-beta",
|
|
18
|
+
"@regulaforensics/cordova-plugin-face-core-basic": "6.3.146",
|
|
19
19
|
"cordova-android": "12.0.1",
|
|
20
20
|
"cordova-ios": "7.0.1",
|
|
21
21
|
"cordova-plugin-add-swift-support": "2.0.2",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
},
|
|
17
17
|
"private": true,
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@regulaforensics/face-sdk": "6.3.
|
|
20
|
-
"@regulaforensics/cordova-plugin-face-core-basic": "6.3.
|
|
19
|
+
"@regulaforensics/face-sdk": "6.3.21-beta",
|
|
20
|
+
"@regulaforensics/cordova-plugin-face-core-basic": "6.3.146",
|
|
21
21
|
"cordova-plugin-camera": "7.0.0",
|
|
22
22
|
"@awesome-cordova-plugins/camera": "6.6.0",
|
|
23
23
|
"@awesome-cordova-plugins/core": "6.6.0",
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
2. Run `npm run setup` within this directory.
|
|
7
7
|
|
|
8
8
|
3. Run the app:
|
|
9
|
-
* Android: use command `
|
|
10
|
-
* IOS: use command `
|
|
9
|
+
* Android: use command `npm run android`.
|
|
10
|
+
* IOS: use command `npm run ios`.
|
|
11
11
|
|
|
12
12
|
**Note**: this is just one way of running the app. You can also run it directly from Xcode and Android Studio, but in this case make sure that Metro Bundler is running(`npm start`).
|
|
13
13
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
2
|
+
"name": "facesdk",
|
|
3
3
|
"version": "1.0.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"scripts": {
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"test": "jest"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@regulaforensics/face-sdk": "6.3.
|
|
16
|
-
"@regulaforensics/react-native-face-core-basic": "6.3.
|
|
15
|
+
"@regulaforensics/face-sdk": "6.3.21-beta",
|
|
16
|
+
"@regulaforensics/react-native-face-core-basic": "6.3.146",
|
|
17
17
|
"react": "18.3.1",
|
|
18
18
|
"react-native": "0.75.3",
|
|
19
19
|
"react-native-fs": "2.20.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/face-sdk",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.21-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="face-sdk" version="6.3.
|
|
2
|
+
<plugin id="face-sdk" version="6.3.21-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>
|
package/www/capacitor/index.js
CHANGED
|
@@ -143,11 +143,13 @@ export class FaceSDK {
|
|
|
143
143
|
|
|
144
144
|
async initialize(params) {
|
|
145
145
|
var response = await exec("initialize", [params?.config])
|
|
146
|
-
await this._onInit()
|
|
147
146
|
|
|
148
147
|
var jsonObject = JSON.parse(response)
|
|
149
148
|
var success = jsonObject["success"]
|
|
150
149
|
var error = jsonObject["error"]
|
|
150
|
+
|
|
151
|
+
if (success) await this._onInit()
|
|
152
|
+
|
|
151
153
|
return [success, InitException.fromJson(error)]
|
|
152
154
|
}
|
|
153
155
|
|
package/www/cordova.js
CHANGED
|
@@ -2182,11 +2182,13 @@ class FaceSDK {
|
|
|
2182
2182
|
|
|
2183
2183
|
async initialize(params) {
|
|
2184
2184
|
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("initialize", [params?.config])
|
|
2185
|
-
await this._onInit()
|
|
2186
2185
|
|
|
2187
2186
|
var jsonObject = JSON.parse(response)
|
|
2188
2187
|
var success = jsonObject["success"]
|
|
2189
2188
|
var error = jsonObject["error"]
|
|
2189
|
+
|
|
2190
|
+
if (success) await this._onInit()
|
|
2191
|
+
|
|
2190
2192
|
return [success, _init_init_exception__WEBPACK_IMPORTED_MODULE_10__.InitException.fromJson(error)]
|
|
2191
2193
|
}
|
|
2192
2194
|
|
|
@@ -143,11 +143,13 @@ export class FaceSDK {
|
|
|
143
143
|
|
|
144
144
|
async initialize(params) {
|
|
145
145
|
var response = await exec("initialize", [params?.config])
|
|
146
|
-
await this._onInit()
|
|
147
146
|
|
|
148
147
|
var jsonObject = JSON.parse(response)
|
|
149
148
|
var success = jsonObject["success"]
|
|
150
149
|
var error = jsonObject["error"]
|
|
150
|
+
|
|
151
|
+
if (success) await this._onInit()
|
|
152
|
+
|
|
151
153
|
return [success, InitException.fromJson(error)]
|
|
152
154
|
}
|
|
153
155
|
|