@regulaforensics/face-sdk 6.3.15-beta → 6.3.20-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/README.md CHANGED
@@ -20,4 +20,4 @@ Each demo app has its own readme file with instructions on building and installa
20
20
  You can find documentation on API [here](https://docs.regulaforensics.com/develop/face-sdk/mobile).
21
21
 
22
22
  ## Additional information
23
- If you have any technical questions, feel free to [contact](mailto:support@regulaforensics.com) us or create issues [here](https://github.com/regulaforensics/cordova-plugin-face-api/issues).
23
+ If you have any technical questions, feel free to [contact](mailto:support@regulaforensics.com) us or create issues [here](https://github.com/regulaforensics/npm-face-sdk/issues).
package/RNFaceSDK.podspec CHANGED
@@ -16,6 +16,6 @@ Pod::Spec.new do |s|
16
16
  s.ios.deployment_target = '11.0'
17
17
  s.source_files = 'ios/**/*.{h,m}'
18
18
  s.exclude_files = [ 'ios/CVDFaceSDK.h', 'ios/CVDFaceSDK.m' ]
19
- s.dependency 'FaceSDK', '6.2.2024'
19
+ s.dependency 'FaceSDK', '6.3.2151'
20
20
  s.dependency 'React'
21
21
  end
@@ -41,7 +41,7 @@ dependencies {
41
41
  //noinspection GradleDynamicVersion
42
42
  implementation 'com.facebook.react:react-native:+'
43
43
  //noinspection GradleDependency
44
- implementation('com.regula.face:api:6.2.3281'){
44
+ implementation('com.regula.face:api:6.3.3356'){
45
45
  transitive = true
46
46
  }
47
47
  }
@@ -12,7 +12,7 @@ repositories {
12
12
 
13
13
  dependencies {
14
14
  //noinspection GradleDependency
15
- implementation('com.regula.face:api:6.2.3281'){
15
+ implementation('com.regula.face:api:6.3.3356'){
16
16
  transitive = true
17
17
  }
18
18
  }
@@ -15,8 +15,8 @@
15
15
  "lint": "eslint"
16
16
  },
17
17
  "dependencies": {
18
- "@regulaforensics/face-sdk": "6.3.15-beta",
19
- "@regulaforensics/cordova-plugin-face-core-basic": "6.2.1",
18
+ "@regulaforensics/face-sdk": "6.3.20-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.15-beta",
18
- "@regulaforensics/cordova-plugin-face-core-basic": "6.2.1",
17
+ "@regulaforensics/face-sdk": "6.3.20-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.15-beta",
20
- "@regulaforensics/cordova-plugin-face-core-basic": "6.2.1",
19
+ "@regulaforensics/face-sdk": "6.3.20-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",
@@ -0,0 +1,31 @@
1
+ # Regula Face SDK React Native demo application
2
+
3
+ ## How to build demo application
4
+ 1. Download or the clone current repository using the command `git clone https://github.com/regulaforensics/npm-face-sdk.git`.
5
+
6
+ 2. Run `npm run setup` within this directory.
7
+
8
+ 3. Run the app:
9
+ * Android: use command `npm run android`.
10
+ * IOS: use command `npm run ios`.
11
+
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
+
14
+
15
+ ## How to use offine match
16
+ 1. Place a license that supports offline match at `android/app/src/main/assets/regula.license` and `ios/license/regula.license`.
17
+
18
+ 2. Change android and iOS bundle id if required by your license with the following commands(replace `ANDROID_ID` and `IOS_ID` with actual ids):
19
+ ```bash
20
+ git init
21
+ npx react-native-rename@latest "FaceSDK" --androidBundleID "ANDROID_ID" --iosBundleID "IOS_ID" --skipGitStatusCheck
22
+ ```
23
+
24
+ 3. Change core with the following commands:
25
+ ```bash
26
+ npm uninstall @regulaforensics/react-native-face-core-basic
27
+ npm install @regulaforensics/react-native-face-core-match
28
+ npm run setup
29
+ ```
30
+
31
+ 4. Turn off the internet and run the app.
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "FaceSDK",
3
+ "displayName": "FaceSDK"
4
+ }
5
+
@@ -1,4 +1,5 @@
1
1
  import {AppRegistry} from 'react-native';
2
2
  import App from './App';
3
+ import {name as appName} from './app.json';
3
4
 
4
- AppRegistry.registerComponent("FaceSDK", () => App);
5
+ AppRegistry.registerComponent(appName, () => App);
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "face-sdk",
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.15-beta",
16
- "@regulaforensics/react-native-face-core-basic": "6.2.1",
15
+ "@regulaforensics/face-sdk": "6.3.20-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.15-beta",
3
+ "version": "6.3.20-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.15-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="face-sdk" version="6.3.20-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>
@@ -27,7 +27,7 @@
27
27
  <config>
28
28
  </config>
29
29
  <pods>
30
- <pod name="FaceSDK" spec="6.2.2024" />
30
+ <pod name="FaceSDK" spec="6.3.2151" />
31
31
  </pods>
32
32
  </podspec>
33
33
  </platform>
@@ -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