@regulaforensics/cordova-plugin-document-reader-api 8.1.133-rc → 8.1.135-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.
- package/example/package.json +2 -2
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/src/android/Config.kt +32 -1
- package/src/android/build.gradle +1 -1
- package/src/ios/RGLWConfig.m +20 -0
- package/www/DocumentReader.js +22 -0
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": "8.1.
|
|
17
|
-
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "8.1.
|
|
16
|
+
"@regulaforensics/cordova-plugin-document-reader-api": "8.1.135-rc",
|
|
17
|
+
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "8.1.339-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": "8.1.
|
|
3
|
+
"version": "8.1.135-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="@regulaforensics/cordova-plugin-document-reader-api" version="8.1.
|
|
2
|
+
<plugin id="@regulaforensics/cordova-plugin-document-reader-api" version="8.1.135-rc" 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="DocumentReaderStage" spec="8.1.
|
|
32
|
+
<pod name="DocumentReaderStage" spec="8.1.4667" />
|
|
33
33
|
</pods>
|
|
34
34
|
</podspec>
|
|
35
35
|
</platform>
|
package/src/android/Config.kt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@file:Suppress("EnumValuesSoftDeprecate")
|
|
1
|
+
@file:Suppress("EnumValuesSoftDeprecate", "DEPRECATION")
|
|
2
2
|
|
|
3
3
|
package com.regula.plugin.documentreader
|
|
4
4
|
|
|
@@ -136,6 +136,7 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
|
|
|
136
136
|
"selectLongestNames" -> processParams.selectLongestNames = v as Boolean
|
|
137
137
|
"generateDTCVC" -> processParams.generateDTCVC = v as Boolean
|
|
138
138
|
"strictDLCategoryExpiry" -> processParams.strictDLCategoryExpiry = v as Boolean
|
|
139
|
+
"generateAlpha2Codes" -> processParams.generateAlpha2Codes = v as Boolean
|
|
139
140
|
"measureSystem" -> processParams.measureSystem = v.toInt()
|
|
140
141
|
"barcodeParserType" -> processParams.barcodeParserType = v.toInt()
|
|
141
142
|
"perspectiveAngle" -> processParams.perspectiveAngle = v.toInt()
|
|
@@ -151,6 +152,7 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
|
|
|
151
152
|
"convertCase" -> processParams.convertCase = v.toInt()
|
|
152
153
|
"logLevel" -> processParams.logLevel = LogLevel.valueOf(v.toString())
|
|
153
154
|
"mrzDetectMode" -> processParams.mrzDetectMode = v.toInt()
|
|
155
|
+
"pdfPagesLimit" -> processParams.pdfPagesLimit = v.toInt()
|
|
154
156
|
"dateFormat" -> processParams.dateFormat = v as String
|
|
155
157
|
"scenario" -> processParams.scenario = v as String
|
|
156
158
|
"captureButtonScenario" -> processParams.captureButtonScenario = v as String
|
|
@@ -218,6 +220,7 @@ fun getProcessParams(processParams: ProcessParam) = mapOf(
|
|
|
218
220
|
"selectLongestNames" to processParams.selectLongestNames,
|
|
219
221
|
"generateDTCVC" to processParams.generateDTCVC,
|
|
220
222
|
"strictDLCategoryExpiry" to processParams.strictDLCategoryExpiry,
|
|
223
|
+
"generateAlpha2Codes" to processParams.generateAlpha2Codes,
|
|
221
224
|
"measureSystem" to processParams.measureSystem,
|
|
222
225
|
"barcodeParserType" to processParams.barcodeParserType,
|
|
223
226
|
"perspectiveAngle" to processParams.perspectiveAngle,
|
|
@@ -233,6 +236,7 @@ fun getProcessParams(processParams: ProcessParam) = mapOf(
|
|
|
233
236
|
"convertCase" to processParams.convertCase,
|
|
234
237
|
"logLevel" to processParams.logLevel?.toString(),
|
|
235
238
|
"mrzDetectMode" to processParams.mrzDetectMode,
|
|
239
|
+
"pdfPagesLimit" to processParams.pdfPagesLimit,
|
|
236
240
|
"dateFormat" to processParams.dateFormat,
|
|
237
241
|
"scenario" to processParams.scenario,
|
|
238
242
|
"captureButtonScenario" to processParams.captureButtonScenario,
|
|
@@ -272,6 +276,7 @@ fun setCustomization(customization: ParamsCustomization, opts: JSONObject) = opt
|
|
|
272
276
|
"activityIndicatorSize" -> editor.setActivityIndicatorSize(v.toInt())
|
|
273
277
|
"status" -> editor.setStatus(v as String)
|
|
274
278
|
"resultStatus" -> editor.setResultStatus(v as String)
|
|
279
|
+
"multipageButtonText" -> editor.setMultipageButtonText(v as String)
|
|
275
280
|
"cameraFrameDefaultColor" -> editor.setCameraFrameDefaultColor(v.toColor())
|
|
276
281
|
"cameraFrameActiveColor" -> editor.setCameraFrameActiveColor(v.toColor())
|
|
277
282
|
"statusTextColor" -> editor.setStatusTextColor(v.toColor())
|
|
@@ -283,6 +288,7 @@ fun setCustomization(customization: ParamsCustomization, opts: JSONObject) = opt
|
|
|
283
288
|
"statusBackgroundColor" -> editor.setStatusBackgroundColor(v.toColor())
|
|
284
289
|
"cameraPreviewBackgroundColor" -> editor.setCameraPreviewBackgroundColor(v.toColor())
|
|
285
290
|
"backgroundMaskColor" -> editor.setBackgroundMaskColor(v.toColor())
|
|
291
|
+
"multipageButtonTextColor" -> editor.setMultipageButtonTextColor(v.toColor())
|
|
286
292
|
"statusPositionMultiplier" -> editor.setStatusPositionMultiplier(v.toFloat())
|
|
287
293
|
"resultStatusPositionMultiplier" -> editor.setResultStatusPositionMultiplier(v.toFloat())
|
|
288
294
|
"toolbarSize" -> editor.setToolbarSize(v.toFloat())
|
|
@@ -295,6 +301,9 @@ fun setCustomization(customization: ParamsCustomization, opts: JSONObject) = opt
|
|
|
295
301
|
"livenessAnimationPositionMultiplier" -> editor.setLivenessAnimationPositionMultiplier(v.toFloat())
|
|
296
302
|
"nextPageAnimationStartDelay" -> editor.setNextPageAnimationStartDelay(v.toFloat())
|
|
297
303
|
"nextPageAnimationEndDelay" -> editor.setNextPageAnimationEndDelay(v.toFloat())
|
|
304
|
+
"activityIndicatorPortraitPositionMultiplier" -> editor.setActivityIndicatorPortraitPositionMultiplier(v.toFloat())
|
|
305
|
+
"activityIndicatorLandscapePositionMultiplier" -> editor.setActivityIndicatorLandscapePositionMultiplier(v.toFloat())
|
|
306
|
+
"cameraPreviewVerticalPositionMultiplier" -> editor.setCameraPreviewVerticalPositionMultiplier(v.toFloat())
|
|
298
307
|
"multipageAnimationFrontImage" -> editor.setMultipageAnimationFrontImage(v.toDrawable())
|
|
299
308
|
"multipageAnimationBackImage" -> editor.setMultipageAnimationBackImage(v.toDrawable())
|
|
300
309
|
"borderBackgroundImage" -> editor.setBorderBackgroundImage(v.toDrawable())
|
|
@@ -329,6 +338,12 @@ fun setCustomization(customization: ParamsCustomization, opts: JSONObject) = opt
|
|
|
329
338
|
editor.setResultStatusTextFont(font.first)
|
|
330
339
|
font.second?.let { editor.setResultStatusTextSize(it) }
|
|
331
340
|
}
|
|
341
|
+
|
|
342
|
+
"multipageButtonTextFont" -> {
|
|
343
|
+
val font = typefaceFromJSON(v as JSONObject)
|
|
344
|
+
editor.setMultipageButtonTextFont(font.first)
|
|
345
|
+
font.second?.let { editor.setMultipageButtonTextSize(it) }
|
|
346
|
+
}
|
|
332
347
|
}
|
|
333
348
|
editor.applyImmediately(context)
|
|
334
349
|
}
|
|
@@ -346,6 +361,7 @@ fun getCustomization(customization: ParamsCustomization) = mapOf(
|
|
|
346
361
|
"activityIndicatorSize" to customization.activityIndicatorSize,
|
|
347
362
|
"status" to customization.status,
|
|
348
363
|
"resultStatus" to customization.resultStatus,
|
|
364
|
+
"multipageButtonText" to customization.multipageButtonText,
|
|
349
365
|
"cameraFrameDefaultColor" to customization.cameraFrameDefaultColor.colorToLong(),
|
|
350
366
|
"cameraFrameActiveColor" to customization.cameraFrameActiveColor.colorToLong(),
|
|
351
367
|
"statusTextColor" to customization.statusTextColor.colorToLong(),
|
|
@@ -357,6 +373,7 @@ fun getCustomization(customization: ParamsCustomization) = mapOf(
|
|
|
357
373
|
"statusBackgroundColor" to customization.statusBackgroundColor.colorToLong(),
|
|
358
374
|
"cameraPreviewBackgroundColor" to customization.cameraPreviewBackgroundColor.colorToLong(),
|
|
359
375
|
"backgroundMaskColor" to customization.backgroundMaskColor.colorToLong(),
|
|
376
|
+
"multipageButtonTextColor" to customization.multipageButtonTextColor.colorToLong(),
|
|
360
377
|
"statusPositionMultiplier" to customization.statusPositionMultiplier,
|
|
361
378
|
"resultStatusPositionMultiplier" to customization.resultStatusPositionMultiplier,
|
|
362
379
|
"backgroundMaskAlpha" to customization.backgroundMaskAlpha,
|
|
@@ -369,6 +386,9 @@ fun getCustomization(customization: ParamsCustomization) = mapOf(
|
|
|
369
386
|
"livenessAnimationPositionMultiplier" to customization.livenessAnimationPositionMultiplier,
|
|
370
387
|
"nextPageAnimationStartDelay" to customization.nextPageAnimationStartDelay,
|
|
371
388
|
"nextPageAnimationEndDelay" to customization.nextPageAnimationEndDelay,
|
|
389
|
+
"activityIndicatorPortraitPositionMultiplier" to customization.activityIndicatorPortraitPositionMultiplier,
|
|
390
|
+
"activityIndicatorLandscapePositionMultiplier" to customization.activityIndicatorLandscapePositionMultiplier,
|
|
391
|
+
"cameraPreviewVerticalPositionMultiplier" to customization.cameraPreviewVerticalPositionMultiplier,
|
|
372
392
|
"multipageAnimationFrontImage" to customization.multipageAnimationFrontImage.toBase64(),
|
|
373
393
|
"multipageAnimationBackImage" to customization.multipageAnimationBackImage.toBase64(),
|
|
374
394
|
"borderBackgroundImage" to customization.borderBackgroundImage.toBase64(),
|
|
@@ -388,6 +408,7 @@ fun getCustomization(customization: ParamsCustomization) = mapOf(
|
|
|
388
408
|
"borderBackgroundImageMatrix" to generateMatrix(customization.borderBackgroundImageMatrix),
|
|
389
409
|
"statusTextFont" to generateTypeface(customization.statusTextFont, customization.statusTextSize),
|
|
390
410
|
"resultStatusTextFont" to generateTypeface(customization.resultStatusTextFont, customization.resultStatusTextSize),
|
|
411
|
+
"multipageButtonTextFont" to generateTypeface(customization.multipageButtonTextFont, customization.multipageButtonTextSize),
|
|
391
412
|
"customLabelStatus" to customization.customLabelStatus?.toString(),
|
|
392
413
|
"cameraFrameLineCap" to customization.cameraFrameLineCap.ordinal,
|
|
393
414
|
"uiCustomizationLayer" to customization.uiCustomizationLayer,
|
|
@@ -452,6 +473,10 @@ fun setRfidScenario(rfidScenario: RfidScenario, opts: JSONObject) = opts.forEach
|
|
|
452
473
|
"eSignPINDefault" -> rfidScenario.seteSignPINDefault(v as String)
|
|
453
474
|
"eSignPINNewValue" -> rfidScenario.seteSignPINNewValue(v as String)
|
|
454
475
|
"cardAccess" -> rfidScenario.cardAccess = v as String
|
|
476
|
+
"mrzHash" -> rfidScenario.mrzHash = v as String
|
|
477
|
+
"documentNumber" -> rfidScenario.documentNumber = v as String
|
|
478
|
+
"dateOfBirth" -> rfidScenario.dateOfBirth = v as String
|
|
479
|
+
"dateOfExpiry" -> rfidScenario.dateOfExpiry = v as String
|
|
455
480
|
"ePassportDataGroups" -> setDataGroups(rfidScenario.ePassportDataGroups(), v as JSONObject)
|
|
456
481
|
"eIDDataGroups" -> setDataGroups(rfidScenario.eIDDataGroups(), v as JSONObject)
|
|
457
482
|
"eDLDataGroups" -> setDataGroups(rfidScenario.eDLDataGroups(), v as JSONObject)
|
|
@@ -514,6 +539,10 @@ fun getRfidScenario(rfidScenario: RfidScenario) = mapOf(
|
|
|
514
539
|
"eSignPINDefault" to rfidScenario.geteSignPINDefault(),
|
|
515
540
|
"eSignPINNewValue" to rfidScenario.geteSignPINNewValue(),
|
|
516
541
|
"cardAccess" to rfidScenario.cardAccess,
|
|
542
|
+
"mrzHash" to rfidScenario.mrzHash,
|
|
543
|
+
"documentNumber" to rfidScenario.documentNumber,
|
|
544
|
+
"dateOfBirth" to rfidScenario.dateOfBirth,
|
|
545
|
+
"dateOfExpiry" to rfidScenario.dateOfExpiry,
|
|
517
546
|
"ePassportDataGroups" to getDataGroups(rfidScenario.ePassportDataGroups()),
|
|
518
547
|
"eIDDataGroups" to getDataGroups(rfidScenario.eIDDataGroups()),
|
|
519
548
|
"eDLDataGroups" to getDataGroups(rfidScenario.eDLDataGroups()),
|
|
@@ -688,6 +717,7 @@ fun setLivenessParams(input: LivenessParams, opts: JSONObject) = opts.forEach {
|
|
|
688
717
|
"checkED" -> input.checkED = v as Boolean
|
|
689
718
|
"checkBlackAndWhiteCopy" -> input.checkBlackAndWhiteCopy = v as Boolean
|
|
690
719
|
"checkDynaprint" -> input.checkDynaprint = v as Boolean
|
|
720
|
+
"checkGeometry" -> input.checkGeometry = v as Boolean
|
|
691
721
|
}
|
|
692
722
|
}
|
|
693
723
|
|
|
@@ -699,6 +729,7 @@ fun getLivenessParams(input: LivenessParams?) = input?.let {
|
|
|
699
729
|
"checkED" to input.checkED,
|
|
700
730
|
"checkBlackAndWhiteCopy" to input.checkBlackAndWhiteCopy,
|
|
701
731
|
"checkDynaprint" to input.checkDynaprint,
|
|
732
|
+
"checkGeometry" to input.checkGeometry,
|
|
702
733
|
).toJson()
|
|
703
734
|
}
|
|
704
735
|
|
package/src/android/build.gradle
CHANGED
package/src/ios/RGLWConfig.m
CHANGED
|
@@ -183,6 +183,7 @@
|
|
|
183
183
|
if (options[@"selectLongestNames"]) processParams.selectLongestNames = options[@"selectLongestNames"];
|
|
184
184
|
if (options[@"generateDTCVC"]) processParams.generateDTCVC = options[@"generateDTCVC"];
|
|
185
185
|
if (options[@"strictDLCategoryExpiry"]) processParams.strictDLCategoryExpiry = options[@"strictDLCategoryExpiry"];
|
|
186
|
+
if (options[@"generateAlpha2Codes"]) processParams.generateAlpha2Codes = options[@"generateAlpha2Codes"];
|
|
186
187
|
|
|
187
188
|
// Int
|
|
188
189
|
if([options valueForKey:@"measureSystem"] != nil)
|
|
@@ -213,6 +214,7 @@
|
|
|
213
214
|
processParams.convertCase = [self textProcessingWithNumber:[options valueForKey:@"convertCase"]];
|
|
214
215
|
if(options[@"logLevel"]) processParams.logLevel = options[@"logLevel"];
|
|
215
216
|
if(options[@"mrzDetectMode"]) processParams.mrzDetectMode = options[@"mrzDetectMode"];
|
|
217
|
+
if(options[@"pdfPagesLimit"]) processParams.pdfPagesLimit = options[@"pdfPagesLimit"];
|
|
216
218
|
|
|
217
219
|
// String
|
|
218
220
|
if([options valueForKey:@"dateFormat"] != nil)
|
|
@@ -311,6 +313,7 @@
|
|
|
311
313
|
result[@"selectLongestNames"] = processParams.selectLongestNames;
|
|
312
314
|
result[@"generateDTCVC"] = processParams.generateDTCVC;
|
|
313
315
|
result[@"strictDLCategoryExpiry"] = processParams.strictDLCategoryExpiry;
|
|
316
|
+
result[@"generateAlpha2Codes"] = processParams.generateAlpha2Codes;
|
|
314
317
|
|
|
315
318
|
// Int
|
|
316
319
|
result[@"measureSystem"] = [NSNumber numberWithInteger:processParams.measureSystem];
|
|
@@ -328,6 +331,7 @@
|
|
|
328
331
|
result[@"convertCase"] = [self generateWithTextProcessing:processParams.convertCase];
|
|
329
332
|
result[@"logLevel"] = processParams.logLevel;
|
|
330
333
|
result[@"mrzDetectMode"] = processParams.mrzDetectMode;
|
|
334
|
+
result[@"pdfPagesLimit"] = processParams.pdfPagesLimit;
|
|
331
335
|
|
|
332
336
|
// String
|
|
333
337
|
result[@"dateFormat"] = processParams.dateFormat;
|
|
@@ -440,6 +444,9 @@
|
|
|
440
444
|
customization.cameraFrameCornerRadius = [[options valueForKey:@"cameraFrameCornerRadius"] floatValue];
|
|
441
445
|
if([options valueForKey:@"livenessAnimationPositionMultiplier"] != nil)
|
|
442
446
|
customization.livenessAnimationPositionMultiplier = [[options valueForKey:@"livenessAnimationPositionMultiplier"] floatValue];
|
|
447
|
+
if(options[@"activityIndicatorPortraitPositionMultiplier"]) customization.activityIndicatorPortraitPositionMultiplier = [[options valueForKey:@"activityIndicatorPortraitPositionMultiplier"] floatValue];
|
|
448
|
+
if(options[@"activityIndicatorLandscapePositionMultiplier"]) customization.activityIndicatorLandscapePositionMultiplier = [[options valueForKey:@"activityIndicatorLandscapePositionMultiplier"] floatValue];
|
|
449
|
+
if(options[@"cameraPreviewVerticalPositionMultiplier"]) customization.previewLayerPositionMultiplier = [[options valueForKey:@"cameraPreviewVerticalPositionMultiplier"] floatValue];
|
|
443
450
|
|
|
444
451
|
// Drawable
|
|
445
452
|
if([options valueForKey:@"multipageAnimationFrontImage"] != nil)
|
|
@@ -547,6 +554,9 @@
|
|
|
547
554
|
result[@"cameraFramePortraitAspectRatio"] = [NSNumber numberWithFloat:customization.cameraFramePortraitAspectRatio];
|
|
548
555
|
result[@"cameraFrameCornerRadius"] = [NSNumber numberWithFloat:customization.cameraFrameCornerRadius];
|
|
549
556
|
result[@"livenessAnimationPositionMultiplier"] = [NSNumber numberWithFloat:customization.livenessAnimationPositionMultiplier];
|
|
557
|
+
result[@"activityIndicatorPortraitPositionMultiplier"] = [NSNumber numberWithFloat:customization.activityIndicatorPortraitPositionMultiplier];
|
|
558
|
+
result[@"activityIndicatorLandscapePositionMultiplier"] = [NSNumber numberWithFloat:customization.activityIndicatorLandscapePositionMultiplier];
|
|
559
|
+
result[@"cameraPreviewVerticalPositionMultiplier"] = [NSNumber numberWithFloat:customization.previewLayerPositionMultiplier];
|
|
550
560
|
|
|
551
561
|
// Drawable
|
|
552
562
|
result[@"multipageAnimationFrontImage"] = [RGLWJSONConstructor base64WithImage:customization.multipageAnimationFrontImage];
|
|
@@ -694,6 +704,10 @@
|
|
|
694
704
|
if([options valueForKey:@"eSignPINNewValue"] != nil)
|
|
695
705
|
rfidScenario.eSignPINNewValue = [options valueForKey:@"eSignPINNewValue"];
|
|
696
706
|
if(options[@"cardAccess"]) rfidScenario.cardAccess = options[@"cardAccess"];
|
|
707
|
+
if(options[@"mrzHash"]) rfidScenario.mrzHash = options[@"mrzHash"];
|
|
708
|
+
if(options[@"documentNumber"]) rfidScenario.documentNumber = options[@"documentNumber"];
|
|
709
|
+
if(options[@"dateOfBirth"]) rfidScenario.dateOfBirth = options[@"dateOfBirth"];
|
|
710
|
+
if(options[@"dateOfExpiry"]) rfidScenario.dateOfExpiry = options[@"dateOfExpiry"];
|
|
697
711
|
|
|
698
712
|
// DataGroup
|
|
699
713
|
if([options valueForKey:@"ePassportDataGroups"] != nil)
|
|
@@ -767,6 +781,10 @@
|
|
|
767
781
|
result[@"eSignPINDefault"] = rfidScenario.eSignPINDefault;
|
|
768
782
|
result[@"eSignPINNewValue"] = rfidScenario.eSignPINNewValue;
|
|
769
783
|
result[@"cardAccess"] = rfidScenario.cardAccess;
|
|
784
|
+
result[@"mrzHash"] = rfidScenario.mrzHash;
|
|
785
|
+
result[@"documentNumber"] = rfidScenario.documentNumber;
|
|
786
|
+
result[@"dateOfBirth"] = rfidScenario.dateOfBirth;
|
|
787
|
+
result[@"dateOfExpiry"] = rfidScenario.dateOfExpiry;
|
|
770
788
|
|
|
771
789
|
// DataGroup
|
|
772
790
|
result[@"eDLDataGroups"] = [self getDataGroups:rfidScenario.eDLDataGroups];
|
|
@@ -1015,6 +1033,7 @@
|
|
|
1015
1033
|
result.checkED = [input valueForKey:@"checkED"];
|
|
1016
1034
|
if(input[@"checkBlackAndWhiteCopy"]) result.checkBlackAndWhiteCopy = input[@"checkBlackAndWhiteCopy"];
|
|
1017
1035
|
if(input[@"checkDynaprint"]) result.checkDynaprint = input[@"checkDynaprint"];
|
|
1036
|
+
if(input[@"checkGeometry"]) result.checkGeometry = input[@"checkGeometry"];
|
|
1018
1037
|
}
|
|
1019
1038
|
|
|
1020
1039
|
+(NSDictionary*)getLivenessParams:(RGLLivenessParams*)input {
|
|
@@ -1027,6 +1046,7 @@
|
|
|
1027
1046
|
result[@"checkED"] = input.checkED;
|
|
1028
1047
|
result[@"checkBlackAndWhiteCopy"] = input.checkBlackAndWhiteCopy;
|
|
1029
1048
|
result[@"checkDynaprint"] = input.checkDynaprint;
|
|
1049
|
+
result[@"checkGeometry"] = input.checkGeometry;
|
|
1030
1050
|
|
|
1031
1051
|
return result;
|
|
1032
1052
|
}
|
package/www/DocumentReader.js
CHANGED
|
@@ -1314,6 +1314,7 @@ class LivenessParams {
|
|
|
1314
1314
|
result.checkED = jsonObject["checkED"]
|
|
1315
1315
|
result.checkBlackAndWhiteCopy = jsonObject["checkBlackAndWhiteCopy"]
|
|
1316
1316
|
result.checkDynaprint = jsonObject["checkDynaprint"]
|
|
1317
|
+
result.checkGeometry = jsonObject["checkGeometry"]
|
|
1317
1318
|
|
|
1318
1319
|
return result
|
|
1319
1320
|
}
|
|
@@ -1386,6 +1387,7 @@ class ProcessParams {
|
|
|
1386
1387
|
result.selectLongestNames = jsonObject["selectLongestNames"]
|
|
1387
1388
|
result.generateDTCVC = jsonObject["generateDTCVC"]
|
|
1388
1389
|
result.strictDLCategoryExpiry = jsonObject["strictDLCategoryExpiry"]
|
|
1390
|
+
result.generateAlpha2Codes = jsonObject["generateAlpha2Codes"]
|
|
1389
1391
|
result.barcodeParserType = jsonObject["barcodeParserType"]
|
|
1390
1392
|
result.perspectiveAngle = jsonObject["perspectiveAngle"]
|
|
1391
1393
|
result.minDPI = jsonObject["minDPI"]
|
|
@@ -1401,6 +1403,7 @@ class ProcessParams {
|
|
|
1401
1403
|
result.mrzDetectMode = jsonObject["mrzDetectMode"]
|
|
1402
1404
|
result.measureSystem = jsonObject["measureSystem"]
|
|
1403
1405
|
result.forceDocID = jsonObject["forceDocID"]
|
|
1406
|
+
result.pdfPagesLimit = jsonObject["pdfPagesLimit"]
|
|
1404
1407
|
result.dateFormat = jsonObject["dateFormat"]
|
|
1405
1408
|
result.scenario = jsonObject["scenario"]
|
|
1406
1409
|
result.captureButtonScenario = jsonObject["captureButtonScenario"]
|
|
@@ -1525,6 +1528,7 @@ class Customization {
|
|
|
1525
1528
|
result.cameraFrameShapeType = jsonObject["cameraFrameShapeType"]
|
|
1526
1529
|
result.status = jsonObject["status"]
|
|
1527
1530
|
result.resultStatus = jsonObject["resultStatus"]
|
|
1531
|
+
result.multipageButtonText = jsonObject["multipageButtonText"]
|
|
1528
1532
|
result.cameraFrameDefaultColor = jsonObject["cameraFrameDefaultColor"]
|
|
1529
1533
|
result.cameraFrameActiveColor = jsonObject["cameraFrameActiveColor"]
|
|
1530
1534
|
result.statusTextColor = jsonObject["statusTextColor"]
|
|
@@ -1536,6 +1540,7 @@ class Customization {
|
|
|
1536
1540
|
result.statusBackgroundColor = jsonObject["statusBackgroundColor"]
|
|
1537
1541
|
result.cameraPreviewBackgroundColor = jsonObject["cameraPreviewBackgroundColor"]
|
|
1538
1542
|
result.backgroundMaskColor = jsonObject["backgroundMaskColor"]
|
|
1543
|
+
result.multipageButtonTextColor = jsonObject["multipageButtonTextColor"]
|
|
1539
1544
|
result.statusPositionMultiplier = jsonObject["statusPositionMultiplier"]
|
|
1540
1545
|
result.resultStatusPositionMultiplier = jsonObject["resultStatusPositionMultiplier"]
|
|
1541
1546
|
result.toolbarSize = jsonObject["toolbarSize"]
|
|
@@ -1546,6 +1551,9 @@ class Customization {
|
|
|
1546
1551
|
result.cameraFrameLandscapeAspectRatio = jsonObject["cameraFrameLandscapeAspectRatio"]
|
|
1547
1552
|
result.cameraFramePortraitAspectRatio = jsonObject["cameraFramePortraitAspectRatio"]
|
|
1548
1553
|
result.cameraFrameCornerRadius = jsonObject["cameraFrameCornerRadius"]
|
|
1554
|
+
result.activityIndicatorPortraitPositionMultiplier = jsonObject["activityIndicatorPortraitPositionMultiplier"]
|
|
1555
|
+
result.activityIndicatorLandscapePositionMultiplier = jsonObject["activityIndicatorLandscapePositionMultiplier"]
|
|
1556
|
+
result.cameraPreviewVerticalPositionMultiplier = jsonObject["cameraPreviewVerticalPositionMultiplier"]
|
|
1549
1557
|
result.multipageAnimationFrontImage = jsonObject["multipageAnimationFrontImage"]
|
|
1550
1558
|
result.multipageAnimationBackImage = jsonObject["multipageAnimationBackImage"]
|
|
1551
1559
|
result.borderBackgroundImage = jsonObject["borderBackgroundImage"]
|
|
@@ -1560,6 +1568,7 @@ class Customization {
|
|
|
1560
1568
|
result.livenessAnimationImage = jsonObject["livenessAnimationImage"]
|
|
1561
1569
|
result.statusTextFont = Font.fromJson(jsonObject["statusTextFont"])
|
|
1562
1570
|
result.resultStatusTextFont = Font.fromJson(jsonObject["resultStatusTextFont"])
|
|
1571
|
+
result.multipageButtonTextFont = Font.fromJson(jsonObject["multipageButtonTextFont"])
|
|
1563
1572
|
result.customLabelStatus = jsonObject["customLabelStatus"]
|
|
1564
1573
|
result.cameraFrameLineCap = jsonObject["cameraFrameLineCap"]
|
|
1565
1574
|
result.uiCustomizationLayer = jsonObject["uiCustomizationLayer"]
|
|
@@ -1751,6 +1760,10 @@ class RFIDScenario {
|
|
|
1751
1760
|
result.eSignPINDefault = jsonObject["eSignPINDefault"]
|
|
1752
1761
|
result.eSignPINNewValue = jsonObject["eSignPINNewValue"]
|
|
1753
1762
|
result.cardAccess = jsonObject["cardAccess"]
|
|
1763
|
+
result.mrzHash = jsonObject["mrzHash"]
|
|
1764
|
+
result.documentNumber = jsonObject["documentNumber"]
|
|
1765
|
+
result.dateOfBirth = jsonObject["dateOfBirth"]
|
|
1766
|
+
result.dateOfExpiry = jsonObject["dateOfExpiry"]
|
|
1754
1767
|
result.eDLDataGroups = EDLDataGroups.fromJson(jsonObject["eDLDataGroups"])
|
|
1755
1768
|
result.ePassportDataGroups = EPassportDataGroups.fromJson(jsonObject["ePassportDataGroups"])
|
|
1756
1769
|
result.eIDDataGroups = EIDDataGroups.fromJson(jsonObject["eIDDataGroups"])
|
|
@@ -2290,6 +2303,7 @@ const ScenarioIdentifier = {
|
|
|
2290
2303
|
SCENARIO_CREDIT_CARD: "CreditCard",
|
|
2291
2304
|
SCENARIO_CAPTURE: "Capture",
|
|
2292
2305
|
SCENARIO_DTC: "DTC",
|
|
2306
|
+
SCENARIO_RFID: "RFID",
|
|
2293
2307
|
}
|
|
2294
2308
|
|
|
2295
2309
|
const eRFID_AccessControl_ProcedureType = {
|
|
@@ -2356,6 +2370,7 @@ const eRFID_Password_Type = {
|
|
|
2356
2370
|
PPT_PUK: 4,
|
|
2357
2371
|
PPT_PIN_ESIGN: 5,
|
|
2358
2372
|
PPT_SAI: 6,
|
|
2373
|
+
PPT_MRZ_HASH: 7,
|
|
2359
2374
|
}
|
|
2360
2375
|
|
|
2361
2376
|
const ViewContentMode = {
|
|
@@ -2842,6 +2857,8 @@ const eLDS_ParsingNotificationCodes = {
|
|
|
2842
2857
|
NTF_LDS_ICAO_CERTIFICATE_VISUAL_MRZ_COUNTRY_NON_MATCHING: 0x90000251,
|
|
2843
2858
|
NTF_LDS_MRZ_COUNTRYCODE_VISUALMRZ_NON_MATCHING: 0x00022019,
|
|
2844
2859
|
NTF_LDS_ICAO_CERTIFICATE_MRZ_COUNTRY_NON_MATCHING: 0x90000252,
|
|
2860
|
+
NTF_LDS_ICAO_CERTIFICATE_ISSUER_COUNTRY_NON_UPPER_CASE: 0x90000253,
|
|
2861
|
+
NTF_LDS_ICAO_CERTIFICATE_SUBJECT_COUNTRY_NON_UPPER_CASE: 0x90000254,
|
|
2845
2862
|
}
|
|
2846
2863
|
|
|
2847
2864
|
const eImageQualityCheckType = {
|
|
@@ -2945,6 +2962,8 @@ const eRPRM_SecurityFeatureType = {
|
|
|
2945
2962
|
SECURITY_FEATURE_TYPE_CONTACT_CHIP_CLASSIFICATION: 51,
|
|
2946
2963
|
SECURITY_FEATURE_TYPE_HEAD_POSITION_CHECK: 52,
|
|
2947
2964
|
SECURITY_FEATURE_TYPE_LIVENESS_BLACK_AND_WHITE_COPY_CHECK: 53,
|
|
2965
|
+
SECURITY_FEATURE_TYPE_LIVENESS_DYNAPRINT_CHECK: 54,
|
|
2966
|
+
SECURITY_FEATURE_TYPE_LIVENESS_GEOMETRY_CHECK: 55,
|
|
2948
2967
|
}
|
|
2949
2968
|
|
|
2950
2969
|
const OnlineMode = {
|
|
@@ -4041,6 +4060,9 @@ const eVisualFieldType = {
|
|
|
4041
4060
|
FT_EF_CARD_ACCESS: 692,
|
|
4042
4061
|
FT_SHORT_FLIGHT_NUMBER: 693,
|
|
4043
4062
|
FT_AIRLINE_CODE: 694,
|
|
4063
|
+
FT_MVC_AGENCY: 695,
|
|
4064
|
+
FT_ISSUING_STATE_CODE_ALPHA2: 696,
|
|
4065
|
+
FT_NATIONALITY_CODE_ALPHA2: 697,
|
|
4044
4066
|
}
|
|
4045
4067
|
|
|
4046
4068
|
const DocReaderOrientation = {
|