@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.
@@ -5,7 +5,7 @@ source = File.join(__dir__, 'ios')
5
5
 
6
6
  Pod::Spec.new do |s|
7
7
  s.name = 'RNDocumentReader'
8
- s.version = '8.4.341-beta'
8
+ s.version = '8.4.375-beta'
9
9
  s.summary = package['description']
10
10
  s.license = package['license']
11
11
 
@@ -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', () => fetch("main.html")
10
- .then(response => response.text())
11
- .then(html => document.getElementById("content").innerHTML = html)
12
- .then(_ => document.dispatchEvent(new Event('ready')))
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.341-beta",
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",
@@ -39,8 +39,12 @@ var cameraInstance: Camera
39
39
  })
40
40
  class Main {
41
41
  constructor(platform: Platform, camera: Camera) {
42
- cameraInstance = camera
43
- platform.ready().then(main)
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.341-beta",
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
- fetch("src/main.html")
8
- .then(response => response.text())
9
- .then(html => document.getElementById("content").innerHTML = html)
10
- .then(_ => window.ReactNativeWebView.postMessage(`{"id": "ready"}`))
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.341-beta",
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",
@@ -18,8 +18,8 @@ static NSMutableArray<RCTResponseSenderBlock>* _firedCallbacks = nil;
18
18
  paCertificateCompletionEvent,
19
19
  taCertificateCompletionEvent,
20
20
  taSignatureCompletionEvent,
21
- videoEncoderCompletionEvent,
22
- onCustomButtonTappedEvent];
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.341-beta",
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.341-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
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>
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "..": {
15
15
  "name": "@regulaforensics/document-reader",
16
- "version": "8.4.341-beta",
16
+ "version": "8.4.375-beta",
17
17
  "dev": true,
18
18
  "license": "commercial"
19
19
  },