@regulaforensics/face-sdk 6.3.15-beta → 6.3.16-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 +1 -1
- package/RNFaceSDK.podspec +1 -1
- package/android/build.gradle +1 -1
- package/android/cordova.gradle +1 -1
- 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 +31 -0
- package/examples/react-native/app.json +5 -0
- package/examples/react-native/index.js +2 -1
- package/examples/react-native/package.json +2 -2
- package/package.json +1 -1
- package/plugin.xml +2 -2
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/
|
|
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.
|
|
19
|
+
s.dependency 'FaceSDK', '6.3.2151'
|
|
20
20
|
s.dependency 'React'
|
|
21
21
|
end
|
package/android/build.gradle
CHANGED
|
@@ -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.
|
|
44
|
+
implementation('com.regula.face:api:6.3.3356'){
|
|
45
45
|
transitive = true
|
|
46
46
|
}
|
|
47
47
|
}
|
package/android/cordova.gradle
CHANGED
|
@@ -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.
|
|
18
|
+
"@regulaforensics/face-sdk": "6.3.16-beta",
|
|
19
|
+
"@regulaforensics/cordova-plugin-face-core-basic": "6.3.165",
|
|
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.
|
|
17
|
+
"@regulaforensics/face-sdk": "6.3.16-beta",
|
|
18
|
+
"@regulaforensics/cordova-plugin-face-core-basic": "6.3.165",
|
|
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.
|
|
19
|
+
"@regulaforensics/face-sdk": "6.3.16-beta",
|
|
20
|
+
"@regulaforensics/cordova-plugin-face-core-basic": "6.3.165",
|
|
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 `npx react-native run-android`.
|
|
10
|
+
* IOS: use command `npx react-native 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.
|
|
@@ -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.
|
|
15
|
+
"@regulaforensics/face-sdk": "6.3.16-beta",
|
|
16
|
+
"@regulaforensics/react-native-face-core-basic": "6.3.165",
|
|
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.16-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.16-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.
|
|
30
|
+
<pod name="FaceSDK" spec="6.3.2151" />
|
|
31
31
|
</pods>
|
|
32
32
|
</podspec>
|
|
33
33
|
</platform>
|