@regulaforensics/cordova-plugin-document-reader-api 7.3.519-rc → 7.3.529-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/example/package.json
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"author": "Regula Forensics Inc.",
|
|
14
14
|
"license": "commercial",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@regulaforensics/cordova-plugin-document-reader-api": "7.3.
|
|
17
|
-
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "7.3.
|
|
16
|
+
"@regulaforensics/cordova-plugin-document-reader-api": "7.3.529-beta",
|
|
17
|
+
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "7.3.496-beta",
|
|
18
18
|
"cordova-android": "12.0.1",
|
|
19
19
|
"cordova-ios": "7.0.1",
|
|
20
20
|
"cordova-plugin-add-swift-support": "2.0.2",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/cordova-plugin-document-reader-api",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.529-beta",
|
|
4
4
|
"description": "Cordova plugin for reading and validation of identification documents (API framework)",
|
|
5
5
|
"cordova": {
|
|
6
6
|
"id": "@regulaforensics/cordova-plugin-document-reader-api",
|
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id="cordova-plugin-document-reader-api" version="7.3.
|
|
2
|
+
<plugin id="cordova-plugin-document-reader-api" version="7.3.529-beta"
|
|
3
3
|
xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
4
4
|
<name>DocumentReaderApi</name>
|
|
5
5
|
<description>Cordova plugin Document reader api</description>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<config>
|
|
27
27
|
</config>
|
|
28
28
|
<pods>
|
|
29
|
-
<pod name="
|
|
29
|
+
<pod name="DocumentReaderBeta" spec="7.3.3716" />
|
|
30
30
|
</pods>
|
|
31
31
|
</podspec>
|
|
32
32
|
</platform>
|
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
// Created by Pavel Masiuk on 21.09.2023.
|
|
6
6
|
// Copyright © 2023 Regula. All rights reserved.
|
|
7
7
|
//
|
|
8
|
+
@file:SuppressLint("MissingPermission")
|
|
8
9
|
|
|
9
10
|
package cordova.plugin.documentreader
|
|
10
11
|
|
|
12
|
+
import android.annotation.SuppressLint
|
|
11
13
|
import android.content.Context
|
|
12
14
|
import android.graphics.Bitmap
|
|
13
15
|
import android.graphics.Rect
|
|
@@ -218,6 +220,7 @@ fun docReaderConfigFromJSON(input: JSONObject): DocReaderConfig {
|
|
|
218
220
|
var result = DocReaderConfig(license!!)
|
|
219
221
|
|
|
220
222
|
if (input.has("customDb")) result = DocReaderConfig(license, byteArrayFromBase64(input.getString("customDb"))!!)
|
|
223
|
+
if (input.has("databasePath")) result = DocReaderConfig(license, input.getString("databasePath"))
|
|
221
224
|
if (input.has("licenseUpdate")) result.setLicenseUpdate(input.getBoolean("licenseUpdate"))
|
|
222
225
|
if (input.has("delayedNNLoad")) result.isDelayedNNLoad = input.getBoolean("delayedNNLoad")
|
|
223
226
|
if (input.has("blackList")) result.blackList = input.getJSONObject("blackList")
|
|
@@ -232,6 +235,7 @@ fun generateDocReaderConfig(temp: DocReaderConfig?): JSONObject? {
|
|
|
232
235
|
|
|
233
236
|
result.put("license", generateByteArray(input.license))
|
|
234
237
|
result.put("customDb", generateByteArray(input.customDb))
|
|
238
|
+
result.put("databasePath", input.customDbPath)
|
|
235
239
|
result.put("licenseUpdate", input.isLicenseUpdate)
|
|
236
240
|
result.put("delayedNNLoad", input.isDelayedNNLoad)
|
|
237
241
|
result.put("blackList", input.blackList)
|
package/src/android/build.gradle
CHANGED
|
@@ -10,13 +10,13 @@ android {
|
|
|
10
10
|
|
|
11
11
|
repositories {
|
|
12
12
|
maven {
|
|
13
|
-
url "https://maven.regulaforensics.com/RegulaDocumentReader/
|
|
13
|
+
url "https://maven.regulaforensics.com/RegulaDocumentReader/Beta"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
dependencies {
|
|
18
18
|
//noinspection GradleDependency
|
|
19
|
-
implementation ('com.regula.documentreader:api:7.
|
|
19
|
+
implementation ('com.regula.documentreader:api:7.1.9980'){
|
|
20
20
|
transitive = true
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -143,16 +143,13 @@
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
+(RGLConfig*)configFromJson:(NSDictionary*)input {
|
|
146
|
-
if(input
|
|
147
|
-
if([
|
|
148
|
-
RGLConfig *config = [[RGLConfig alloc] initWithLicenseData:[self base64Decode: [
|
|
146
|
+
if (!input) return nil;
|
|
147
|
+
if (!input[@"license"]) return nil;
|
|
148
|
+
RGLConfig *config = [[RGLConfig alloc] initWithLicenseData:[self base64Decode: input[@"license"]]];
|
|
149
149
|
|
|
150
|
-
if([input
|
|
151
|
-
|
|
152
|
-
if([input
|
|
153
|
-
config.licenseUpdateCheck = [[input valueForKey:@"licenseUpdate"] boolValue];
|
|
154
|
-
if([input valueForKey:@"delayedNNLoad"] != nil)
|
|
155
|
-
config.delayedNNLoadEnabled = [[input valueForKey:@"delayedNNLoad"] boolValue];
|
|
150
|
+
if (input[@"databasePath"]) config.databasePath = [[NSBundle mainBundle] pathForResource:input[@"databasePath"] ofType:nil];
|
|
151
|
+
if (input[@"licenseUpdate"]) config.licenseUpdateCheck = [input[@"licenseUpdate"] boolValue];
|
|
152
|
+
if (input[@"delayedNNLoad"]) config.delayedNNLoadEnabled = [input[@"delayedNNLoad"] boolValue];
|
|
156
153
|
|
|
157
154
|
return config;
|
|
158
155
|
}
|
package/www/DocumentReader.js
CHANGED
|
@@ -1462,6 +1462,7 @@ class CustomizationColors {
|
|
|
1462
1462
|
result.rfidProcessingScreenProgressBar = jsonObject["rfidProcessingScreenProgressBar"]
|
|
1463
1463
|
result.rfidProcessingScreenProgressBarBackground = jsonObject["rfidProcessingScreenProgressBarBackground"]
|
|
1464
1464
|
result.rfidProcessingScreenResultLabelText = jsonObject["rfidProcessingScreenResultLabelText"]
|
|
1465
|
+
result.rfidProcessingScreenLoadingBar = jsonObject["rfidProcessingScreenLoadingBar"]
|
|
1465
1466
|
|
|
1466
1467
|
return result
|
|
1467
1468
|
}
|