@regulaforensics/cordova-plugin-document-reader-api 9.2.384-nightly → 9.2.385-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.
@@ -13,8 +13,8 @@
13
13
  "author": "Regula Forensics Inc.",
14
14
  "license": "commercial",
15
15
  "dependencies": {
16
- "@regulaforensics/cordova-plugin-document-reader-api": "9.2.384-nightly",
17
- "@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "9.2.1827-nightly",
16
+ "@regulaforensics/cordova-plugin-document-reader-api": "9.2.385-beta",
17
+ "@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "9.2.1813-rc",
18
18
  "cordova-android": "13.0.0",
19
19
  "cordova-ios": "7.1.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": "9.2.384-nightly",
3
+ "version": "9.2.385-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="@regulaforensics/cordova-plugin-document-reader-api" version="9.2.384-nightly" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/cordova-plugin-document-reader-api" version="9.2.385-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
3
3
  <name>DocumentReaderApi</name>
4
4
  <description>Cordova plugin Document reader api</description>
5
5
  <license>commercial</license>
@@ -29,7 +29,7 @@
29
29
  <source url="https://github.com/CocoaPods/Specs.git"/>
30
30
  </config>
31
31
  <pods>
32
- <pod name="DocumentReaderNightly" spec="9.2.5871" />
32
+ <pod name="DocumentReaderBeta" spec="9.2.5881" />
33
33
  </pods>
34
34
  </podspec>
35
35
  </platform>
@@ -18,6 +18,7 @@ import com.regula.documentreader.api.params.ImageQA
18
18
  import com.regula.documentreader.api.params.LivenessParams
19
19
  import com.regula.documentreader.api.params.ParamsCustomization
20
20
  import com.regula.documentreader.api.params.ProcessParam
21
+ import com.regula.documentreader.api.params.Bsi
21
22
  import com.regula.documentreader.api.params.RfidScenario
22
23
  import com.regula.documentreader.api.params.rfid.dg.DTCDataGroup
23
24
  import com.regula.documentreader.api.params.rfid.dg.DataGroups
@@ -147,7 +148,11 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
147
148
  "strictSecurityChecks" -> processParams.strictSecurityChecks = v as Boolean
148
149
  "returnTransliteratedFields" -> processParams.returnTransliteratedFields = v as Boolean
149
150
  "checkCaptureProcessIntegrity" -> processParams.checkCaptureProcessIntegrity = v as Boolean
150
- "bsiTr03135Results" -> processParams.bsiTr03135Results = v as Boolean
151
+ "bsiTr03135" -> {
152
+ val temp = Bsi()
153
+ temp.generateResult = (v as JSONObject).getBooleanOrNull("generateResult")
154
+ processParams.bsiTr03135 = temp
155
+ }
151
156
  "measureSystem" -> processParams.measureSystem = v.toInt()
152
157
  "barcodeParserType" -> processParams.barcodeParserType = v.toInt()
153
158
  "perspectiveAngle" -> processParams.perspectiveAngle = v.toInt()
@@ -237,7 +242,9 @@ fun getProcessParams(processParams: ProcessParam) = mapOf(
237
242
  "strictSecurityChecks" to processParams.strictSecurityChecks,
238
243
  "returnTransliteratedFields" to processParams.returnTransliteratedFields,
239
244
  "checkCaptureProcessIntegrity" to processParams.checkCaptureProcessIntegrity,
240
- "bsiTr03135Results" to processParams.bsiTr03135Results,
245
+ "bsiTr03135" to mapOf(
246
+ "generateResult" to processParams.bsiTr03135?.generateResult
247
+ ).toJson(),
241
248
  "measureSystem" to processParams.measureSystem,
242
249
  "barcodeParserType" to processParams.barcodeParserType,
243
250
  "perspectiveAngle" to processParams.perspectiveAngle,
@@ -1,12 +1,12 @@
1
1
  repositories {
2
2
  maven {
3
- url "https://maven.regulaforensics.com/RegulaDocumentReader/Nightly"
3
+ url "https://maven.regulaforensics.com/RegulaDocumentReader/Beta"
4
4
  }
5
5
  }
6
6
 
7
7
  dependencies {
8
8
  //noinspection GradleDependency
9
- implementation ('com.regula.documentreader:api:9.2.12363'){
9
+ implementation ('com.regula.documentreader:api:9.2.12373'){
10
10
  transitive = true
11
11
  }
12
12
  }
@@ -194,7 +194,10 @@
194
194
  if (options[@"strictSecurityChecks"]) processParams.strictSecurityChecks = options[@"strictSecurityChecks"];
195
195
  if (options[@"returnTransliteratedFields"]) processParams.returnTransliteratedFields = options[@"returnTransliteratedFields"];
196
196
  if (options[@"checkCaptureProcessIntegrity"]) processParams.checkCaptureProcessIntegrity = options[@"checkCaptureProcessIntegrity"];
197
- if (options[@"bsiTr03135Results"]) processParams.bsiTr03135Results = options[@"bsiTr03135Results"];
197
+ if (options[@"bsiTr03135"]) {
198
+ processParams.bsiTr03135 = [RGLBsi new];
199
+ processParams.bsiTr03135.generateResult = options[@"bsiTr03135"][@"generateResult"];
200
+ }
198
201
 
199
202
  // Int
200
203
  if([options valueForKey:@"measureSystem"] != nil)
@@ -326,7 +329,9 @@
326
329
  result[@"strictSecurityChecks"] = processParams.strictSecurityChecks;
327
330
  result[@"returnTransliteratedFields"] = processParams.returnTransliteratedFields;
328
331
  result[@"checkCaptureProcessIntegrity"] = processParams.checkCaptureProcessIntegrity;
329
- result[@"bsiTr03135Results"] = processParams.bsiTr03135Results;
332
+ if(processParams.bsiTr03135) result[@"bsiTr03135"] = @{
333
+ @"generateResult": processParams.bsiTr03135.generateResult,
334
+ };
330
335
 
331
336
  // Int
332
337
  result[@"measureSystem"] = [NSNumber numberWithInteger:processParams.measureSystem];
@@ -1463,7 +1463,7 @@ class ProcessParams {
1463
1463
  result.strictSecurityChecks = jsonObject["strictSecurityChecks"]
1464
1464
  result.returnTransliteratedFields = jsonObject["returnTransliteratedFields"]
1465
1465
  result.checkCaptureProcessIntegrity = jsonObject["checkCaptureProcessIntegrity"]
1466
- result.bsiTr03135Results = jsonObject["bsiTr03135Results"]
1466
+ result.bsiTr03135 = Bsi.fromJson(jsonObject["bsiTr03135"])
1467
1467
  result.barcodeParserType = jsonObject["barcodeParserType"]
1468
1468
  result.perspectiveAngle = jsonObject["perspectiveAngle"]
1469
1469
  result.minDPI = jsonObject["minDPI"]
@@ -1548,6 +1548,17 @@ class Font {
1548
1548
  }
1549
1549
  }
1550
1550
 
1551
+ class Bsi {
1552
+ static fromJson(jsonObject) {
1553
+ if (jsonObject == null) return null
1554
+ const result = new Bsi()
1555
+
1556
+ result.generateResult = jsonObject["generateResult"]
1557
+
1558
+ return result
1559
+ }
1560
+ }
1561
+
1551
1562
  class CustomizationColors {
1552
1563
  static fromJson(jsonObject) {
1553
1564
  if (jsonObject == null) return null
@@ -4817,6 +4828,7 @@ DocumentReaderPlugin.LivenessParams = LivenessParams
4817
4828
  DocumentReaderPlugin.AuthenticityParams = AuthenticityParams
4818
4829
  DocumentReaderPlugin.ProcessParams = ProcessParams
4819
4830
  DocumentReaderPlugin.Font = Font
4831
+ DocumentReaderPlugin.Bsi = Bsi
4820
4832
  DocumentReaderPlugin.CustomizationColors = CustomizationColors
4821
4833
  DocumentReaderPlugin.CustomizationFonts = CustomizationFonts
4822
4834
  DocumentReaderPlugin.CustomizationImages = CustomizationImages