@regulaforensics/cordova-plugin-document-reader-api 7.3.519-rc → 7.3.535-rc

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.
@@ -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.519-rc",
17
- "@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "7.3.487-rc",
16
+ "@regulaforensics/cordova-plugin-document-reader-api": "7.3.535-rc",
17
+ "@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "7.3.501",
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.519-rc",
3
+ "version": "7.3.535-rc",
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.519-rc"
2
+ <plugin id="cordova-plugin-document-reader-api" version="7.3.535-rc"
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="DocumentReaderStage" spec="7.3.3648" />
29
+ <pod name="DocumentReaderStage" spec="7.3.3747" />
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)
@@ -16,7 +16,7 @@ repositories {
16
16
 
17
17
  dependencies {
18
18
  //noinspection GradleDependency
19
- implementation ('com.regula.documentreader:api:7.3.9913'){
19
+ implementation ('com.regula.documentreader:api:7.3.10009'){
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 == nil) return nil;
147
- if([input valueForKey:@"license"] == nil) return nil;
148
- RGLConfig *config = [[RGLConfig alloc] initWithLicenseData:[self base64Decode: [input valueForKey:@"license"]]];
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 valueForKey:@"databasePath"] != nil)
151
- config.databasePath = [input valueForKey:@"databasePath"];
152
- if([input valueForKey:@"licenseUpdate"] != nil)
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
  }
@@ -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
  }