@regulaforensics/document-reader 9.7.916-rc → 9.7.918-nightly
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/RNDocumentReader.podspec +2 -2
- package/android/build.gradle +2 -2
- package/android/cordova.gradle +2 -2
- package/examples/capacitor/README.md +1 -1
- package/examples/capacitor/package.json +1 -1
- package/examples/capacitor/scripts/android.sh +3 -1
- package/examples/capacitor/scripts/ios.sh +3 -1
- package/examples/capacitor/scripts/setup.sh +2 -0
- package/examples/ionic/README.md +1 -1
- package/examples/ionic/config.xml +0 -2
- package/examples/ionic/images/icon.png +0 -0
- package/examples/ionic/index.tsx +1 -1
- package/examples/ionic/package-lock.json +2686 -1850
- package/examples/ionic/package.json +23 -25
- package/examples/ionic/patches/cordova-plugin-ionic-webview+5.0.1.patch +23 -0
- package/examples/ionic/scripts/android.sh +4 -1
- package/examples/ionic/scripts/ios.sh +5 -2
- package/examples/ionic/scripts/setup.sh +2 -0
- package/examples/ionic/tsconfig.json +1 -1
- package/examples/react_native/README.md +1 -1
- package/examples/react_native/package.json +1 -1
- package/examples/react_native/scripts/android.sh +5 -5
- package/examples/react_native/scripts/ios.sh +5 -5
- package/examples/react_native/scripts/setup.sh +2 -0
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/package-lock.json +2 -5
|
@@ -3,43 +3,41 @@
|
|
|
3
3
|
"scripts": {
|
|
4
4
|
"setup": "scripts/setup.sh",
|
|
5
5
|
"ios": "scripts/ios.sh",
|
|
6
|
-
"android": "scripts/android.sh"
|
|
6
|
+
"android": "scripts/android.sh",
|
|
7
|
+
"postinstall": "patch-package"
|
|
7
8
|
},
|
|
8
9
|
"dependencies": {
|
|
9
|
-
"@angular-devkit/build-angular": "^
|
|
10
|
-
"@angular/cli": "^
|
|
11
|
-
"@angular/common": "^
|
|
12
|
-
"@angular/compiler-cli": "^
|
|
13
|
-
"@angular/core": "^
|
|
14
|
-
"@angular/forms": "^
|
|
15
|
-
"@angular/platform-browser-dynamic": "^
|
|
16
|
-
"@angular/router": "^
|
|
17
|
-
"@ionic/angular": "^8.8.
|
|
10
|
+
"@angular-devkit/build-angular": "^22.0.5",
|
|
11
|
+
"@angular/cli": "^22.0.5",
|
|
12
|
+
"@angular/common": "^22.0.5",
|
|
13
|
+
"@angular/compiler-cli": "^22.0.5",
|
|
14
|
+
"@angular/core": "^22.0.5",
|
|
15
|
+
"@angular/forms": "^22.0.5",
|
|
16
|
+
"@angular/platform-browser-dynamic": "^22.0.5",
|
|
17
|
+
"@angular/router": "^22.0.5",
|
|
18
|
+
"@ionic/angular": "^8.8.13",
|
|
18
19
|
"@ionic/cordova-builders": "^12.3.0",
|
|
19
|
-
"@awesome-cordova-plugins/camera": "^
|
|
20
|
-
"@awesome-cordova-plugins/file": "^
|
|
21
|
-
"@regulaforensics/document-reader": "9.7.
|
|
20
|
+
"@awesome-cordova-plugins/camera": "^9.2.0",
|
|
21
|
+
"@awesome-cordova-plugins/file": "^9.2.0",
|
|
22
|
+
"@regulaforensics/document-reader": "9.7.918-nightly",
|
|
22
23
|
"@regulaforensics/document-reader-core-fullauthrfid": "9.6.2444",
|
|
23
24
|
"@regulaforensics/document-reader-btdevice": "9.6.55",
|
|
24
|
-
"cordova-android": "^
|
|
25
|
-
"cordova-ios": "^
|
|
25
|
+
"cordova-android": "^15.0.0",
|
|
26
|
+
"cordova-ios": "^8.1.1",
|
|
26
27
|
"cordova-plugin-camera": "^8.0.0",
|
|
27
28
|
"cordova-plugin-file": "^8.1.3",
|
|
28
|
-
"cordova-plugin-ionic-webview": "^5.0.1"
|
|
29
|
+
"cordova-plugin-ionic-webview": "^5.0.1",
|
|
30
|
+
"patch-package": "^8.0.1"
|
|
29
31
|
},
|
|
30
32
|
"overrides": {
|
|
31
|
-
"ajv": "^8.18.0",
|
|
32
|
-
"serialize-javascript": "^7.0.4",
|
|
33
|
-
"undici": "^7.24.0",
|
|
34
|
-
"picomatch": "^4.0.4",
|
|
35
|
-
"postcss": "^8.5.10",
|
|
36
|
-
"uuid": "^14.0.0",
|
|
37
|
-
"vite": "^7.3.2",
|
|
38
|
-
"webpack-dev-server": "^5.2.4",
|
|
39
33
|
"@babel/core": "^7.29.0",
|
|
34
|
+
"ajv": "^8.18.0",
|
|
40
35
|
"esbuild": "^0.28.1",
|
|
41
36
|
"http-proxy-middleware": "^3.0.7",
|
|
42
|
-
"
|
|
37
|
+
"picomatch": "^4.0.4",
|
|
38
|
+
"serialize-javascript": "^7.0.4",
|
|
39
|
+
"uuid": "^14.0.0",
|
|
40
|
+
"webpack-dev-server": "^5.2.4"
|
|
43
41
|
},
|
|
44
42
|
"cordova": {
|
|
45
43
|
"plugins": {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
diff --git a/node_modules/cordova-plugin-ionic-webview/src/ios/CDVWKWebViewEngine.m b/node_modules/cordova-plugin-ionic-webview/src/ios/CDVWKWebViewEngine.m
|
|
2
|
+
index 2acb99b..900a04c 100644
|
|
3
|
+
--- a/node_modules/cordova-plugin-ionic-webview/src/ios/CDVWKWebViewEngine.m
|
|
4
|
+
+++ b/node_modules/cordova-plugin-ionic-webview/src/ios/CDVWKWebViewEngine.m
|
|
5
|
+
@@ -731,6 +731,18 @@ - (BOOL)defaultResourcePolicyForURL:(NSURL*)url
|
|
6
|
+
return YES;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
+ // Allow internal local-server navigation even when no plugin overrides the request.
|
|
10
|
+
+ NSURL *localServerUrl = [NSURL URLWithString:self.CDV_LOCAL_SERVER];
|
|
11
|
+
+ if (localServerUrl != nil && url != nil) {
|
|
12
|
+
+ NSString *localScheme = localServerUrl.scheme.lowercaseString;
|
|
13
|
+
+ NSString *localHost = localServerUrl.host.lowercaseString;
|
|
14
|
+
+ NSString *urlScheme = url.scheme.lowercaseString;
|
|
15
|
+
+ NSString *urlHost = url.host.lowercaseString;
|
|
16
|
+
+ if ([localScheme isEqualToString:urlScheme] && [localHost isEqualToString:urlHost]) {
|
|
17
|
+
+ return YES;
|
|
18
|
+
+ }
|
|
19
|
+
+ }
|
|
20
|
+
+
|
|
21
|
+
return NO;
|
|
22
|
+
}
|
|
23
|
+
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
+
set -e
|
|
2
3
|
|
|
3
|
-
if [[
|
|
4
|
+
if [[ " $* " == *" --open "* ]] || [[ " $* " == *" -o "* ]]; then
|
|
4
5
|
ionic cordova build android
|
|
5
6
|
open -a 'Android Studio' platforms/android
|
|
6
7
|
else
|
|
7
8
|
ionic cordova run android
|
|
8
9
|
fi
|
|
10
|
+
|
|
11
|
+
exit 0
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
+
set -e
|
|
2
3
|
|
|
3
|
-
if [[
|
|
4
|
+
if [[ " $* " == *" --open "* ]] || [[ " $* " == *" -o "* ]]; then
|
|
4
5
|
ionic cordova prepare ios
|
|
5
|
-
open platforms/ios/
|
|
6
|
+
open platforms/ios/App.xcworkspace
|
|
6
7
|
else
|
|
7
8
|
ionic cordova run ios
|
|
8
9
|
fi
|
|
10
|
+
|
|
11
|
+
exit 0
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* IOS: `npm run ios`.
|
|
10
10
|
* Android: `npm run android`.
|
|
11
11
|
|
|
12
|
-
**Note**: this is just one way of running the app. You can also pass
|
|
12
|
+
**Note**: this is just one way of running the app. You can also pass `-- -o` or `-- --open` argument to the command, and this will open Xcode/Android Studio, then run the app directly from the IDE. Overall, this is a more consistent way, so if you're having troubles running the app from terminal, try running it from the IDE. Just don't forget to make sure that Metro Bundler is running(`npm start`).
|
|
13
13
|
|
|
14
14
|
## Additional examples
|
|
15
15
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"start": "expo start"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@regulaforensics/document-reader": "9.7.
|
|
11
|
+
"@regulaforensics/document-reader": "9.7.918-nightly",
|
|
12
12
|
"@regulaforensics/document-reader-core-fullauthrfid": "9.6.2444",
|
|
13
13
|
"@regulaforensics/document-reader-btdevice": "9.6.55",
|
|
14
14
|
"react-native": "^0.81.4",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
+
set -e
|
|
2
3
|
|
|
3
4
|
adb reverse tcp:8081 tcp:8081 >/dev/null || :
|
|
4
|
-
if [[
|
|
5
|
+
if [[ " $* " == *" --open "* ]] || [[ " $* " == *" -o "* ]]; then
|
|
5
6
|
open -a 'Android Studio' android
|
|
6
7
|
# check if metro is already running
|
|
7
|
-
|
|
8
|
-
watchman shutdown-server # fix potential errors
|
|
9
|
-
npm start
|
|
10
|
-
fi
|
|
8
|
+
[[ -z $(pgrep -f 'expo start') ]] && npm start
|
|
11
9
|
else
|
|
12
10
|
expo run:android --device
|
|
13
11
|
fi
|
|
12
|
+
|
|
13
|
+
exit 0
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
+
set -e
|
|
2
3
|
|
|
3
|
-
if [[
|
|
4
|
+
if [[ " $* " == *" --open "* ]] || [[ " $* " == *" -o "* ]]; then
|
|
4
5
|
open ios/Document.xcworkspace
|
|
5
6
|
# check if metro is already running
|
|
6
|
-
|
|
7
|
-
watchman shutdown-server # fix potential errors
|
|
8
|
-
npm start
|
|
9
|
-
fi
|
|
7
|
+
[[ -z $(pgrep -f 'expo start') ]] && npm start
|
|
10
8
|
else
|
|
11
9
|
npx expo run:ios --device
|
|
12
10
|
fi
|
|
11
|
+
|
|
12
|
+
exit 0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/document-reader",
|
|
3
|
-
"version": "9.7.
|
|
3
|
+
"version": "9.7.918-nightly",
|
|
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.7.
|
|
2
|
+
<plugin id="@regulaforensics/document-reader" version="9.7.918-nightly" 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="
|
|
32
|
+
<pod name="DocumentReaderNightly" spec="9.7.6673" />
|
|
33
33
|
</pods>
|
|
34
34
|
</podspec>
|
|
35
35
|
</platform>
|
package/test/package-lock.json
CHANGED
|
@@ -13,12 +13,9 @@
|
|
|
13
13
|
},
|
|
14
14
|
"..": {
|
|
15
15
|
"name": "@regulaforensics/document-reader",
|
|
16
|
-
"version": "
|
|
16
|
+
"version": "1.0.0",
|
|
17
17
|
"dev": true,
|
|
18
|
-
"license": "commercial"
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"@expo/config-plugins": "^10.0.0"
|
|
21
|
-
}
|
|
18
|
+
"license": "commercial"
|
|
22
19
|
},
|
|
23
20
|
"node_modules/@esbuild/aix-ppc64": {
|
|
24
21
|
"version": "0.25.9",
|