@regulaforensics/cordova-plugin-document-reader-api 8.1.129-nightly → 8.1.131-nightly
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/config.xml +1 -1
- package/example/package.json +2 -2
- package/package.json +1 -1
- package/plugin.xml +11 -8
- package/src/android/BluetoothUtil.kt +7 -16
- package/src/android/Config.kt +154 -120
- package/src/android/DocumentReader.kt +20 -487
- package/src/android/JSONConstructor.kt +1270 -1719
- package/src/android/Main.kt +553 -0
- package/src/android/Utils.kt +73 -160
- package/src/android/build.gradle +1 -1
- package/src/ios/RGLWConfig.h +0 -8
- package/src/ios/RGLWConfig.m +44 -52
- package/src/ios/RGLWDocumentReader.h +3 -27
- package/src/ios/RGLWDocumentReader.m +11 -716
- package/src/ios/RGLWJSONConstructor.h +1 -8
- package/src/ios/RGLWJSONConstructor.m +12 -10
- package/src/ios/RGLWMain.h +36 -0
- package/src/ios/RGLWMain.m +591 -0
package/src/ios/RGLWConfig.m
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
//
|
|
2
|
-
// RGLWConfig.m
|
|
3
|
-
// DocumentReader
|
|
4
|
-
//
|
|
5
|
-
// Created by Pavel Masiuk on 21.09.2023.
|
|
6
|
-
// Copyright © 2023 Regula. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
1
|
#import <Foundation/Foundation.h>
|
|
10
2
|
#import "RGLWConfig.h"
|
|
11
3
|
|
|
@@ -319,7 +311,7 @@
|
|
|
319
311
|
result[@"selectLongestNames"] = processParams.selectLongestNames;
|
|
320
312
|
result[@"generateDTCVC"] = processParams.generateDTCVC;
|
|
321
313
|
result[@"strictDLCategoryExpiry"] = processParams.strictDLCategoryExpiry;
|
|
322
|
-
|
|
314
|
+
|
|
323
315
|
// Int
|
|
324
316
|
result[@"measureSystem"] = [NSNumber numberWithInteger:processParams.measureSystem];
|
|
325
317
|
result[@"barcodeParserType"] = processParams.barcodeParserType;
|
|
@@ -336,19 +328,19 @@
|
|
|
336
328
|
result[@"convertCase"] = [self generateWithTextProcessing:processParams.convertCase];
|
|
337
329
|
result[@"logLevel"] = processParams.logLevel;
|
|
338
330
|
result[@"mrzDetectMode"] = processParams.mrzDetectMode;
|
|
339
|
-
|
|
331
|
+
|
|
340
332
|
// String
|
|
341
333
|
result[@"dateFormat"] = processParams.dateFormat;
|
|
342
334
|
result[@"scenario"] = processParams.scenario;
|
|
343
335
|
result[@"captureButtonScenario"] = processParams.captureButtonScenario;
|
|
344
|
-
|
|
336
|
+
|
|
345
337
|
// Double
|
|
346
338
|
result[@"timeout"] = processParams.timeout;
|
|
347
339
|
result[@"timeoutFromFirstDetect"] = processParams.timeoutFromFirstDetect;
|
|
348
340
|
result[@"timeoutFromFirstDocType"] = processParams.timeoutFromFirstDocType;
|
|
349
341
|
result[@"documentAreaMin"] = processParams.documentAreaMin;
|
|
350
342
|
result[@"timeoutLiveness"] = processParams.timeoutLiveness;
|
|
351
|
-
|
|
343
|
+
|
|
352
344
|
// JSONArray
|
|
353
345
|
result[@"documentIDList"] = processParams.documentIDList;
|
|
354
346
|
result[@"barcodeTypes"] = processParams.barcodeTypes;
|
|
@@ -358,17 +350,17 @@
|
|
|
358
350
|
result[@"lcidFilter"] = processParams.lcidFilter;
|
|
359
351
|
result[@"mrzFormatsFilter"] = processParams.mrzFormatsFilter;
|
|
360
352
|
result[@"resultTypeOutput"] = processParams.resultTypeOutput;
|
|
361
|
-
|
|
353
|
+
|
|
362
354
|
// JSONObject
|
|
363
355
|
result[@"imageQA"] = [self getImageQA:processParams.imageQA];
|
|
364
356
|
result[@"rfidParams"] = [RGLWJSONConstructor generateRFIDParams:processParams.rfidParams];
|
|
365
357
|
result[@"faceApiParams"] = [RGLWJSONConstructor generateFaceAPIParams:processParams.faceApiParams];
|
|
366
358
|
result[@"backendProcessingConfig"] = [RGLWJSONConstructor generateBackendProcessingConfig:processParams.backendProcessingConfig];
|
|
367
359
|
result[@"authenticityParams"] = [self getAuthenticityParams:processParams.authenticityParams];
|
|
368
|
-
|
|
360
|
+
|
|
369
361
|
// Custom
|
|
370
362
|
result[@"customParams"] = processParams.customParams;
|
|
371
|
-
|
|
363
|
+
|
|
372
364
|
return result;
|
|
373
365
|
}
|
|
374
366
|
|
|
@@ -384,7 +376,7 @@
|
|
|
384
376
|
customization.showNextPageAnimation = [[options valueForKey:@"showNextPageAnimation"] boolValue];
|
|
385
377
|
if([options valueForKey:@"showBackgroundMask"] != nil)
|
|
386
378
|
customization.showBackgroundMask = [[options valueForKey:@"showBackgroundMask"] boolValue];
|
|
387
|
-
|
|
379
|
+
|
|
388
380
|
// Int
|
|
389
381
|
if([options valueForKey:@"cameraFrameBorderWidth"] != nil)
|
|
390
382
|
customization.cameraFrameBorderWidth = [[options valueForKey:@"cameraFrameBorderWidth"] floatValue];
|
|
@@ -396,13 +388,13 @@
|
|
|
396
388
|
customization.cameraFrameOffsetWidth = [[options valueForKey:@"cameraFrameOffsetWidth"] floatValue];
|
|
397
389
|
if(options[@"nextPageAnimationStartDelay"]) customization.nextPageAnimationStartDelay = [options[@"nextPageAnimationStartDelay"] floatValue];
|
|
398
390
|
if(options[@"nextPageAnimationEndDelay"]) customization.nextPageAnimationEndDelay = [options[@"nextPageAnimationEndDelay"] floatValue];
|
|
399
|
-
|
|
391
|
+
|
|
400
392
|
// String
|
|
401
393
|
if([options valueForKey:@"status"] != nil)
|
|
402
394
|
customization.status = [options valueForKey:@"status"];
|
|
403
395
|
if([options valueForKey:@"resultStatus"] != nil)
|
|
404
396
|
customization.resultStatus = [options valueForKey:@"resultStatus"];
|
|
405
|
-
|
|
397
|
+
|
|
406
398
|
// Color
|
|
407
399
|
if([options valueForKey:@"cameraFrameDefaultColor"] != nil)
|
|
408
400
|
customization.cameraFrameDefaultColor = [self colorWithInt:[options valueForKey:@"cameraFrameDefaultColor"]];
|
|
@@ -426,7 +418,7 @@
|
|
|
426
418
|
customization.cameraPreviewBackgroundColor = [self colorWithInt:[options valueForKey:@"cameraPreviewBackgroundColor"]];
|
|
427
419
|
if([options valueForKey:@"backgroundMaskColor"] != nil)
|
|
428
420
|
customization.backgroundMaskColor = [self colorWithInt:[options valueForKey:@"backgroundMaskColor"]];
|
|
429
|
-
|
|
421
|
+
|
|
430
422
|
// Float
|
|
431
423
|
if([options valueForKey:@"statusPositionMultiplier"] != nil)
|
|
432
424
|
customization.statusPositionMultiplier = [[options valueForKey:@"statusPositionMultiplier"] floatValue];
|
|
@@ -448,7 +440,7 @@
|
|
|
448
440
|
customization.cameraFrameCornerRadius = [[options valueForKey:@"cameraFrameCornerRadius"] floatValue];
|
|
449
441
|
if([options valueForKey:@"livenessAnimationPositionMultiplier"] != nil)
|
|
450
442
|
customization.livenessAnimationPositionMultiplier = [[options valueForKey:@"livenessAnimationPositionMultiplier"] floatValue];
|
|
451
|
-
|
|
443
|
+
|
|
452
444
|
// Drawable
|
|
453
445
|
if([options valueForKey:@"multipageAnimationFrontImage"] != nil)
|
|
454
446
|
customization.multipageAnimationFrontImage = [RGLWJSONConstructor imageWithBase64:[options valueForKey:@"multipageAnimationFrontImage"]];
|
|
@@ -474,13 +466,13 @@
|
|
|
474
466
|
customization.torchButtonOffImage = [RGLWJSONConstructor imageWithBase64:[options valueForKey:@"torchButtonOffImage"]];
|
|
475
467
|
if([options valueForKey:@"livenessAnimationImage"] != nil)
|
|
476
468
|
customization.livenessAnimationImage = [RGLWJSONConstructor imageWithBase64:[options valueForKey:@"livenessAnimationImage"]];
|
|
477
|
-
|
|
469
|
+
|
|
478
470
|
// Font
|
|
479
471
|
if([options valueForKey:@"statusTextFont"] != nil)
|
|
480
472
|
customization.statusTextFont = [self UIFontFromJSON:[options valueForKey:@"statusTextFont"]];
|
|
481
473
|
if([options valueForKey:@"resultStatusTextFont"] != nil)
|
|
482
474
|
customization.resultStatusTextFont = [self UIFontFromJSON:[options valueForKey:@"resultStatusTextFont"]];
|
|
483
|
-
|
|
475
|
+
|
|
484
476
|
// Custom
|
|
485
477
|
if([options valueForKey:@"customLabelStatus"] != nil)
|
|
486
478
|
customization.customLabelStatus = [[NSAttributedString alloc]initWithString:[options valueForKey:@"customLabelStatus"]];
|
|
@@ -488,7 +480,7 @@
|
|
|
488
480
|
customization.cameraFrameLineCap = [self lineCapWithNumber:[options valueForKey:@"cameraFrameLineCap"]];
|
|
489
481
|
if([options valueForKey:@"uiCustomizationLayer"] != nil)
|
|
490
482
|
customization.customUILayerJSON = [options valueForKey:@"uiCustomizationLayer"];
|
|
491
|
-
|
|
483
|
+
|
|
492
484
|
// ContentMode
|
|
493
485
|
if([options valueForKey:@"helpAnimationImageContentMode"] != nil)
|
|
494
486
|
customization.helpAnimationImageContentMode = [self viewContentModeWithNumber:[options valueForKey:@"helpAnimationImageContentMode"]];
|
|
@@ -511,14 +503,14 @@
|
|
|
511
503
|
|
|
512
504
|
+(NSDictionary*)getCustomization:(RGLCustomization*)customization {
|
|
513
505
|
NSMutableDictionary *result = [NSMutableDictionary new];
|
|
514
|
-
|
|
506
|
+
|
|
515
507
|
// Boolean
|
|
516
508
|
result[@"showStatusMessages"] = [NSNumber numberWithBool:customization.showStatusMessages];
|
|
517
509
|
result[@"showResultStatusMessages"] = [NSNumber numberWithBool:customization.showResultStatusMessages];
|
|
518
510
|
result[@"showHelpAnimation"] = [NSNumber numberWithBool:customization.showHelpAnimation];
|
|
519
511
|
result[@"showNextPageAnimation"] = [NSNumber numberWithBool:customization.showNextPageAnimation];
|
|
520
512
|
result[@"showBackgroundMask"] = [NSNumber numberWithBool:customization.showBackgroundMask];
|
|
521
|
-
|
|
513
|
+
|
|
522
514
|
// Int
|
|
523
515
|
result[@"cameraFrameBorderWidth"] = [NSNumber numberWithFloat:customization.cameraFrameBorderWidth];
|
|
524
516
|
result[@"cameraFrameLineLength"] = [NSNumber numberWithFloat:customization.cameraFrameLineLength];
|
|
@@ -526,11 +518,11 @@
|
|
|
526
518
|
result[@"cameraFrameOffsetWidth"] = [NSNumber numberWithFloat:customization.cameraFrameOffsetWidth];
|
|
527
519
|
result[@"nextPageAnimationStartDelay"] = [NSNumber numberWithFloat:customization.nextPageAnimationStartDelay];
|
|
528
520
|
result[@"nextPageAnimationEndDelay"] = [NSNumber numberWithFloat:customization.nextPageAnimationEndDelay];
|
|
529
|
-
|
|
521
|
+
|
|
530
522
|
// String
|
|
531
523
|
result[@"status"] = customization.status;
|
|
532
524
|
result[@"resultStatus"] = customization.resultStatus;
|
|
533
|
-
|
|
525
|
+
|
|
534
526
|
// Color
|
|
535
527
|
result[@"cameraFrameDefaultColor"] = [self intWithColor:customization.cameraFrameDefaultColor];
|
|
536
528
|
result[@"cameraFrameActiveColor"] = [self intWithColor:customization.cameraFrameActiveColor];
|
|
@@ -543,7 +535,7 @@
|
|
|
543
535
|
result[@"statusBackgroundColor"] = [self intWithColor:customization.statusBackgroundColor];
|
|
544
536
|
result[@"cameraPreviewBackgroundColor"] = [self intWithColor:customization.cameraPreviewBackgroundColor];
|
|
545
537
|
result[@"backgroundMaskColor"] = [self intWithColor:customization.backgroundMaskColor];
|
|
546
|
-
|
|
538
|
+
|
|
547
539
|
// Float
|
|
548
540
|
result[@"statusPositionMultiplier"] = [NSNumber numberWithFloat:customization.statusPositionMultiplier];
|
|
549
541
|
result[@"resultStatusPositionMultiplier"] = [NSNumber numberWithFloat:customization.resultStatusPositionMultiplier];
|
|
@@ -555,7 +547,7 @@
|
|
|
555
547
|
result[@"cameraFramePortraitAspectRatio"] = [NSNumber numberWithFloat:customization.cameraFramePortraitAspectRatio];
|
|
556
548
|
result[@"cameraFrameCornerRadius"] = [NSNumber numberWithFloat:customization.cameraFrameCornerRadius];
|
|
557
549
|
result[@"livenessAnimationPositionMultiplier"] = [NSNumber numberWithFloat:customization.livenessAnimationPositionMultiplier];
|
|
558
|
-
|
|
550
|
+
|
|
559
551
|
// Drawable
|
|
560
552
|
result[@"multipageAnimationFrontImage"] = [RGLWJSONConstructor base64WithImage:customization.multipageAnimationFrontImage];
|
|
561
553
|
result[@"multipageAnimationBackImage"] = [RGLWJSONConstructor base64WithImage:customization.multipageAnimationBackImage];
|
|
@@ -569,27 +561,27 @@
|
|
|
569
561
|
result[@"torchButtonOnImage"] = [RGLWJSONConstructor base64WithImage:customization.torchButtonOnImage];
|
|
570
562
|
result[@"torchButtonOffImage"] = [RGLWJSONConstructor base64WithImage:customization.torchButtonOffImage];
|
|
571
563
|
result[@"livenessAnimationImage"] = [RGLWJSONConstructor base64WithImage:customization.livenessAnimationImage];
|
|
572
|
-
|
|
564
|
+
|
|
573
565
|
// Font
|
|
574
566
|
result[@"statusTextFont"] = [self generateUIFont:customization.statusTextFont];
|
|
575
567
|
result[@"resultStatusTextFont"] = [self generateUIFont:customization.resultStatusTextFont];
|
|
576
|
-
|
|
568
|
+
|
|
577
569
|
// Custom
|
|
578
570
|
if(customization.customLabelStatus != nil) result[@"customLabelStatus"] = customization.customLabelStatus.string;
|
|
579
571
|
result[@"cameraFrameLineCap"] = [self generateLineCap:customization.cameraFrameLineCap];
|
|
580
572
|
result[@"uiCustomizationLayer"] = customization.customUILayerJSON;
|
|
581
|
-
|
|
573
|
+
|
|
582
574
|
// ContentMode
|
|
583
575
|
result[@"helpAnimationImageContentMode"] = [self generateViewContentMode:customization.helpAnimationImageContentMode];
|
|
584
576
|
result[@"multipageAnimationFrontImageContentMode"] = [self generateViewContentMode:customization.multipageAnimationFrontImageContentMode];
|
|
585
577
|
result[@"multipageAnimationBackImageContentMode"] = [self generateViewContentMode:customization.multipageAnimationBackImageContentMode];
|
|
586
578
|
result[@"livenessAnimationImageContentMode"] = [self generateViewContentMode:customization.livenessAnimationImageContentMode];
|
|
587
579
|
result[@"borderBackgroundImageContentMode"] = [self generateViewContentMode:customization.borderBackgroundImageContentMode];
|
|
588
|
-
|
|
580
|
+
|
|
589
581
|
result[@"colors"] = [self getColors: [customization.uiConfiguration valueForKey:@"colors"]];
|
|
590
582
|
result[@"fonts"] = [self getFonts: [customization.uiConfiguration valueForKey:@"fonts"]];
|
|
591
583
|
result[@"images"] = [self getImages: [customization.uiConfiguration valueForKey:@"images"]];
|
|
592
|
-
|
|
584
|
+
|
|
593
585
|
return result;
|
|
594
586
|
}
|
|
595
587
|
|
|
@@ -667,7 +659,7 @@
|
|
|
667
659
|
if(options[@"mrzStrictCheck"]) rfidScenario.mrzStrictCheck = options[@"mrzStrictCheck"];
|
|
668
660
|
if(options[@"loadCRLFromRemote"]) rfidScenario.loadCRLFromRemote = [options[@"loadCRLFromRemote"] boolValue];
|
|
669
661
|
if(options[@"independentSODStatus"]) rfidScenario.independentSODStatus = options[@"independentSODStatus"];
|
|
670
|
-
|
|
662
|
+
|
|
671
663
|
// Int
|
|
672
664
|
if([options valueForKey:@"signManagementAction"] != nil)
|
|
673
665
|
rfidScenario.signManagementAction = [[options valueForKey:@"signManagementAction"] integerValue];
|
|
@@ -687,7 +679,7 @@
|
|
|
687
679
|
rfidScenario.terminalType = [[options valueForKey:@"terminalType"] integerValue];
|
|
688
680
|
if([options valueForKey:@"defaultReadingBufferSize"] != nil)
|
|
689
681
|
rfidScenario.defaultReadingBufferSize = [[options valueForKey:@"defaultReadingBufferSize"] intValue];
|
|
690
|
-
|
|
682
|
+
|
|
691
683
|
// String
|
|
692
684
|
if([options valueForKey:@"password"] != nil)
|
|
693
685
|
rfidScenario.password = [options valueForKey:@"password"];
|
|
@@ -702,7 +694,7 @@
|
|
|
702
694
|
if([options valueForKey:@"eSignPINNewValue"] != nil)
|
|
703
695
|
rfidScenario.eSignPINNewValue = [options valueForKey:@"eSignPINNewValue"];
|
|
704
696
|
if(options[@"cardAccess"]) rfidScenario.cardAccess = options[@"cardAccess"];
|
|
705
|
-
|
|
697
|
+
|
|
706
698
|
// DataGroup
|
|
707
699
|
if([options valueForKey:@"ePassportDataGroups"] != nil)
|
|
708
700
|
[self setDataGroups :rfidScenario.ePassportDataGroups dict:[options valueForKey:@"ePassportDataGroups"]];
|
|
@@ -715,7 +707,7 @@
|
|
|
715
707
|
|
|
716
708
|
+(NSDictionary*)getRfidScenario:(RGLRFIDScenario*)rfidScenario {
|
|
717
709
|
NSMutableDictionary *result = [NSMutableDictionary new];
|
|
718
|
-
|
|
710
|
+
|
|
719
711
|
// Boolean
|
|
720
712
|
result[@"paceStaticBinding"] = [NSNumber numberWithBool:rfidScenario.paceStaticBinding];
|
|
721
713
|
result[@"onlineTA"] = [NSNumber numberWithBool:rfidScenario.onlineTA];
|
|
@@ -755,7 +747,7 @@
|
|
|
755
747
|
result[@"mrzStrictCheck"] = rfidScenario.mrzStrictCheck;
|
|
756
748
|
result[@"loadCRLFromRemote"] = @(rfidScenario.loadCRLFromRemote);
|
|
757
749
|
result[@"independentSODStatus"] = rfidScenario.independentSODStatus;
|
|
758
|
-
|
|
750
|
+
|
|
759
751
|
// Int
|
|
760
752
|
result[@"signManagementAction"] = [NSNumber numberWithInteger:rfidScenario.signManagementAction];
|
|
761
753
|
result[@"readingBuffer"] = [NSNumber numberWithInteger:rfidScenario.readingBuffer];
|
|
@@ -766,7 +758,7 @@
|
|
|
766
758
|
result[@"pacePasswordType"] = [NSNumber numberWithInteger:rfidScenario.pacePasswordType];
|
|
767
759
|
result[@"terminalType"] = [NSNumber numberWithInteger:rfidScenario.terminalType];
|
|
768
760
|
result[@"defaultReadingBufferSize"] = [NSNumber numberWithInteger:rfidScenario.defaultReadingBufferSize];
|
|
769
|
-
|
|
761
|
+
|
|
770
762
|
// String
|
|
771
763
|
result[@"password"] = rfidScenario.password;
|
|
772
764
|
result[@"pkdPA"] = rfidScenario.pkdPA;
|
|
@@ -775,18 +767,18 @@
|
|
|
775
767
|
result[@"eSignPINDefault"] = rfidScenario.eSignPINDefault;
|
|
776
768
|
result[@"eSignPINNewValue"] = rfidScenario.eSignPINNewValue;
|
|
777
769
|
result[@"cardAccess"] = rfidScenario.cardAccess;
|
|
778
|
-
|
|
770
|
+
|
|
779
771
|
// DataGroup
|
|
780
772
|
result[@"eDLDataGroups"] = [self getDataGroups:rfidScenario.eDLDataGroups];
|
|
781
773
|
result[@"ePassportDataGroups"] = [self getDataGroups:rfidScenario.ePassportDataGroups];
|
|
782
774
|
result[@"eIDDataGroups"] = [self getDataGroups:rfidScenario.eIDDataGroups];
|
|
783
775
|
result[@"dtcDataGroups"] = [self getDTCDataGroup:rfidScenario.DTCDataGroups];
|
|
784
|
-
|
|
776
|
+
|
|
785
777
|
return result;
|
|
786
778
|
}
|
|
787
779
|
|
|
788
780
|
+(void)setDataGroups:(RGLDataGroup*)dataGroup dict:(NSDictionary*)dict {
|
|
789
|
-
|
|
781
|
+
|
|
790
782
|
// EDLDataGroups/Common: 1-14
|
|
791
783
|
if([dict valueForKey:@"DG1"] != nil)
|
|
792
784
|
dataGroup.dG1 = [[dict valueForKey:@"DG1"] boolValue];
|
|
@@ -816,7 +808,7 @@
|
|
|
816
808
|
dataGroup.dG13 = [[dict valueForKey:@"DG13"] boolValue];
|
|
817
809
|
if([dict valueForKey:@"DG14"] != nil)
|
|
818
810
|
dataGroup.dG14 = [[dict valueForKey:@"DG14"] boolValue];
|
|
819
|
-
|
|
811
|
+
|
|
820
812
|
// EPassportDataGroups: 1-16
|
|
821
813
|
if ([dataGroup class] == [RGLePassportDataGroup class]) {
|
|
822
814
|
if([dict valueForKey:@"DG15"] != nil)
|
|
@@ -824,7 +816,7 @@
|
|
|
824
816
|
if([dict valueForKey:@"DG16"] != nil)
|
|
825
817
|
((RGLePassportDataGroup*)dataGroup).dG16 = [[dict valueForKey:@"DG16"] boolValue];
|
|
826
818
|
}
|
|
827
|
-
|
|
819
|
+
|
|
828
820
|
// EIDDataGroups: 1-21
|
|
829
821
|
if ([dataGroup class] == [RGLeIDDataGroup class]) {
|
|
830
822
|
if([dict valueForKey:@"DG15"] != nil)
|
|
@@ -846,7 +838,7 @@
|
|
|
846
838
|
|
|
847
839
|
+(NSDictionary *)getDataGroups:(RGLDataGroup*)dataGroup {
|
|
848
840
|
NSMutableDictionary *result = [NSMutableDictionary new];
|
|
849
|
-
|
|
841
|
+
|
|
850
842
|
// EDLDataGroups/Common: 1-14
|
|
851
843
|
result[@"DG1"] = [NSNumber numberWithBool:dataGroup.dG1];
|
|
852
844
|
result[@"DG2"] = [NSNumber numberWithBool:dataGroup.dG2];
|
|
@@ -862,13 +854,13 @@
|
|
|
862
854
|
result[@"DG12"] = [NSNumber numberWithBool:dataGroup.dG12];
|
|
863
855
|
result[@"DG13"] = [NSNumber numberWithBool:dataGroup.dG13];
|
|
864
856
|
result[@"DG14"] = [NSNumber numberWithBool:dataGroup.dG14];
|
|
865
|
-
|
|
857
|
+
|
|
866
858
|
// EPassportDataGroups: 1-16
|
|
867
859
|
if ([dataGroup class] == [RGLePassportDataGroup class]) {
|
|
868
860
|
result[@"DG15"] = [NSNumber numberWithBool:((RGLePassportDataGroup*)dataGroup).dG15];
|
|
869
861
|
result[@"DG16"] = [NSNumber numberWithBool:((RGLePassportDataGroup*)dataGroup).dG16];
|
|
870
862
|
}
|
|
871
|
-
|
|
863
|
+
|
|
872
864
|
// EIDDataGroups: 1-21
|
|
873
865
|
if ([dataGroup class] == [RGLeIDDataGroup class]) {
|
|
874
866
|
result[@"DG15"] = [NSNumber numberWithBool:((RGLeIDDataGroup*)dataGroup).dG15];
|
|
@@ -879,7 +871,7 @@
|
|
|
879
871
|
result[@"DG20"] = [NSNumber numberWithBool:((RGLeIDDataGroup*)dataGroup).dG20];
|
|
880
872
|
result[@"DG21"] = [NSNumber numberWithBool:((RGLeIDDataGroup*)dataGroup).dG21];
|
|
881
873
|
}
|
|
882
|
-
|
|
874
|
+
|
|
883
875
|
return result;
|
|
884
876
|
}
|
|
885
877
|
|
|
@@ -893,13 +885,13 @@
|
|
|
893
885
|
|
|
894
886
|
+(NSDictionary *)getDTCDataGroup:(RGLDTCDataGroup*)dataGroup {
|
|
895
887
|
NSMutableDictionary *result = [NSMutableDictionary new];
|
|
896
|
-
|
|
888
|
+
|
|
897
889
|
result[@"DG17"] = @(dataGroup.dG17);
|
|
898
890
|
result[@"DG18"] = @(dataGroup.dG18);
|
|
899
891
|
result[@"DG22"] = @(dataGroup.dG22);
|
|
900
892
|
result[@"DG23"] = @(dataGroup.dG23);
|
|
901
893
|
result[@"DG24"] = @(dataGroup.dG24);
|
|
902
|
-
|
|
894
|
+
|
|
903
895
|
return result;
|
|
904
896
|
}
|
|
905
897
|
|
|
@@ -932,7 +924,7 @@
|
|
|
932
924
|
|
|
933
925
|
+(NSDictionary*)getImageQA:(RGLImageQA*)input {
|
|
934
926
|
NSMutableDictionary *result = [NSMutableDictionary new];
|
|
935
|
-
|
|
927
|
+
|
|
936
928
|
result[@"dpiThreshold"] = input.dpiThreshold;
|
|
937
929
|
result[@"angleThreshold"] = input.angleThreshold;
|
|
938
930
|
result[@"focusCheck"] = input.focusCheck;
|
|
@@ -1,31 +1,7 @@
|
|
|
1
1
|
#import <Cordova/CDVPlugin.h>
|
|
2
2
|
#import <Foundation/Foundation.h>
|
|
3
|
-
#import "
|
|
4
|
-
|
|
5
|
-
#import <CoreBluetooth/CoreBluetooth.h>
|
|
6
|
-
#import <DocumentReader/DocumentReader.h>
|
|
7
|
-
|
|
8
|
-
@class DocReader;
|
|
9
|
-
|
|
10
|
-
typedef void (^RGLWCallback)(id _Nullable response);
|
|
11
|
-
typedef void (^RGLWEventSender)(NSString* _Nullable event, id _Nullable data);
|
|
12
|
-
typedef void (^RGLWRFIDSignatureCallback)(NSData * _Nonnull signature);
|
|
13
|
-
|
|
14
|
-
@interface RGLWDocumentReader : CDVPlugin<RGLRecordScanningProcessDelegate,
|
|
15
|
-
RGLDocReaderRFIDDelegate,
|
|
16
|
-
RGLCustomizationActionDelegate,
|
|
17
|
-
RGLDocReaderDatabaseFetchDelegate,
|
|
18
|
-
RGLBluetoothDelegate,
|
|
19
|
-
CBCentralManagerDelegate>
|
|
20
|
-
|
|
21
|
-
@property (class) CDVInvokedUrlCommand* _Nullable command;
|
|
22
|
-
@property NSNumber* _Nonnull doRequestPACertificates;
|
|
23
|
-
@property NSNumber* _Nonnull doRequestTACertificates;
|
|
24
|
-
@property NSNumber* _Nonnull doRequestTASignature;
|
|
3
|
+
#import "RGLWMain.h"
|
|
4
|
+
@import UIKit;
|
|
25
5
|
|
|
6
|
+
@interface RGLWDocumentReader : CDVPlugin
|
|
26
7
|
@end
|
|
27
|
-
|
|
28
|
-
NSString* _Nonnull RGLWCompletionEvent;
|
|
29
|
-
NSString* _Nonnull RGLWDatabaseProgressEvent;
|
|
30
|
-
NSString* _Nonnull RGLWVideoEncoderCompletionEvent;
|
|
31
|
-
NSString* _Nonnull RGLWOnCustomButtonTappedEvent;
|