@regulaforensics/document-reader 8.3.276-beta → 8.3.280-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,15 +6,13 @@
6
6
  "android": "scripts/android.sh"
7
7
  },
8
8
  "dependencies": {
9
- "@regulaforensics/document-reader": "8.3.276-beta",
10
- "@regulaforensics/document-reader-core-fullauthrfid": "8.2.8-beta",
11
- "@regulaforensics/document-reader-btdevice": "8.2.8-beta",
9
+ "@regulaforensics/document-reader": "8.3.280-beta",
10
+ "@regulaforensics/document-reader-core-fullauthrfid": "8.3.9-beta",
11
+ "@regulaforensics/document-reader-btdevice": "8.3.10-beta",
12
12
  "@awesome-cordova-plugins/file": "6.6.0",
13
13
  "@awesome-cordova-plugins/camera": "6.6.0",
14
- "@awesome-cordova-plugins/dialogs": "6.6.0",
15
14
  "cordova-plugin-file": "8.1.3",
16
15
  "cordova-plugin-camera": "8.0.0",
17
- "cordova-plugin-dialogs": "2.0.2",
18
16
  "@capacitor/cli": "7.0.1",
19
17
  "@capacitor/core": "7.0.1",
20
18
  "@capacitor/app": "7.0.0",
@@ -2,9 +2,11 @@
2
2
  set -e
3
3
 
4
4
  npm install
5
- cd ios/App
6
- pod install || pod update
7
- cd ../../
5
+ ionic cap sync ios || {
6
+ cd ios/App
7
+ pod update
8
+ cd ../../
9
+ }
8
10
 
9
11
  cp public/assets/db.dat ios/App/App/
10
12
  cp public/assets/db.dat android/app/src/main/assets/Regula/
@@ -16,11 +16,6 @@ body {
16
16
  -webkit-touch-callout: none !important;
17
17
  }
18
18
 
19
- /* Prevent image dragging */
20
- img {
21
- pointer-events: none;
22
- }
23
-
24
19
  .column {
25
20
  display: flex;
26
21
  flex-direction: column;
@@ -41,14 +36,20 @@ img {
41
36
  padding-top: 80px;
42
37
  margin-top: -10px;
43
38
  background-color: rgba(0, 0, 0, 0.03);
44
- }
45
-
46
- .title {
47
39
  font-weight: 600;
48
40
  font-size: 18px;
49
41
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
50
42
  }
51
43
 
44
+ .sub-header {
45
+ background-color: rgba(0, 0, 0, 0.03);
46
+ width: 100%;
47
+ padding-top: 13px;
48
+ text-align: center;
49
+ font-weight: 550;
50
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
51
+ }
52
+
52
53
  .divider {
53
54
  height: 1px;
54
55
  background-color: rgba(0, 0, 0, 0.075);
@@ -1,6 +1,6 @@
1
1
  <div class="column" style="height: 100%">
2
2
  <div class="column header">
3
- <span id="status" class="title">Loading...</span>
3
+ <span id="status">Loading...</span>
4
4
  <div class="column divider"></div>
5
5
  </div>
6
6
  <div id="main" class="column no-scroll">
@@ -92,8 +92,6 @@ export function handleException(error: DocReaderException | null) {
92
92
 
93
93
  // --------------------------------------------------------------------------------------------------------------------
94
94
 
95
- var documentUIImage: HTMLImageElement
96
- var portraitUIImage: HTMLImageElement
97
95
  export function main() {
98
96
  documentUIImage = document.getElementById("document-image") as HTMLImageElement
99
97
  portraitUIImage = document.getElementById("portrait-image") as HTMLImageElement
@@ -116,11 +114,13 @@ export function setStatus(data: string | null) {
116
114
  document.getElementById("status")!.innerHTML = data
117
115
  }
118
116
 
117
+ var portraitUIImage: HTMLImageElement
119
118
  function setPortrait(data: string | null) {
120
119
  if (data != null)
121
120
  portraitUIImage.src = "data:image/png;base64," + data
122
121
  }
123
122
 
123
+ var documentUIImage: HTMLImageElement
124
124
  function setDocImage(data: string | null) {
125
125
  if (data != null)
126
126
  documentUIImage.src = "data:image/png;base64," + data
@@ -2,8 +2,10 @@
2
2
 
3
3
  ## How to build demo application
4
4
  1. Download or the clone current repository using the command `git clone https://github.com/regulaforensics/npm-document-reader.git`.
5
- 2. Execute `npm run setup` within this directory.
6
- 3. Run the app:
5
+ 2. Put `regula.license` file at `assets/` (you can get a trial license [here](https://client.regulaforensics.com)).
6
+ 3. Put `db.dat` file at `assets/` (you can get a trial database [here](https://client.regulaforensics.com/customer/databases))
7
+ 4. Execute `npm run setup` within this directory.
8
+ 5. Run the app:
7
9
  * IOS: `npm run ios`.
8
10
  * Android: `npm run android`.
9
11
 
@@ -19,6 +19,7 @@
19
19
  </platform>
20
20
  <platform name="ios">
21
21
  <resource-file src="assets/db.dat" />
22
+ <preference name="deployment-target" value="14.0" />
22
23
  <preference name="orientation" value="portrait" />
23
24
  <allow-intent href="itms:*" />
24
25
  <allow-intent href="itms-apps:*" />
@@ -6,9 +6,9 @@
6
6
  "android": "scripts/android.sh"
7
7
  },
8
8
  "dependencies": {
9
- "@regulaforensics/document-reader": "8.3.276-beta",
10
- "@regulaforensics/document-reader-core-fullauthrfid": "8.2.8-beta",
11
- "@regulaforensics/document-reader-btdevice": "8.2.8-beta",
9
+ "@regulaforensics/document-reader": "8.3.280-beta",
10
+ "@regulaforensics/document-reader-core-fullauthrfid": "8.3.9-beta",
11
+ "@regulaforensics/document-reader-btdevice": "8.3.10-beta",
12
12
  "@awesome-cordova-plugins/file": "6.14.0",
13
13
  "@awesome-cordova-plugins/camera": "6.14.0",
14
14
  "cordova-ios": "7.1.1",
@@ -16,11 +16,6 @@ body {
16
16
  -webkit-touch-callout: none !important;
17
17
  }
18
18
 
19
- /* Prevent image dragging */
20
- img {
21
- pointer-events: none;
22
- }
23
-
24
19
  .column {
25
20
  display: flex;
26
21
  flex-direction: column;
@@ -41,14 +36,20 @@ img {
41
36
  padding-top: 80px;
42
37
  margin-top: -10px;
43
38
  background-color: rgba(0, 0, 0, 0.03);
44
- }
45
-
46
- .title {
47
39
  font-weight: 600;
48
40
  font-size: 18px;
49
41
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
50
42
  }
51
43
 
44
+ .sub-header {
45
+ background-color: rgba(0, 0, 0, 0.03);
46
+ width: 100%;
47
+ padding-top: 13px;
48
+ text-align: center;
49
+ font-weight: 550;
50
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
51
+ }
52
+
52
53
  .divider {
53
54
  height: 1px;
54
55
  background-color: rgba(0, 0, 0, 0.075);
@@ -1,6 +1,6 @@
1
1
  <div class="column" style="height: 100%">
2
2
  <div class="column header">
3
- <span id="status" class="title">Loading...</span>
3
+ <span id="status">Loading...</span>
4
4
  <div class="column divider"></div>
5
5
  </div>
6
6
  <div id="main" class="column no-scroll">
@@ -92,8 +92,6 @@ export function handleException(error: DocReaderException | null) {
92
92
 
93
93
  // --------------------------------------------------------------------------------------------------------------------
94
94
 
95
- var documentUIImage: HTMLImageElement
96
- var portraitUIImage: HTMLImageElement
97
95
  export function main() {
98
96
  documentUIImage = document.getElementById("document-image") as HTMLImageElement
99
97
  portraitUIImage = document.getElementById("portrait-image") as HTMLImageElement
@@ -116,11 +114,13 @@ export function setStatus(data: string | null) {
116
114
  document.getElementById("status")!.innerHTML = data
117
115
  }
118
116
 
117
+ var portraitUIImage: HTMLImageElement
119
118
  function setPortrait(data: string | null) {
120
119
  if (data != null)
121
120
  portraitUIImage.src = "data:image/png;base64," + data
122
121
  }
123
122
 
123
+ var documentUIImage: HTMLImageElement
124
124
  function setDocImage(data: string | null) {
125
125
  if (data != null)
126
126
  documentUIImage.src = "data:image/png;base64," + data
@@ -2,8 +2,10 @@
2
2
 
3
3
  ## How to build demo application
4
4
  1. Download or the clone current repository using the command `git clone https://github.com/regulaforensics/npm-document-reader.git`.
5
- 2. Execute `npm run setup` within this directory.
6
- 3. Run the app:
5
+ 2. Put `regula.license` file at `assets/` (you can get a trial license [here](https://client.regulaforensics.com)).
6
+ 3. Put `db.dat` file at `assets/` (you can get a trial database [here](https://client.regulaforensics.com/customer/databases))
7
+ 4. Execute `npm run setup` within this directory.
8
+ 5. Run the app:
7
9
  * IOS: `npm run ios`.
8
10
  * Android: `npm run android`.
9
11
 
@@ -8,9 +8,9 @@
8
8
  "start": "expo start"
9
9
  },
10
10
  "dependencies": {
11
- "@regulaforensics/document-reader": "8.3.276-beta",
12
- "@regulaforensics/document-reader-core-fullauthrfid": "8.2.8-beta",
13
- "@regulaforensics/document-reader-btdevice": "8.2.8-beta",
11
+ "@regulaforensics/document-reader": "8.3.280-beta",
12
+ "@regulaforensics/document-reader-core-fullauthrfid": "8.3.9-beta",
13
+ "@regulaforensics/document-reader-btdevice": "8.3.10-beta",
14
14
  "react-native": "0.79.5",
15
15
  "react-native-fs": "2.20.0",
16
16
  "react-native-image-picker": "8.2.1",
@@ -16,11 +16,6 @@ body {
16
16
  -webkit-touch-callout: none !important;
17
17
  }
18
18
 
19
- /* Prevent image dragging */
20
- img {
21
- pointer-events: none;
22
- }
23
-
24
19
  .column {
25
20
  display: flex;
26
21
  flex-direction: column;
@@ -41,14 +36,20 @@ img {
41
36
  padding-top: 80px;
42
37
  margin-top: -10px;
43
38
  background-color: rgba(0, 0, 0, 0.03);
44
- }
45
-
46
- .title {
47
39
  font-weight: 600;
48
40
  font-size: 18px;
49
41
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
50
42
  }
51
43
 
44
+ .sub-header {
45
+ background-color: rgba(0, 0, 0, 0.03);
46
+ width: 100%;
47
+ padding-top: 13px;
48
+ text-align: center;
49
+ font-weight: 550;
50
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
51
+ }
52
+
52
53
  .divider {
53
54
  height: 1px;
54
55
  background-color: rgba(0, 0, 0, 0.075);
@@ -1,6 +1,6 @@
1
1
  <div class="column" style="height: 100%">
2
2
  <div class="column header">
3
- <span id="status" class="title">Loading...</span>
3
+ <span id="status">Loading...</span>
4
4
  <div class="column divider"></div>
5
5
  </div>
6
6
  <div id="main" class="column no-scroll">
@@ -92,8 +92,6 @@ export function handleException(error: DocReaderException | null) {
92
92
 
93
93
  // --------------------------------------------------------------------------------------------------------------------
94
94
 
95
- var documentUIImage: HTMLImageElement
96
- var portraitUIImage: HTMLImageElement
97
95
  export function main() {
98
96
  documentUIImage = document.getElementById("document-image") as HTMLImageElement
99
97
  portraitUIImage = document.getElementById("portrait-image") as HTMLImageElement
@@ -116,11 +114,13 @@ export function setStatus(data: string | null) {
116
114
  document.getElementById("status")!.innerHTML = data
117
115
  }
118
116
 
117
+ var portraitUIImage: HTMLImageElement
119
118
  function setPortrait(data: string | null) {
120
119
  if (data != null)
121
120
  portraitUIImage.src = "data:image/png;base64," + data
122
121
  }
123
122
 
123
+ var documentUIImage: HTMLImageElement
124
124
  function setDocImage(data: string | null) {
125
125
  if (data != null)
126
126
  documentUIImage.src = "data:image/png;base64," + data
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/document-reader",
3
- "version": "8.3.276-beta",
3
+ "version": "8.3.280-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.3.276-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/document-reader" version="8.3.280-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.3.276-beta",
16
+ "version": "8.3.280-beta",
17
17
  "dev": true,
18
18
  "license": "commercial"
19
19
  },
@@ -152,10 +152,10 @@ export class DocumentReader {
152
152
  /** Information about your license. */
153
153
  get license(): License | null;
154
154
 
155
- /// Allows you to check if native RFID chip reading can be performed
156
- /// based on your license and Core framework capabilities.
157
- ///
158
- /// Returns `true` if native RFID chip reading is supported.
155
+ /** Allows you to check if native RFID chip reading can be performed
156
+ * based on your license and Core framework capabilities.
157
+ * @returns `true` if native RFID chip reading is supported.
158
+ */
159
159
  isRFIDAvailableForUse(): Promise<boolean>;
160
160
 
161
161
  /**