@regulaforensics/document-reader 9.9.1165-beta → 9.9.1168-rc

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.
@@ -5,12 +5,12 @@
5
5
  "setup": "scripts/setup.sh",
6
6
  "ios": "scripts/ios.sh",
7
7
  "android": "scripts/android.sh",
8
- "start": "expo start --port 8081"
8
+ "start": "expo start --port \"$npm_package_config_metroPort\""
9
9
  },
10
10
  "dependencies": {
11
- "@regulaforensics/document-reader": "9.9.1165-beta",
12
- "@regulaforensics/document-reader-core-fullauthrfid": "9.9.3183-beta",
13
- "@regulaforensics/document-reader-btdevice": "9.9.112-beta",
11
+ "@regulaforensics/document-reader": "9.9.1168-rc",
12
+ "@regulaforensics/document-reader-core-fullauthrfid": "9.8.2974",
13
+ "@regulaforensics/document-reader-btdevice": "9.8.68",
14
14
  "react-native-fs": "^2.20.0",
15
15
  "react-native-image-picker": "^8.2.1",
16
16
  "react-native-webview": "^14.0.1",
@@ -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:8081 tcp:8081 >/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 8081.
8
- if [[ "$(curl --silent --max-time 2 http://localhost:8081/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 8081
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 for this product on port 8081.
7
- if [[ "$(curl --silent --max-time 2 http://localhost:8081/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 8081
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.1165-beta",
3
+ "version": "9.9.1168-rc",
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.1165-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/document-reader" version="9.9.1168-rc" 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>
@@ -29,7 +29,7 @@
29
29
  <source url="https://github.com/regulaforensics/podspecs.git" />
30
30
  </config>
31
31
  <pods>
32
- <pod name="DocumentReader" spec="9.8.6944" nospm="true" />
32
+ <pod name="DocumentReaderStage" spec="9.9.7059" nospm="true" />
33
33
  </pods>
34
34
  </podspec>
35
35
  </platform>
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = 'react-native-document-reader'
3
- s.version = '9.9.1165-beta'
3
+ s.version = '9.9.1168-rc'
4
4
  s.summary = 'Regula React Native plugin.'
5
5
  s.license = 'commercial'
6
6
  s.authors = { 'RegulaForensics' => 'support@regulaforensics.com' }
@@ -9,6 +9,6 @@ Pod::Spec.new do |s|
9
9
  s.ios.deployment_target = '15.0'
10
10
  s.source_files = 'ios/*.{h,m}'
11
11
  s.exclude_files = [ 'ios/CVDDocumentReader.h', 'ios/CVDDocumentReader.m' ]
12
- s.dependency 'DocumentReader', '9.8.6944'
12
+ s.dependency 'DocumentReaderStage', '9.9.7059'
13
13
  s.dependency 'React'
14
14
  end
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "..": {
15
15
  "name": "@regulaforensics/document-reader",
16
- "version": "9.9.1165-beta",
16
+ "version": "9.9.1168-rc",
17
17
  "dev": true,
18
18
  "license": "commercial",
19
19
  "dependencies": {