@regulaforensics/document-reader 9.9.1165-beta → 9.9.1166-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 +2513 -0
- package/examples/capacitor/package.json +1 -1
- package/examples/ionic/package-lock.json +14164 -0
- package/examples/ionic/package.json +1 -1
- package/examples/react_native/package-lock.json +7286 -0
- package/examples/react_native/package.json +6 -3
- 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-document-reader.podspec +1 -1
- package/test/package-lock.json +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/document-reader": "9.9.
|
|
11
|
+
"@regulaforensics/document-reader": "9.9.1166-beta",
|
|
12
12
|
"@regulaforensics/document-reader-core-fullauthrfid": "9.9.3183-beta",
|
|
13
13
|
"@regulaforensics/document-reader-btdevice": "9.9.112-beta",
|
|
14
14
|
"react-native-fs": "^2.20.0",
|
|
@@ -29,5 +29,8 @@
|
|
|
29
29
|
"expo-custom-assets": {
|
|
30
30
|
"expo": "$expo"
|
|
31
31
|
}
|
|
32
|
+
},
|
|
33
|
+
"config": {
|
|
34
|
+
"metroPort": 8081
|
|
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/Document.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 of the bug in expo@58.0.0-preview.3
|
|
6
9
|
# Run CocoaPods separately because Expo prebuild can return success even when pod installation fails.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/document-reader",
|
|
3
|
-
"version": "9.9.
|
|
3
|
+
"version": "9.9.1166-beta",
|
|
4
4
|
"description": "This is an npm module for Regula Document Reader SDK. It allows you to read various kinds of identification documents 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/document-reader" version="9.9.
|
|
2
|
+
<plugin id="@regulaforensics/document-reader" version="9.9.1166-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
3
3
|
<name>DocumentReader</name>
|
|
4
4
|
<description>Cordova plugin for Regula Document Reader SDK</description>
|
|
5
5
|
<license>commercial</license>
|