@regulaforensics/document-reader 8.4.341-beta → 8.4.375-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/RNDocumentReader.podspec +1 -1
- package/examples/capacitor/index.tsx +5 -5
- package/examples/capacitor/package.json +1 -1
- package/examples/ionic/index.tsx +6 -2
- package/examples/ionic/package.json +1 -1
- package/examples/react_native/index.html +5 -4
- package/examples/react_native/package.json +1 -1
- package/ios/RNDocumentReader.m +2 -2
- package/package.json +1 -1
- package/plugin.xml +1 -1
- package/test/package-lock.json +1 -1
package/RNDocumentReader.podspec
CHANGED
|
@@ -6,11 +6,11 @@ import { File } from '@awesome-cordova-plugins/file'
|
|
|
6
6
|
import { Camera, DestinationType, MediaType, PictureSourceType } from '@awesome-cordova-plugins/camera'
|
|
7
7
|
import { main } from './src/main'
|
|
8
8
|
|
|
9
|
-
document.addEventListener('deviceready', () =>
|
|
10
|
-
.then(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
)
|
|
9
|
+
document.addEventListener('deviceready', async () => {
|
|
10
|
+
document.getElementById("content").innerHTML = await fetch("main.html").then(r => r.text())
|
|
11
|
+
await new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(resolve)))
|
|
12
|
+
document.dispatchEvent(new Event('ready'))
|
|
13
|
+
})
|
|
14
14
|
|
|
15
15
|
export async function loadAsset(path: string): Promise<string> {
|
|
16
16
|
var dir = await File.resolveDirectoryUrl(File.applicationDirectory + "public/assets")
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/document-reader": "8.4.
|
|
9
|
+
"@regulaforensics/document-reader": "8.4.375-beta",
|
|
10
10
|
"@regulaforensics/document-reader-core-fullauthrfid": "8.4.325-beta",
|
|
11
11
|
"@regulaforensics/document-reader-btdevice": "8.4.20-beta",
|
|
12
12
|
"@awesome-cordova-plugins/file": "6.6.0",
|
package/examples/ionic/index.tsx
CHANGED
|
@@ -39,8 +39,12 @@ var cameraInstance: Camera
|
|
|
39
39
|
})
|
|
40
40
|
class Main {
|
|
41
41
|
constructor(platform: Platform, camera: Camera) {
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
(async () => {
|
|
43
|
+
cameraInstance = camera
|
|
44
|
+
await platform.ready()
|
|
45
|
+
await new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(resolve)))
|
|
46
|
+
main()
|
|
47
|
+
})()
|
|
44
48
|
}
|
|
45
49
|
}
|
|
46
50
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@awesome-cordova-plugins/file": "^8.1.0",
|
|
19
19
|
"@ionic/angular": "^8.7.3",
|
|
20
20
|
"@ionic/cordova-builders": "^12.3.0",
|
|
21
|
-
"@regulaforensics/document-reader": "8.4.
|
|
21
|
+
"@regulaforensics/document-reader": "8.4.375-beta",
|
|
22
22
|
"@regulaforensics/document-reader-core-fullauthrfid": "8.4.325-beta",
|
|
23
23
|
"@regulaforensics/document-reader-btdevice": "8.4.20-beta",
|
|
24
24
|
"cordova-android": "^14.0.1",
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
<div id="content" style="height: 100%"></div>
|
|
5
5
|
|
|
6
6
|
<script>
|
|
7
|
-
|
|
8
|
-
.then(
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
(async () => {
|
|
8
|
+
document.getElementById("content").innerHTML = await fetch("src/main.html").then(r => r.text())
|
|
9
|
+
await new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(resolve)))
|
|
10
|
+
window.ReactNativeWebView.postMessage(JSON.stringify({ id: "ready" }))
|
|
11
|
+
})()
|
|
11
12
|
</script>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"start": "expo start"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@regulaforensics/document-reader": "8.4.
|
|
11
|
+
"@regulaforensics/document-reader": "8.4.375-beta",
|
|
12
12
|
"@regulaforensics/document-reader-core-fullauthrfid": "8.4.325-beta",
|
|
13
13
|
"@regulaforensics/document-reader-btdevice": "8.4.20-beta",
|
|
14
14
|
"react-native": "^0.81.4",
|
package/ios/RNDocumentReader.m
CHANGED
|
@@ -18,8 +18,8 @@ static NSMutableArray<RCTResponseSenderBlock>* _firedCallbacks = nil;
|
|
|
18
18
|
paCertificateCompletionEvent,
|
|
19
19
|
taCertificateCompletionEvent,
|
|
20
20
|
taSignatureCompletionEvent,
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
drVideoEncoderCompletionEvent,
|
|
22
|
+
drOnCustomButtonTappedEvent];
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
static bool hasListeners;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/document-reader",
|
|
3
|
-
"version": "8.4.
|
|
3
|
+
"version": "8.4.375-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="8.4.
|
|
2
|
+
<plugin id="@regulaforensics/document-reader" version="8.4.375-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>
|