@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.
@@ -6,7 +6,7 @@
6
6
  "android": "scripts/android.sh"
7
7
  },
8
8
  "dependencies": {
9
- "@regulaforensics/idv": "3.10.230-beta",
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.230-beta",
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 8083"
8
+ "start": "expo start --port \"$npm_package_config_metroPort\""
9
9
  },
10
10
  "dependencies": {
11
- "@regulaforensics/idv": "3.10.230-beta",
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:8083 tcp:8083 >/dev/null || :
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 for this product on port 8083.
8
- if [[ "$(curl --silent --max-time 2 http://localhost:8083/status)" != "packager-status:running" ]]; then
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 8083
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 for this product on port 8083.
7
- if [[ "$(curl --silent --max-time 2 http://localhost:8083/status)" != "packager-status:running" ]]; then
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 8083
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.230-beta",
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.230-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
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>
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = 'react-native-idv'
3
- s.version = '3.10.230-beta'
3
+ s.version = '3.10.231-beta'
4
4
  s.summary = 'Regula React Native plugin.'
5
5
  s.license = 'commercial'
6
6
  s.authors = { 'RegulaForensics' => 'support@regulaforensics.com' }
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "..": {
15
15
  "name": "@regulaforensics/idv",
16
- "version": "3.10.230-beta",
16
+ "version": "3.10.231-beta",
17
17
  "dev": true,
18
18
  "license": "commercial",
19
19
  "dependencies": {