@regulaforensics/face-sdk 8.4.1402-beta → 8.4.1403-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-lock.json +2516 -0
- package/examples/capacitor/package.json +1 -1
- package/examples/ionic/package-lock.json +14182 -0
- package/examples/ionic/package.json +1 -1
- package/examples/react_native/package.json +5 -2
- package/examples/react_native/scripts/android.sh +6 -4
- package/examples/react_native/scripts/ios.sh +5 -3
- package/examples/react_native/scripts/setup.sh +4 -1
- package/package.json +1 -1
- package/plugin.xml +1 -1
- package/react-native-face-sdk.podspec +1 -1
- package/test/package-lock.json +1 -1
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@awesome-cordova-plugins/camera": "^9.6.0",
|
|
21
21
|
"@awesome-cordova-plugins/dialogs": "^9.6.0",
|
|
22
22
|
"@awesome-cordova-plugins/file": "^9.6.0",
|
|
23
|
-
"@regulaforensics/face-sdk": "8.4.
|
|
23
|
+
"@regulaforensics/face-sdk": "8.4.1403-beta",
|
|
24
24
|
"@regulaforensics/face-core-basic": "8.4.854-beta",
|
|
25
25
|
"cordova-android": "^15.1.0",
|
|
26
26
|
"cordova-ios": "^8.1.1",
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"setup": "scripts/setup.sh",
|
|
6
6
|
"ios": "scripts/ios.sh",
|
|
7
7
|
"android": "scripts/android.sh",
|
|
8
|
-
"start": "expo start --port
|
|
8
|
+
"start": "expo start --port \"$npm_package_config_metroPort\""
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@regulaforensics/face-sdk": "8.4.
|
|
11
|
+
"@regulaforensics/face-sdk": "8.4.1403-beta",
|
|
12
12
|
"@regulaforensics/face-core-basic": "8.4.854-beta",
|
|
13
13
|
"react-native": "0.88.0-rc.0",
|
|
14
14
|
"react-native-fs": "^2.20.0",
|
|
@@ -28,5 +28,8 @@
|
|
|
28
28
|
"expo-custom-assets": {
|
|
29
29
|
"expo": "$expo"
|
|
30
30
|
}
|
|
31
|
+
},
|
|
32
|
+
"config": {
|
|
33
|
+
"metroPort": 8082
|
|
31
34
|
}
|
|
32
35
|
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
set -e
|
|
3
3
|
|
|
4
|
-
adb reverse tcp
|
|
4
|
+
adb reverse tcp:${npm_package_config_metroPort} tcp:${npm_package_config_metroPort} >/dev/null || :
|
|
5
5
|
if [[ " $* " == *" --open "* ]] || [[ " $* " == *" -o "* ]]; then
|
|
6
6
|
open -a 'Android Studio' android
|
|
7
|
-
# Check Metro
|
|
8
|
-
if [[ "$(curl --silent --max-time 2 http://localhost
|
|
7
|
+
# Check if Metro is running at app's port.
|
|
8
|
+
if [[ "$(curl --silent --max-time 2 http://localhost:${npm_package_config_metroPort}/status)" != "packager-status:running" ]]; then
|
|
9
9
|
npm start
|
|
10
|
+
else
|
|
11
|
+
echo "Metro is already running on port ${npm_package_config_metroPort}."
|
|
10
12
|
fi
|
|
11
13
|
else
|
|
12
|
-
expo run:android --device --port
|
|
14
|
+
expo run:android --device --port ${npm_package_config_metroPort}
|
|
13
15
|
fi
|
|
@@ -3,10 +3,12 @@ set -e
|
|
|
3
3
|
|
|
4
4
|
if [[ " $* " == *" --open "* ]] || [[ " $* " == *" -o "* ]]; then
|
|
5
5
|
open ios/Face.xcworkspace
|
|
6
|
-
# Check Metro
|
|
7
|
-
if [[ "$(curl --silent --max-time 2 http://localhost
|
|
6
|
+
# Check if Metro is running at app's port.
|
|
7
|
+
if [[ "$(curl --silent --max-time 2 http://localhost:${npm_package_config_metroPort}/status)" != "packager-status:running" ]]; then
|
|
8
8
|
npm start
|
|
9
|
+
else
|
|
10
|
+
echo "Metro is already running on port ${npm_package_config_metroPort}."
|
|
9
11
|
fi
|
|
10
12
|
else
|
|
11
|
-
npx expo run:ios --device --port
|
|
13
|
+
npx expo run:ios --device --port ${npm_package_config_metroPort}
|
|
12
14
|
fi
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
set -e
|
|
3
3
|
|
|
4
|
+
# Kill Metro instance at app's port.
|
|
5
|
+
lsof -tiTCP:${npm_package_config_metroPort} -sTCP:LISTEN | xargs kill 2>/dev/null || true
|
|
6
|
+
|
|
4
7
|
npm install
|
|
5
8
|
rm -rf node_modules/expo/node_modules/expo-modules-core/android/.cxx # Temp fix for expo@58.0.0-preview.3
|
|
6
9
|
npx expo prebuild --no-install
|
|
7
10
|
(cd ios && (pod install || pod update))
|
|
8
11
|
|
|
9
|
-
#
|
|
12
|
+
# Add aaptOptions for offline match
|
|
10
13
|
if ! grep -q faceSdkResource android/app/build.gradle && grep -q face-core-match package.json; then
|
|
11
14
|
sed -i '' "s/androidResources/aaptOptions {\n\t\tnoCompress 'Regula\/faceSdkResource.dat'\n\t}\n\tandroidResources/" android/app/build.gradle
|
|
12
15
|
fi
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/face-sdk",
|
|
3
|
-
"version": "8.4.
|
|
3
|
+
"version": "8.4.1403-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="8.4.
|
|
2
|
+
<plugin id="@regulaforensics/face-sdk" version="8.4.1403-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>
|