@regulaforensics/idv 3.10.230-beta → 3.10.231-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 +1 -1
- 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 +3 -0
- package/package.json +1 -1
- package/plugin.xml +1 -1
- package/react-native-idv.podspec +1 -1
- package/test/package-lock.json +1 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/idv": "3.10.
|
|
9
|
+
"@regulaforensics/idv": "3.10.231-beta",
|
|
10
10
|
"@regulaforensics/idv-module-document-reader": "3.10.294-beta",
|
|
11
11
|
"@regulaforensics/idv-module-face": "3.10.295-beta",
|
|
12
12
|
"@regulaforensics/document-reader-core-fullauthrfid": "9.9.3183-beta",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"postinstall": "patch-package"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@regulaforensics/idv": "3.10.
|
|
10
|
+
"@regulaforensics/idv": "3.10.231-beta",
|
|
11
11
|
"@regulaforensics/idv-module-document-reader": "3.10.294-beta",
|
|
12
12
|
"@regulaforensics/idv-module-face": "3.10.295-beta",
|
|
13
13
|
"@regulaforensics/document-reader-core-fullauthrfid": "9.9.3183-beta",
|
|
@@ -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/idv": "3.10.
|
|
11
|
+
"@regulaforensics/idv": "3.10.231-beta",
|
|
12
12
|
"@regulaforensics/idv-module-document-reader": "3.10.294-beta",
|
|
13
13
|
"@regulaforensics/idv-module-face": "3.10.295-beta",
|
|
14
14
|
"@regulaforensics/document-reader-core-fullauthrfid": "9.9.3183-beta",
|
|
@@ -29,5 +29,8 @@
|
|
|
29
29
|
"expo-custom-assets": {
|
|
30
30
|
"expo": "$expo"
|
|
31
31
|
}
|
|
32
|
+
},
|
|
33
|
+
"config": {
|
|
34
|
+
"metroPort": 8083
|
|
32
35
|
}
|
|
33
36
|
}
|
|
@@ -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/IDV.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,6 +1,9 @@
|
|
|
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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/idv",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.231-beta",
|
|
4
4
|
"description": "This is an npm module for Regula IDV, which unifies access to all Regula products. This plugin makes possible to use it with react-native, cordova and capacitor applications. Supports Android and iOS.",
|
|
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/idv" version="3.10.
|
|
2
|
+
<plugin id="@regulaforensics/idv" version="3.10.231-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
3
3
|
<name>IDV</name>
|
|
4
4
|
<description>Cordova plugin for Regula IDV</description>
|
|
5
5
|
<license>commercial</license>
|
package/react-native-idv.podspec
CHANGED