@regulaforensics/react-native-document-reader-api 7.6.35-beta → 7.6.41-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/RNDocumentReaderApi.podspec +2 -2
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/regula/documentreader/BluetoothUtil.kt +3 -3
- package/android/src/main/java/com/regula/documentreader/Config.kt +32 -23
- package/android/src/main/java/com/regula/documentreader/JSONConstructor.kt +7 -4
- package/android/src/main/java/com/regula/documentreader/RNRegulaDocumentReaderModule.kt +2 -2
- package/example/ios/DocumentReader.xcodeproj/project.pbxproj +4 -4
- package/example/package.json +1 -1
- package/index.d.ts +19 -39
- package/index.js +11 -20
- package/ios/RGLWConfig.h +2 -0
- package/ios/RGLWConfig.m +31 -24
- package/ios/RGLWJSONConstructor.h +2 -2
- package/ios/RGLWJSONConstructor.m +17 -11
- package/package.json +1 -1
|
@@ -12,8 +12,8 @@ Pod::Spec.new do |s|
|
|
|
12
12
|
s.homepage = 'https://regulaforensics.com'
|
|
13
13
|
|
|
14
14
|
s.source = { :http => 'file:' + __dir__ }
|
|
15
|
-
s.ios.deployment_target = '
|
|
15
|
+
s.ios.deployment_target = '13.0'
|
|
16
16
|
s.source_files = "ios/*.{h,m}"
|
|
17
|
-
s.dependency '
|
|
17
|
+
s.dependency 'DocumentReaderBeta', '7.6.4384'
|
|
18
18
|
s.dependency 'React'
|
|
19
19
|
end
|
package/android/build.gradle
CHANGED
|
@@ -32,7 +32,7 @@ android {
|
|
|
32
32
|
rootProject.allprojects {
|
|
33
33
|
repositories {
|
|
34
34
|
maven {
|
|
35
|
-
url "https://maven.regulaforensics.com/RegulaDocumentReader"
|
|
35
|
+
url "https://maven.regulaforensics.com/RegulaDocumentReader/Beta"
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -41,7 +41,7 @@ dependencies {
|
|
|
41
41
|
//noinspection GradleDynamicVersion
|
|
42
42
|
implementation 'com.facebook.react:react-native:+'
|
|
43
43
|
//noinspection GradleDependency
|
|
44
|
-
implementation('com.regula.documentreader:api:7.
|
|
44
|
+
implementation('com.regula.documentreader:api:7.6.10624') {
|
|
45
45
|
transitive = true
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -23,9 +23,9 @@ import android.os.Build
|
|
|
23
23
|
import android.os.IBinder
|
|
24
24
|
import android.provider.Settings
|
|
25
25
|
import androidx.core.content.ContextCompat.checkSelfPermission
|
|
26
|
-
import com.regula.
|
|
27
|
-
import com.regula.
|
|
28
|
-
import com.regula.
|
|
26
|
+
import com.regula.common.ble.BLEWrapper
|
|
27
|
+
import com.regula.common.ble.BleWrapperCallback
|
|
28
|
+
import com.regula.common.ble.RegulaBleService
|
|
29
29
|
import com.regula.documentreader.api.internal.permission.BluetoothPermissionHelper.BLE_ACCESS_PERMISSION
|
|
30
30
|
import com.regula.documentreader.api.internal.permission.BluetoothSettingsHelper.isBluetoothEnabled
|
|
31
31
|
import com.regula.documentreader.api.internal.permission.BluetoothSettingsHelper.isLocationServiceEnabled
|
|
@@ -55,6 +55,7 @@ fun setFunctionality(functionality: Functionality, opts: JSONObject) = opts.forE
|
|
|
55
55
|
"isCameraTorchCheckDisabled" -> editor.setIsCameraTorchCheckDisabled(v as Boolean)
|
|
56
56
|
"recordScanningProcess" -> editor.setDoRecordProcessingVideo(v as Boolean)
|
|
57
57
|
"manualMultipageMode" -> editor.setManualMultipageMode(v as Boolean)
|
|
58
|
+
"torchTurnedOn" -> editor.setTorchTurnedOn(v as Boolean)
|
|
58
59
|
"showCaptureButtonDelayFromDetect" -> editor.setShowCaptureButtonDelayFromDetect(v.toLong())
|
|
59
60
|
"showCaptureButtonDelayFromStart" -> editor.setShowCaptureButtonDelayFromStart(v.toLong())
|
|
60
61
|
"orientation" -> editor.setOrientation(v.toInt())
|
|
@@ -88,6 +89,7 @@ fun getFunctionality(functionality: Functionality) = mapOf(
|
|
|
88
89
|
"isCameraTorchCheckDisabled" to functionality.isCameraTorchCheckDisabled,
|
|
89
90
|
"recordScanningProcess" to functionality.doRecordProcessingVideo(),
|
|
90
91
|
"manualMultipageMode" to functionality.isManualMultipageMode,
|
|
92
|
+
"torchTurnedOn" to functionality.isTorchTurnedOn,
|
|
91
93
|
"showCaptureButtonDelayFromDetect" to functionality.showCaptureButtonDelayFromDetect,
|
|
92
94
|
"showCaptureButtonDelayFromStart" to functionality.showCaptureButtonDelayFromStart,
|
|
93
95
|
"orientation" to functionality.orientation,
|
|
@@ -160,7 +162,6 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
|
|
|
160
162
|
"dateFormat" -> processParams.dateFormat = v as String
|
|
161
163
|
"scenario" -> processParams.scenario = v as String
|
|
162
164
|
"captureButtonScenario" -> processParams.captureButtonScenario = v as String
|
|
163
|
-
"sessionLogFolder" -> processParams.sessionLogFolder = v as String
|
|
164
165
|
"timeout" -> processParams.timeout = v.toDouble()
|
|
165
166
|
"timeoutFromFirstDetect" -> processParams.timeoutFromFirstDetect = v.toDouble()
|
|
166
167
|
"timeoutFromFirstDocType" -> processParams.timeoutFromFirstDocType = v.toDouble()
|
|
@@ -242,7 +243,6 @@ fun getProcessParams(processParams: ProcessParam) = mapOf(
|
|
|
242
243
|
"dateFormat" to processParams.dateFormat,
|
|
243
244
|
"scenario" to processParams.scenario,
|
|
244
245
|
"captureButtonScenario" to processParams.captureButtonScenario,
|
|
245
|
-
"sessionLogFolder" to processParams.sessionLogFolder,
|
|
246
246
|
"timeout" to processParams.timeout,
|
|
247
247
|
"timeoutFromFirstDetect" to processParams.timeoutFromFirstDetect,
|
|
248
248
|
"timeoutFromFirstDocType" to processParams.timeoutFromFirstDocType,
|
|
@@ -441,6 +441,7 @@ fun setRfidScenario(rfidScenario: RfidScenario, opts: JSONObject) = opts.forEach
|
|
|
441
441
|
"proceedReadingAlways" -> rfidScenario.proceedReadingAlways = v as Boolean
|
|
442
442
|
"readDTC" -> rfidScenario.isReadDTC = v as Boolean
|
|
443
443
|
"mrzStrictCheck" -> rfidScenario.isMrzStrictCheck = v as Boolean
|
|
444
|
+
"loadCRLFromRemote" -> rfidScenario.isLoadCRLFromRemote = v as Boolean
|
|
444
445
|
"signManagementAction" -> rfidScenario.signManagementAction = v.toInt()
|
|
445
446
|
"readingBuffer" -> rfidScenario.readingBuffer = v.toInt()
|
|
446
447
|
"onlineTAToSignDataType" -> rfidScenario.onlineTAToSignDataType = v.toInt()
|
|
@@ -460,7 +461,7 @@ fun setRfidScenario(rfidScenario: RfidScenario, opts: JSONObject) = opts.forEach
|
|
|
460
461
|
"ePassportDataGroups" -> setDataGroups(rfidScenario.ePassportDataGroups(), v as JSONObject)
|
|
461
462
|
"eIDDataGroups" -> setDataGroups(rfidScenario.eIDDataGroups(), v as JSONObject)
|
|
462
463
|
"eDLDataGroups" -> setDataGroups(rfidScenario.eDLDataGroups(), v as JSONObject)
|
|
463
|
-
"dtcDataGroups" ->
|
|
464
|
+
"dtcDataGroups" -> setDTCDataGroup(rfidScenario.DTCDataGroup(), v as JSONObject)
|
|
464
465
|
}
|
|
465
466
|
}
|
|
466
467
|
|
|
@@ -501,6 +502,7 @@ fun getRfidScenario(rfidScenario: RfidScenario) = mapOf(
|
|
|
501
502
|
"proceedReadingAlways" to rfidScenario.proceedReadingAlways,
|
|
502
503
|
"readDTC" to rfidScenario.isReadDTC,
|
|
503
504
|
"mrzStrictCheck" to rfidScenario.isMrzStrictCheck,
|
|
505
|
+
"loadCRLFromRemote" to rfidScenario.isLoadCRLFromRemote,
|
|
504
506
|
"signManagementAction" to rfidScenario.signManagementAction,
|
|
505
507
|
"readingBuffer" to rfidScenario.readingBuffer,
|
|
506
508
|
"onlineTAToSignDataType" to rfidScenario.onlineTAToSignDataType,
|
|
@@ -520,7 +522,7 @@ fun getRfidScenario(rfidScenario: RfidScenario) = mapOf(
|
|
|
520
522
|
"ePassportDataGroups" to getDataGroups(rfidScenario.ePassportDataGroups()),
|
|
521
523
|
"eIDDataGroups" to getDataGroups(rfidScenario.eIDDataGroups()),
|
|
522
524
|
"eDLDataGroups" to getDataGroups(rfidScenario.eDLDataGroups()),
|
|
523
|
-
"dtcDataGroups" to
|
|
525
|
+
"dtcDataGroups" to getDTCDataGroup(rfidScenario.DTCDataGroup())
|
|
524
526
|
).toJsonObject()
|
|
525
527
|
|
|
526
528
|
fun setDataGroups(dataGroup: DataGroups, opts: JSONObject) = opts.forEach { k, v ->
|
|
@@ -554,15 +556,6 @@ fun setDataGroups(dataGroup: DataGroups, opts: JSONObject) = opts.forEach { k, v
|
|
|
554
556
|
"DG20" -> dataGroup.isDG20 = value
|
|
555
557
|
"DG21" -> dataGroup.isDG21 = value
|
|
556
558
|
}
|
|
557
|
-
if (dataGroup is DTCDataGroup) when (k) {
|
|
558
|
-
"DG15" -> dataGroup.isDG15 = value
|
|
559
|
-
"DG16" -> dataGroup.isDG16 = value
|
|
560
|
-
"DG17" -> dataGroup.isDG17 = value
|
|
561
|
-
"DG18" -> dataGroup.isDG18 = value
|
|
562
|
-
"DG22" -> dataGroup.isDG22 = value
|
|
563
|
-
"DG23" -> dataGroup.isDG23 = value
|
|
564
|
-
"DG24" -> dataGroup.isDG24 = value
|
|
565
|
-
}
|
|
566
559
|
}
|
|
567
560
|
|
|
568
561
|
fun getDataGroups(dataGroup: DataGroups): JSONObject {
|
|
@@ -595,18 +588,28 @@ fun getDataGroups(dataGroup: DataGroups): JSONObject {
|
|
|
595
588
|
result["DG20"] = dataGroup.isDG20
|
|
596
589
|
result["DG21"] = dataGroup.isDG21
|
|
597
590
|
}
|
|
598
|
-
if (dataGroup is DTCDataGroup) {
|
|
599
|
-
result["DG15"] = dataGroup.isDG15
|
|
600
|
-
result["DG16"] = dataGroup.isDG16
|
|
601
|
-
result["DG17"] = dataGroup.isDG17
|
|
602
|
-
result["DG18"] = dataGroup.isDG18
|
|
603
|
-
result["DG22"] = dataGroup.isDG22
|
|
604
|
-
result["DG23"] = dataGroup.isDG23
|
|
605
|
-
result["DG24"] = dataGroup.isDG24
|
|
606
|
-
}
|
|
607
591
|
return result.toJsonObject()
|
|
608
592
|
}
|
|
609
593
|
|
|
594
|
+
fun setDTCDataGroup(dataGroup: DTCDataGroup, opts: JSONObject) = opts.forEach { k, v ->
|
|
595
|
+
val value = v as Boolean
|
|
596
|
+
when (k) {
|
|
597
|
+
"DG17" -> dataGroup.isDG17 = value
|
|
598
|
+
"DG18" -> dataGroup.isDG18 = value
|
|
599
|
+
"DG22" -> dataGroup.isDG22 = value
|
|
600
|
+
"DG23" -> dataGroup.isDG23 = value
|
|
601
|
+
"DG24" -> dataGroup.isDG24 = value
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
fun getDTCDataGroup(dataGroup: DTCDataGroup) = mapOf(
|
|
606
|
+
"DG17" to dataGroup.isDG17,
|
|
607
|
+
"DG18" to dataGroup.isDG18,
|
|
608
|
+
"DG22" to dataGroup.isDG22,
|
|
609
|
+
"DG23" to dataGroup.isDG23,
|
|
610
|
+
"DG24" to dataGroup.isDG24,
|
|
611
|
+
).toJsonObject()
|
|
612
|
+
|
|
610
613
|
fun setImageQA(input: ImageQA, opts: JSONObject) = opts.forEach { k, v ->
|
|
611
614
|
when (k) {
|
|
612
615
|
"focusCheck" -> input.focusCheck = v as Boolean
|
|
@@ -651,6 +654,7 @@ fun setAuthenticityParams(input: AuthenticityParams, opts: JSONObject) = opts.fo
|
|
|
651
654
|
"checkPhotoEmbedding" -> input.checkPhotoEmbedding = v as Boolean
|
|
652
655
|
"checkPhotoComparison" -> input.checkPhotoComparison = v as Boolean
|
|
653
656
|
"checkLetterScreen" -> input.checkLetterScreen = v as Boolean
|
|
657
|
+
"checkSecurityText" -> input.checkSecurityText = v as Boolean
|
|
654
658
|
"livenessParams" -> {
|
|
655
659
|
if (input.livenessParams == null) input.livenessParams = LivenessParams.defaultParams()
|
|
656
660
|
setLivenessParams(input.livenessParams!!, v as JSONObject)
|
|
@@ -674,6 +678,7 @@ fun getAuthenticityParams(input: AuthenticityParams?) = input?.let {
|
|
|
674
678
|
"checkPhotoEmbedding" to it.checkPhotoEmbedding,
|
|
675
679
|
"checkPhotoComparison" to it.checkPhotoComparison,
|
|
676
680
|
"checkLetterScreen" to it.checkLetterScreen,
|
|
681
|
+
"checkSecurityText" to it.checkSecurityText,
|
|
677
682
|
"livenessParams" to getLivenessParams(it.livenessParams)
|
|
678
683
|
).toJsonObject()
|
|
679
684
|
}
|
|
@@ -684,6 +689,8 @@ fun setLivenessParams(input: LivenessParams, opts: JSONObject) = opts.forEach {
|
|
|
684
689
|
"checkMLI" -> input.checkMLI = v as Boolean
|
|
685
690
|
"checkHolo" -> input.checkHolo = v as Boolean
|
|
686
691
|
"checkED" -> input.checkED = v as Boolean
|
|
692
|
+
"checkBlackAndWhiteCopy" -> input.checkBlackAndWhiteCopy = v as Boolean
|
|
693
|
+
"checkDynaprint" -> input.checkDynaprint = v as Boolean
|
|
687
694
|
}
|
|
688
695
|
}
|
|
689
696
|
|
|
@@ -692,7 +699,9 @@ fun getLivenessParams(input: LivenessParams?) = input?.let {
|
|
|
692
699
|
"checkOVI" to input.checkOVI,
|
|
693
700
|
"checkMLI" to input.checkMLI,
|
|
694
701
|
"checkHolo" to input.checkHolo,
|
|
695
|
-
"checkED" to input.checkED
|
|
702
|
+
"checkED" to input.checkED,
|
|
703
|
+
"checkBlackAndWhiteCopy" to input.checkBlackAndWhiteCopy,
|
|
704
|
+
"checkDynaprint" to input.checkDynaprint,
|
|
696
705
|
).toJsonObject()
|
|
697
706
|
}
|
|
698
707
|
|
|
@@ -178,6 +178,7 @@ fun transactionInfoFromJSON(temp: JSONObject?): TransactionInfo? {
|
|
|
178
178
|
|
|
179
179
|
if (input.has("transactionId")) result.transactionId = input.getString("transactionId")
|
|
180
180
|
if (input.has("tag")) result.tag = input.getString("tag")
|
|
181
|
+
if (input.has("sessionLogFolder")) result.sessionLogFolder = input.getString("sessionLogFolder")
|
|
181
182
|
|
|
182
183
|
return result
|
|
183
184
|
}
|
|
@@ -189,6 +190,7 @@ fun generateTransactionInfo(temp: TransactionInfo?): JSONObject? {
|
|
|
189
190
|
|
|
190
191
|
result.put("transactionId", input.transactionId)
|
|
191
192
|
result.put("tag", input.tag)
|
|
193
|
+
result.put("sessionLogFolder", input.sessionLogFolder)
|
|
192
194
|
|
|
193
195
|
return result
|
|
194
196
|
}
|
|
@@ -532,13 +534,13 @@ fun eIDDataGroupsFromJSON(input: JSONObject): EIDDataGroups {
|
|
|
532
534
|
|
|
533
535
|
fun generateEIDDataGroups(input: EIDDataGroups): JSONObject = getDataGroups(input)
|
|
534
536
|
|
|
535
|
-
fun
|
|
537
|
+
fun dtcDataGroupFromJSON(input: JSONObject): DTCDataGroup {
|
|
536
538
|
val result = DTCDataGroup()
|
|
537
|
-
|
|
539
|
+
setDTCDataGroup(result, input)
|
|
538
540
|
return result
|
|
539
541
|
}
|
|
540
542
|
|
|
541
|
-
fun
|
|
543
|
+
fun generateDTCDataGroup(input: DTCDataGroup): JSONObject = getDTCDataGroup(input)
|
|
542
544
|
|
|
543
545
|
fun rfidScenarioFromJSON(input: JSONObject): RfidScenario {
|
|
544
546
|
val result = RfidScenario()
|
|
@@ -1721,6 +1723,7 @@ fun generateDocumentReaderAuthenticityResult(temp: DocumentReaderAuthenticityRes
|
|
|
1721
1723
|
temp ?: return null
|
|
1722
1724
|
val input: DocumentReaderAuthenticityResult = temp
|
|
1723
1725
|
|
|
1726
|
+
@Suppress("DEPRECATION")
|
|
1724
1727
|
result.put("status", input.status)
|
|
1725
1728
|
result.put("checks", generateList(input.checks, ::generateDocumentReaderAuthenticityCheck, context))
|
|
1726
1729
|
|
|
@@ -2189,7 +2192,7 @@ fun documentReaderResultsFromJSON(temp: JSONObject?): DocumentReaderResults? {
|
|
|
2189
2192
|
result.status = documentReaderResultsStatusFromJSON(input.optJSONObject("status"))!!
|
|
2190
2193
|
result.vdsncData = vdsncDataFromJSON(input.optJSONObject("vdsncData")!!)
|
|
2191
2194
|
result.dtcData = input.getString("dtcData")
|
|
2192
|
-
result.transactionInfo = transactionInfoFromJSON(input.optJSONObject("transactionInfo"))
|
|
2195
|
+
result.transactionInfo = transactionInfoFromJSON(input.optJSONObject("transactionInfo"))!!
|
|
2193
2196
|
|
|
2194
2197
|
return result
|
|
2195
2198
|
}
|
|
@@ -524,9 +524,9 @@ fun startForegroundDispatch() {
|
|
|
524
524
|
filters[0]!!.addAction(NfcAdapter.ACTION_TECH_DISCOVERED)
|
|
525
525
|
filters[0]!!.addCategory(Intent.CATEGORY_DEFAULT)
|
|
526
526
|
val techList = arrayOf(arrayOf("android.nfc.tech.IsoDep"))
|
|
527
|
-
val intent = Intent(
|
|
527
|
+
val intent = Intent(activity, activity.javaClass)
|
|
528
528
|
val flag = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) PendingIntent.FLAG_MUTABLE else 0
|
|
529
|
-
val pendingIntent = PendingIntent.getActivity(
|
|
529
|
+
val pendingIntent = PendingIntent.getActivity(activity, 0, intent, flag)
|
|
530
530
|
|
|
531
531
|
if (lifecycle.currentState.isAtLeast(Lifecycle.State.RESUMED))
|
|
532
532
|
enableForegroundDispatch(pendingIntent, filters, techList)
|
|
@@ -448,7 +448,7 @@
|
|
|
448
448
|
"$(inherited)",
|
|
449
449
|
);
|
|
450
450
|
INFOPLIST_FILE = DocumentReaderTests/Info.plist;
|
|
451
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
451
|
+
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
|
|
452
452
|
LD_RUNPATH_SEARCH_PATHS = (
|
|
453
453
|
"$(inherited)",
|
|
454
454
|
"@executable_path/Frameworks",
|
|
@@ -477,7 +477,7 @@
|
|
|
477
477
|
BUNDLE_LOADER = "$(TEST_HOST)";
|
|
478
478
|
COPY_PHASE_STRIP = NO;
|
|
479
479
|
INFOPLIST_FILE = DocumentReaderTests/Info.plist;
|
|
480
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
480
|
+
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
|
|
481
481
|
LD_RUNPATH_SEARCH_PATHS = (
|
|
482
482
|
"$(inherited)",
|
|
483
483
|
"@executable_path/Frameworks",
|
|
@@ -612,7 +612,7 @@
|
|
|
612
612
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
613
613
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
614
614
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
615
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
615
|
+
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
|
|
616
616
|
LD_RUNPATH_SEARCH_PATHS = (
|
|
617
617
|
/usr/lib/swift,
|
|
618
618
|
"$(inherited)",
|
|
@@ -678,7 +678,7 @@
|
|
|
678
678
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
679
679
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
680
680
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
681
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
681
|
+
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
|
|
682
682
|
LD_RUNPATH_SEARCH_PATHS = (
|
|
683
683
|
/usr/lib/swift,
|
|
684
684
|
"$(inherited)",
|
package/example/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"test": "jest"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@regulaforensics/react-native-document-reader-api": "7.6.
|
|
13
|
+
"@regulaforensics/react-native-document-reader-api": "7.6.41-beta",
|
|
14
14
|
"@regulaforensics/react-native-document-reader-core-fullauthrfid": "7.5.893",
|
|
15
15
|
"react-native-progress": "5.0.0",
|
|
16
16
|
"react-native-radio-buttons-group": "3.0.5",
|
package/index.d.ts
CHANGED
|
@@ -1625,6 +1625,7 @@ export class DocReaderVersion {
|
|
|
1625
1625
|
export class TransactionInfo {
|
|
1626
1626
|
transactionId?: string
|
|
1627
1627
|
tag?: string
|
|
1628
|
+
sessionLogFolder?: string
|
|
1628
1629
|
|
|
1629
1630
|
static fromJson(jsonObject?: any): TransactionInfo | undefined {
|
|
1630
1631
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
@@ -1632,6 +1633,7 @@ export class TransactionInfo {
|
|
|
1632
1633
|
|
|
1633
1634
|
result.transactionId = jsonObject["transactionId"]
|
|
1634
1635
|
result.tag = jsonObject["tag"]
|
|
1636
|
+
result.sessionLogFolder = jsonObject["sessionLogFolder"]
|
|
1635
1637
|
|
|
1636
1638
|
return result
|
|
1637
1639
|
}
|
|
@@ -1823,6 +1825,7 @@ export class Functionality {
|
|
|
1823
1825
|
recordScanningProcess?: boolean
|
|
1824
1826
|
manualMultipageMode?: boolean
|
|
1825
1827
|
singleResult?: boolean
|
|
1828
|
+
torchTurnedOn?: boolean
|
|
1826
1829
|
showCaptureButtonDelayFromDetect?: number
|
|
1827
1830
|
showCaptureButtonDelayFromStart?: number
|
|
1828
1831
|
rfidTimeout?: number
|
|
@@ -1859,6 +1862,7 @@ export class Functionality {
|
|
|
1859
1862
|
result.recordScanningProcess = jsonObject["recordScanningProcess"]
|
|
1860
1863
|
result.manualMultipageMode = jsonObject["manualMultipageMode"]
|
|
1861
1864
|
result.singleResult = jsonObject["singleResult"]
|
|
1865
|
+
result.torchTurnedOn = jsonObject["torchTurnedOn"]
|
|
1862
1866
|
result.showCaptureButtonDelayFromDetect = jsonObject["showCaptureButtonDelayFromDetect"]
|
|
1863
1867
|
result.showCaptureButtonDelayFromStart = jsonObject["showCaptureButtonDelayFromStart"]
|
|
1864
1868
|
result.rfidTimeout = jsonObject["rfidTimeout"]
|
|
@@ -2026,6 +2030,8 @@ export class LivenessParams {
|
|
|
2026
2030
|
checkMLI?: boolean
|
|
2027
2031
|
checkHolo?: boolean
|
|
2028
2032
|
checkED?: boolean
|
|
2033
|
+
checkBlackAndWhiteCopy?: boolean
|
|
2034
|
+
checkDynaprint?: boolean
|
|
2029
2035
|
|
|
2030
2036
|
static fromJson(jsonObject?: any): LivenessParams | undefined {
|
|
2031
2037
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
@@ -2035,6 +2041,8 @@ export class LivenessParams {
|
|
|
2035
2041
|
result.checkMLI = jsonObject["checkMLI"]
|
|
2036
2042
|
result.checkHolo = jsonObject["checkHolo"]
|
|
2037
2043
|
result.checkED = jsonObject["checkED"]
|
|
2044
|
+
result.checkBlackAndWhiteCopy = jsonObject["checkBlackAndWhiteCopy"]
|
|
2045
|
+
result.checkDynaprint = jsonObject["checkDynaprint"]
|
|
2038
2046
|
|
|
2039
2047
|
return result
|
|
2040
2048
|
}
|
|
@@ -2056,6 +2064,7 @@ export class AuthenticityParams {
|
|
|
2056
2064
|
checkPhotoEmbedding?: boolean
|
|
2057
2065
|
checkPhotoComparison?: boolean
|
|
2058
2066
|
checkLetterScreen?: boolean
|
|
2067
|
+
checkSecurityText?: boolean
|
|
2059
2068
|
|
|
2060
2069
|
static fromJson(jsonObject?: any): AuthenticityParams | undefined {
|
|
2061
2070
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
@@ -2076,6 +2085,7 @@ export class AuthenticityParams {
|
|
|
2076
2085
|
result.checkPhotoEmbedding = jsonObject["checkPhotoEmbedding"]
|
|
2077
2086
|
result.checkPhotoComparison = jsonObject["checkPhotoComparison"]
|
|
2078
2087
|
result.checkLetterScreen = jsonObject["checkLetterScreen"]
|
|
2088
|
+
result.checkSecurityText = jsonObject["checkSecurityText"]
|
|
2079
2089
|
|
|
2080
2090
|
return result
|
|
2081
2091
|
}
|
|
@@ -2135,7 +2145,6 @@ export class ProcessParams {
|
|
|
2135
2145
|
dateFormat?: string
|
|
2136
2146
|
scenario?: string
|
|
2137
2147
|
captureButtonScenario?: string
|
|
2138
|
-
sessionLogFolder?: string
|
|
2139
2148
|
timeout?: number
|
|
2140
2149
|
timeoutFromFirstDetect?: number
|
|
2141
2150
|
timeoutFromFirstDocType?: number
|
|
@@ -2213,7 +2222,6 @@ export class ProcessParams {
|
|
|
2213
2222
|
result.dateFormat = jsonObject["dateFormat"]
|
|
2214
2223
|
result.scenario = jsonObject["scenario"]
|
|
2215
2224
|
result.captureButtonScenario = jsonObject["captureButtonScenario"]
|
|
2216
|
-
result.sessionLogFolder = jsonObject["sessionLogFolder"]
|
|
2217
2225
|
result.timeout = jsonObject["timeout"]
|
|
2218
2226
|
result.timeoutFromFirstDetect = jsonObject["timeoutFromFirstDetect"]
|
|
2219
2227
|
result.timeoutFromFirstDocType = jsonObject["timeoutFromFirstDocType"]
|
|
@@ -2651,49 +2659,17 @@ export class EIDDataGroups {
|
|
|
2651
2659
|
}
|
|
2652
2660
|
}
|
|
2653
2661
|
|
|
2654
|
-
export class
|
|
2655
|
-
DG1?: boolean
|
|
2656
|
-
DG2?: boolean
|
|
2657
|
-
DG3?: boolean
|
|
2658
|
-
DG4?: boolean
|
|
2659
|
-
DG5?: boolean
|
|
2660
|
-
DG6?: boolean
|
|
2661
|
-
DG7?: boolean
|
|
2662
|
-
DG8?: boolean
|
|
2663
|
-
DG9?: boolean
|
|
2664
|
-
DG10?: boolean
|
|
2665
|
-
DG11?: boolean
|
|
2666
|
-
DG12?: boolean
|
|
2667
|
-
DG13?: boolean
|
|
2668
|
-
DG14?: boolean
|
|
2669
|
-
DG15?: boolean
|
|
2670
|
-
DG16?: boolean
|
|
2662
|
+
export class DTCDataGroup {
|
|
2671
2663
|
DG17?: boolean
|
|
2672
2664
|
DG18?: boolean
|
|
2673
2665
|
DG22?: boolean
|
|
2674
2666
|
DG23?: boolean
|
|
2675
2667
|
DG24?: boolean
|
|
2676
2668
|
|
|
2677
|
-
static fromJson(jsonObject?: any):
|
|
2669
|
+
static fromJson(jsonObject?: any): DTCDataGroup | undefined {
|
|
2678
2670
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
2679
|
-
const result = new
|
|
2671
|
+
const result = new DTCDataGroup
|
|
2680
2672
|
|
|
2681
|
-
result.DG1 = jsonObject["DG1"]
|
|
2682
|
-
result.DG2 = jsonObject["DG2"]
|
|
2683
|
-
result.DG3 = jsonObject["DG3"]
|
|
2684
|
-
result.DG4 = jsonObject["DG4"]
|
|
2685
|
-
result.DG5 = jsonObject["DG5"]
|
|
2686
|
-
result.DG6 = jsonObject["DG6"]
|
|
2687
|
-
result.DG7 = jsonObject["DG7"]
|
|
2688
|
-
result.DG8 = jsonObject["DG8"]
|
|
2689
|
-
result.DG9 = jsonObject["DG9"]
|
|
2690
|
-
result.DG10 = jsonObject["DG10"]
|
|
2691
|
-
result.DG11 = jsonObject["DG11"]
|
|
2692
|
-
result.DG12 = jsonObject["DG12"]
|
|
2693
|
-
result.DG13 = jsonObject["DG13"]
|
|
2694
|
-
result.DG14 = jsonObject["DG14"]
|
|
2695
|
-
result.DG15 = jsonObject["DG15"]
|
|
2696
|
-
result.DG16 = jsonObject["DG16"]
|
|
2697
2673
|
result.DG17 = jsonObject["DG17"]
|
|
2698
2674
|
result.DG18 = jsonObject["DG18"]
|
|
2699
2675
|
result.DG22 = jsonObject["DG22"]
|
|
@@ -2741,6 +2717,7 @@ export class RFIDScenario {
|
|
|
2741
2717
|
proceedReadingAlways?: boolean
|
|
2742
2718
|
readDTC?: boolean
|
|
2743
2719
|
mrzStrictCheck?: boolean
|
|
2720
|
+
loadCRLFromRemote?: boolean
|
|
2744
2721
|
readingBuffer?: number
|
|
2745
2722
|
onlineTAToSignDataType?: number
|
|
2746
2723
|
defaultReadingBufferSize?: number
|
|
@@ -2760,7 +2737,7 @@ export class RFIDScenario {
|
|
|
2760
2737
|
eDLDataGroups?: EDLDataGroups
|
|
2761
2738
|
ePassportDataGroups?: EPassportDataGroups
|
|
2762
2739
|
eIDDataGroups?: EIDDataGroups
|
|
2763
|
-
dtcDataGroups?:
|
|
2740
|
+
dtcDataGroups?: DTCDataGroup
|
|
2764
2741
|
|
|
2765
2742
|
static fromJson(jsonObject?: any): RFIDScenario | undefined {
|
|
2766
2743
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
@@ -2802,6 +2779,7 @@ export class RFIDScenario {
|
|
|
2802
2779
|
result.proceedReadingAlways = jsonObject["proceedReadingAlways"]
|
|
2803
2780
|
result.readDTC = jsonObject["readDTC"]
|
|
2804
2781
|
result.mrzStrictCheck = jsonObject["mrzStrictCheck"]
|
|
2782
|
+
result.loadCRLFromRemote = jsonObject["loadCRLFromRemote"]
|
|
2805
2783
|
result.readingBuffer = jsonObject["readingBuffer"]
|
|
2806
2784
|
result.onlineTAToSignDataType = jsonObject["onlineTAToSignDataType"]
|
|
2807
2785
|
result.defaultReadingBufferSize = jsonObject["defaultReadingBufferSize"]
|
|
@@ -2821,7 +2799,7 @@ export class RFIDScenario {
|
|
|
2821
2799
|
result.eDLDataGroups = EDLDataGroups.fromJson(jsonObject["eDLDataGroups"])
|
|
2822
2800
|
result.ePassportDataGroups = EPassportDataGroups.fromJson(jsonObject["ePassportDataGroups"])
|
|
2823
2801
|
result.eIDDataGroups = EIDDataGroups.fromJson(jsonObject["eIDDataGroups"])
|
|
2824
|
-
result.dtcDataGroups =
|
|
2802
|
+
result.dtcDataGroups = DTCDataGroup.fromJson(jsonObject["dtcDataGroups"])
|
|
2825
2803
|
|
|
2826
2804
|
return result
|
|
2827
2805
|
}
|
|
@@ -3446,6 +3424,7 @@ export const ViewContentMode = {
|
|
|
3446
3424
|
|
|
3447
3425
|
export const BarcodeResult = {
|
|
3448
3426
|
NO_ERR: 0,
|
|
3427
|
+
INVALID_RESULT: 140,
|
|
3449
3428
|
NULL_PTR_ERR: -6001,
|
|
3450
3429
|
BAD_ARG_ERR: -6002,
|
|
3451
3430
|
SIZE_ERR: -6003,
|
|
@@ -3614,6 +3593,7 @@ export const eCheckDiagnose = {
|
|
|
3614
3593
|
OCR_QUALITY_INVALID_FONT: 221,
|
|
3615
3594
|
OCR_QUALITY_INVALID_BACKGROUND: 222,
|
|
3616
3595
|
LAS_INK_INVALID_LINES_FREQUENCY: 230,
|
|
3596
|
+
DOC_LIVENESS_DOCUMENT_NOT_LIVE: 238,
|
|
3617
3597
|
CHD_DOC_LIVENESS_BLACK_AND_WHITE_COPY_DETECTED: 239,
|
|
3618
3598
|
DOC_LIVENESS_ELECTRONIC_DEVICE_DETECTED: 240,
|
|
3619
3599
|
DOC_LIVENESS_INVALID_BARCODE_BACKGROUND: 241,
|
package/index.js
CHANGED
|
@@ -1098,6 +1098,7 @@ export class TransactionInfo {
|
|
|
1098
1098
|
|
|
1099
1099
|
result.transactionId = jsonObject["transactionId"]
|
|
1100
1100
|
result.tag = jsonObject["tag"]
|
|
1101
|
+
result.sessionLogFolder = jsonObject["sessionLogFolder"]
|
|
1101
1102
|
|
|
1102
1103
|
return result
|
|
1103
1104
|
}
|
|
@@ -1255,6 +1256,7 @@ export class Functionality {
|
|
|
1255
1256
|
result.recordScanningProcess = jsonObject["recordScanningProcess"]
|
|
1256
1257
|
result.manualMultipageMode = jsonObject["manualMultipageMode"]
|
|
1257
1258
|
result.singleResult = jsonObject["singleResult"]
|
|
1259
|
+
result.torchTurnedOn = jsonObject["torchTurnedOn"]
|
|
1258
1260
|
result.showCaptureButtonDelayFromDetect = jsonObject["showCaptureButtonDelayFromDetect"]
|
|
1259
1261
|
result.showCaptureButtonDelayFromStart = jsonObject["showCaptureButtonDelayFromStart"]
|
|
1260
1262
|
result.rfidTimeout = jsonObject["rfidTimeout"]
|
|
@@ -1384,6 +1386,8 @@ export class LivenessParams {
|
|
|
1384
1386
|
result.checkMLI = jsonObject["checkMLI"]
|
|
1385
1387
|
result.checkHolo = jsonObject["checkHolo"]
|
|
1386
1388
|
result.checkED = jsonObject["checkED"]
|
|
1389
|
+
result.checkBlackAndWhiteCopy = jsonObject["checkBlackAndWhiteCopy"]
|
|
1390
|
+
result.checkDynaprint = jsonObject["checkDynaprint"]
|
|
1387
1391
|
|
|
1388
1392
|
return result
|
|
1389
1393
|
}
|
|
@@ -1409,6 +1413,7 @@ export class AuthenticityParams {
|
|
|
1409
1413
|
result.checkPhotoEmbedding = jsonObject["checkPhotoEmbedding"]
|
|
1410
1414
|
result.checkPhotoComparison = jsonObject["checkPhotoComparison"]
|
|
1411
1415
|
result.checkLetterScreen = jsonObject["checkLetterScreen"]
|
|
1416
|
+
result.checkSecurityText = jsonObject["checkSecurityText"]
|
|
1412
1417
|
|
|
1413
1418
|
return result
|
|
1414
1419
|
}
|
|
@@ -1472,7 +1477,6 @@ export class ProcessParams {
|
|
|
1472
1477
|
result.dateFormat = jsonObject["dateFormat"]
|
|
1473
1478
|
result.scenario = jsonObject["scenario"]
|
|
1474
1479
|
result.captureButtonScenario = jsonObject["captureButtonScenario"]
|
|
1475
|
-
result.sessionLogFolder = jsonObject["sessionLogFolder"]
|
|
1476
1480
|
result.timeout = jsonObject["timeout"]
|
|
1477
1481
|
result.timeoutFromFirstDetect = jsonObject["timeoutFromFirstDetect"]
|
|
1478
1482
|
result.timeoutFromFirstDocType = jsonObject["timeoutFromFirstDocType"]
|
|
@@ -1746,27 +1750,11 @@ export class EIDDataGroups {
|
|
|
1746
1750
|
}
|
|
1747
1751
|
}
|
|
1748
1752
|
|
|
1749
|
-
export class
|
|
1753
|
+
export class DTCDataGroup {
|
|
1750
1754
|
static fromJson(jsonObject) {
|
|
1751
1755
|
if (jsonObject == null) return null
|
|
1752
|
-
const result = new
|
|
1756
|
+
const result = new DTCDataGroup()
|
|
1753
1757
|
|
|
1754
|
-
result.DG1 = jsonObject["DG1"]
|
|
1755
|
-
result.DG2 = jsonObject["DG2"]
|
|
1756
|
-
result.DG3 = jsonObject["DG3"]
|
|
1757
|
-
result.DG4 = jsonObject["DG4"]
|
|
1758
|
-
result.DG5 = jsonObject["DG5"]
|
|
1759
|
-
result.DG6 = jsonObject["DG6"]
|
|
1760
|
-
result.DG7 = jsonObject["DG7"]
|
|
1761
|
-
result.DG8 = jsonObject["DG8"]
|
|
1762
|
-
result.DG9 = jsonObject["DG9"]
|
|
1763
|
-
result.DG10 = jsonObject["DG10"]
|
|
1764
|
-
result.DG11 = jsonObject["DG11"]
|
|
1765
|
-
result.DG12 = jsonObject["DG12"]
|
|
1766
|
-
result.DG13 = jsonObject["DG13"]
|
|
1767
|
-
result.DG14 = jsonObject["DG14"]
|
|
1768
|
-
result.DG15 = jsonObject["DG15"]
|
|
1769
|
-
result.DG16 = jsonObject["DG16"]
|
|
1770
1758
|
result.DG17 = jsonObject["DG17"]
|
|
1771
1759
|
result.DG18 = jsonObject["DG18"]
|
|
1772
1760
|
result.DG22 = jsonObject["DG22"]
|
|
@@ -1818,6 +1806,7 @@ export class RFIDScenario {
|
|
|
1818
1806
|
result.proceedReadingAlways = jsonObject["proceedReadingAlways"]
|
|
1819
1807
|
result.readDTC = jsonObject["readDTC"]
|
|
1820
1808
|
result.mrzStrictCheck = jsonObject["mrzStrictCheck"]
|
|
1809
|
+
result.loadCRLFromRemote = jsonObject["loadCRLFromRemote"]
|
|
1821
1810
|
result.readingBuffer = jsonObject["readingBuffer"]
|
|
1822
1811
|
result.onlineTAToSignDataType = jsonObject["onlineTAToSignDataType"]
|
|
1823
1812
|
result.defaultReadingBufferSize = jsonObject["defaultReadingBufferSize"]
|
|
@@ -1837,7 +1826,7 @@ export class RFIDScenario {
|
|
|
1837
1826
|
result.eDLDataGroups = EDLDataGroups.fromJson(jsonObject["eDLDataGroups"])
|
|
1838
1827
|
result.ePassportDataGroups = EPassportDataGroups.fromJson(jsonObject["ePassportDataGroups"])
|
|
1839
1828
|
result.eIDDataGroups = EIDDataGroups.fromJson(jsonObject["eIDDataGroups"])
|
|
1840
|
-
result.dtcDataGroups =
|
|
1829
|
+
result.dtcDataGroups = DTCDataGroup.fromJson(jsonObject["dtcDataGroups"])
|
|
1841
1830
|
|
|
1842
1831
|
return result
|
|
1843
1832
|
}
|
|
@@ -2460,6 +2449,7 @@ export const ViewContentMode = {
|
|
|
2460
2449
|
|
|
2461
2450
|
export const BarcodeResult = {
|
|
2462
2451
|
NO_ERR: 0,
|
|
2452
|
+
INVALID_RESULT: 140,
|
|
2463
2453
|
NULL_PTR_ERR: -6001,
|
|
2464
2454
|
BAD_ARG_ERR: -6002,
|
|
2465
2455
|
SIZE_ERR: -6003,
|
|
@@ -2628,6 +2618,7 @@ export const eCheckDiagnose = {
|
|
|
2628
2618
|
OCR_QUALITY_INVALID_FONT: 221,
|
|
2629
2619
|
OCR_QUALITY_INVALID_BACKGROUND: 222,
|
|
2630
2620
|
LAS_INK_INVALID_LINES_FREQUENCY: 230,
|
|
2621
|
+
DOC_LIVENESS_DOCUMENT_NOT_LIVE: 238,
|
|
2631
2622
|
CHD_DOC_LIVENESS_BLACK_AND_WHITE_COPY_DETECTED: 239,
|
|
2632
2623
|
DOC_LIVENESS_ELECTRONIC_DEVICE_DETECTED: 240,
|
|
2633
2624
|
DOC_LIVENESS_INVALID_BARCODE_BACKGROUND: 241,
|
package/ios/RGLWConfig.h
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
+(void)setCustomization:(NSDictionary*)options :(RGLCustomization*)customization;
|
|
24
24
|
+(void)setRfidScenario:(NSDictionary*)options :(RGLRFIDScenario*)rfidScenario;
|
|
25
25
|
+(void)setDataGroups:(RGLDataGroup*)dataGroup dict:(NSDictionary*)dict;
|
|
26
|
+
+(void)setDTCDataGroup:(RGLDTCDataGroup*)dataGroup dict:(NSDictionary*)dict;
|
|
26
27
|
+(void)setImageQA:(RGLImageQA*)result input:(NSDictionary*)input;
|
|
27
28
|
+(void)setAuthenticityParams:(RGLAuthenticityParams*)result input:(NSDictionary*)input;
|
|
28
29
|
+(void)setLivenessParams:(RGLLivenessParams*)result input:(NSDictionary*)input;
|
|
@@ -32,6 +33,7 @@
|
|
|
32
33
|
+(NSDictionary*)getCustomization:(RGLCustomization*)customization;
|
|
33
34
|
+(NSDictionary*)getRfidScenario:(RGLRFIDScenario*)rfidScenario;
|
|
34
35
|
+(NSDictionary*)getDataGroups:(RGLDataGroup*)dataGroup;
|
|
36
|
+
+(NSDictionary*)getDTCDataGroup:(RGLDTCDataGroup*)dataGroup;
|
|
35
37
|
+(NSDictionary*)getImageQA:(RGLImageQA*)input;
|
|
36
38
|
+(NSDictionary*)getAuthenticityParams:(RGLAuthenticityParams*)input;
|
|
37
39
|
+(NSDictionary*)getLivenessParams:(RGLLivenessParams*)input;
|
package/ios/RGLWConfig.m
CHANGED
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
functionality.manualMultipageMode = [[options valueForKey:@"manualMultipageMode"] boolValue];
|
|
42
42
|
if([options valueForKey:@"singleResult"] != nil)
|
|
43
43
|
functionality.singleResult = [[options valueForKey:@"singleResult"] boolValue];
|
|
44
|
+
if(options[@"torchTurnedOn"]) functionality.torchTurnedOn = [options[@"torchTurnedOn"] boolValue];
|
|
44
45
|
|
|
45
46
|
// Int
|
|
46
47
|
if([options valueForKey:@"showCaptureButtonDelayFromDetect"] != nil)
|
|
@@ -94,6 +95,7 @@
|
|
|
94
95
|
result[@"recordScanningProcess"] = [NSNumber numberWithBool:functionality.recordScanningProcess];
|
|
95
96
|
result[@"manualMultipageMode"] = [NSNumber numberWithBool:functionality.manualMultipageMode];
|
|
96
97
|
result[@"singleResult"] = [NSNumber numberWithBool:functionality.singleResult];
|
|
98
|
+
result[@"torchTurnedOn"] = @(functionality.torchTurnedOn);
|
|
97
99
|
|
|
98
100
|
// Int
|
|
99
101
|
result[@"showCaptureButtonDelayFromDetect"] = [NSNumber numberWithDouble:functionality.showCaptureButtonDelayFromDetect];
|
|
@@ -337,7 +339,6 @@
|
|
|
337
339
|
result[@"dateFormat"] = processParams.dateFormat;
|
|
338
340
|
result[@"scenario"] = processParams.scenario;
|
|
339
341
|
result[@"captureButtonScenario"] = processParams.captureButtonScenario;
|
|
340
|
-
result[@"sessionLogFolder"] = processParams.sessionLogFolder;
|
|
341
342
|
|
|
342
343
|
// Double
|
|
343
344
|
result[@"timeout"] = processParams.timeout;
|
|
@@ -662,6 +663,7 @@
|
|
|
662
663
|
rfidScenario.proceedReadingAlways = [[options valueForKey:@"proceedReadingAlways"] boolValue];
|
|
663
664
|
if(options[@"readDTC"]) rfidScenario.readDTC = [options[@"readDTC"] boolValue];
|
|
664
665
|
if(options[@"mrzStrictCheck"]) rfidScenario.mrzStrictCheck = options[@"mrzStrictCheck"];
|
|
666
|
+
if(options[@"loadCRLFromRemote"]) rfidScenario.loadCRLFromRemote = options[@"loadCRLFromRemote"];
|
|
665
667
|
|
|
666
668
|
// Int
|
|
667
669
|
if([options valueForKey:@"signManagementAction"] != nil)
|
|
@@ -705,7 +707,7 @@
|
|
|
705
707
|
[self setDataGroups :rfidScenario.eIDDataGroups dict:[options valueForKey:@"eIDDataGroups"]];
|
|
706
708
|
if([options valueForKey:@"eDLDataGroups"] != nil)
|
|
707
709
|
[self setDataGroups :rfidScenario.eDLDataGroups dict:[options valueForKey:@"eDLDataGroups"]];
|
|
708
|
-
if(options[@"dtcDataGroups"]) [self
|
|
710
|
+
if(options[@"dtcDataGroups"]) [self setDTCDataGroup :rfidScenario.DTCDataGroups dict:options[@"dtcDataGroups"]];
|
|
709
711
|
}
|
|
710
712
|
|
|
711
713
|
+(NSDictionary*)getRfidScenario:(RGLRFIDScenario*)rfidScenario {
|
|
@@ -748,6 +750,7 @@
|
|
|
748
750
|
result[@"proceedReadingAlways"] = [NSNumber numberWithBool:rfidScenario.proceedReadingAlways];
|
|
749
751
|
result[@"readDTC"] = [NSNumber numberWithBool:rfidScenario.readDTC];
|
|
750
752
|
result[@"mrzStrictCheck"] = rfidScenario.mrzStrictCheck;
|
|
753
|
+
result[@"loadCRLFromRemote"] = @(rfidScenario.loadCRLFromRemote);
|
|
751
754
|
|
|
752
755
|
// Int
|
|
753
756
|
result[@"signManagementAction"] = [NSNumber numberWithInteger:rfidScenario.signManagementAction];
|
|
@@ -773,7 +776,7 @@
|
|
|
773
776
|
result[@"eDLDataGroups"] = [self getDataGroups:rfidScenario.eDLDataGroups];
|
|
774
777
|
result[@"ePassportDataGroups"] = [self getDataGroups:rfidScenario.ePassportDataGroups];
|
|
775
778
|
result[@"eIDDataGroups"] = [self getDataGroups:rfidScenario.eIDDataGroups];
|
|
776
|
-
result[@"dtcDataGroups"] = [self
|
|
779
|
+
result[@"dtcDataGroups"] = [self getDTCDataGroup:rfidScenario.DTCDataGroups];
|
|
777
780
|
|
|
778
781
|
return result;
|
|
779
782
|
}
|
|
@@ -835,17 +838,6 @@
|
|
|
835
838
|
if([dict valueForKey:@"DG21"] != nil)
|
|
836
839
|
((RGLeIDDataGroup*)dataGroup).dG21 = [[dict valueForKey:@"DG21"] boolValue];
|
|
837
840
|
}
|
|
838
|
-
|
|
839
|
-
// DTCDataGroups: 1-18 & 22-24
|
|
840
|
-
if ([dataGroup class] == [RGLDTCDataGroup class]) {
|
|
841
|
-
if(dict[@"DG15"]) ((RGLDTCDataGroup*)dataGroup).dG15 = [dict[@"DG15"] boolValue];
|
|
842
|
-
if(dict[@"DG16"]) ((RGLDTCDataGroup*)dataGroup).dG16 = [dict[@"DG16"] boolValue];
|
|
843
|
-
if(dict[@"DG17"]) ((RGLDTCDataGroup*)dataGroup).dG17 = [dict[@"DG17"] boolValue];
|
|
844
|
-
if(dict[@"DG18"]) ((RGLDTCDataGroup*)dataGroup).dG18 = [dict[@"DG18"] boolValue];
|
|
845
|
-
if(dict[@"DG22"]) ((RGLDTCDataGroup*)dataGroup).dG22 = [dict[@"DG22"] boolValue];
|
|
846
|
-
if(dict[@"DG23"]) ((RGLDTCDataGroup*)dataGroup).dG23 = [dict[@"DG23"] boolValue];
|
|
847
|
-
if(dict[@"DG24"]) ((RGLDTCDataGroup*)dataGroup).dG24 = [dict[@"DG24"] boolValue];
|
|
848
|
-
}
|
|
849
841
|
}
|
|
850
842
|
|
|
851
843
|
+(NSDictionary *)getDataGroups:(RGLDataGroup*)dataGroup {
|
|
@@ -884,16 +876,25 @@
|
|
|
884
876
|
result[@"DG21"] = [NSNumber numberWithBool:((RGLeIDDataGroup*)dataGroup).dG21];
|
|
885
877
|
}
|
|
886
878
|
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
879
|
+
return result;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
+(void)setDTCDataGroup:(RGLDTCDataGroup*)dataGroup dict:(NSDictionary*)dict {
|
|
883
|
+
if(dict[@"DG17"]) dataGroup.dG17 = [dict[@"DG17"] boolValue];
|
|
884
|
+
if(dict[@"DG18"]) dataGroup.dG18 = [dict[@"DG18"] boolValue];
|
|
885
|
+
if(dict[@"DG22"]) dataGroup.dG22 = [dict[@"DG22"] boolValue];
|
|
886
|
+
if(dict[@"DG23"]) dataGroup.dG23 = [dict[@"DG23"] boolValue];
|
|
887
|
+
if(dict[@"DG24"]) dataGroup.dG24 = [dict[@"DG24"] boolValue];
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
+(NSDictionary *)getDTCDataGroup:(RGLDTCDataGroup*)dataGroup {
|
|
891
|
+
NSMutableDictionary *result = [NSMutableDictionary new];
|
|
892
|
+
|
|
893
|
+
result[@"DG17"] = @(dataGroup.dG17);
|
|
894
|
+
result[@"DG18"] = @(dataGroup.dG18);
|
|
895
|
+
result[@"DG22"] = @(dataGroup.dG22);
|
|
896
|
+
result[@"DG23"] = @(dataGroup.dG23);
|
|
897
|
+
result[@"DG24"] = @(dataGroup.dG24);
|
|
897
898
|
|
|
898
899
|
return result;
|
|
899
900
|
}
|
|
@@ -978,6 +979,7 @@
|
|
|
978
979
|
result.checkPhotoComparison = [input valueForKey:@"checkPhotoComparison"];
|
|
979
980
|
if([input valueForKey:@"checkLetterScreen"] != nil)
|
|
980
981
|
result.checkLetterScreen = [input valueForKey:@"checkLetterScreen"];
|
|
982
|
+
if(input[@"checkSecurityText"]) result.checkSecurityText = input[@"checkSecurityText"];
|
|
981
983
|
}
|
|
982
984
|
|
|
983
985
|
+(NSDictionary*)getAuthenticityParams:(RGLAuthenticityParams*)input {
|
|
@@ -999,6 +1001,7 @@
|
|
|
999
1001
|
result[@"checkPhotoEmbedding"] = input.checkPhotoEmbedding;
|
|
1000
1002
|
result[@"checkPhotoComparison"] = input.checkPhotoComparison;
|
|
1001
1003
|
result[@"checkLetterScreen"] = input.checkLetterScreen;
|
|
1004
|
+
result[@"checkSecurityText"] = input.checkSecurityText;
|
|
1002
1005
|
|
|
1003
1006
|
return result;
|
|
1004
1007
|
}
|
|
@@ -1012,6 +1015,8 @@
|
|
|
1012
1015
|
result.checkHolo = [input valueForKey:@"checkHolo"];
|
|
1013
1016
|
if([input valueForKey:@"checkED"] != nil)
|
|
1014
1017
|
result.checkED = [input valueForKey:@"checkED"];
|
|
1018
|
+
if(input[@"checkBlackAndWhiteCopy"]) result.checkBlackAndWhiteCopy = input[@"checkBlackAndWhiteCopy"];
|
|
1019
|
+
if(input[@"checkDynaprint"]) result.checkDynaprint = input[@"checkDynaprint"];
|
|
1015
1020
|
}
|
|
1016
1021
|
|
|
1017
1022
|
+(NSDictionary*)getLivenessParams:(RGLLivenessParams*)input {
|
|
@@ -1022,6 +1027,8 @@
|
|
|
1022
1027
|
result[@"checkMLI"] = input.checkMLI;
|
|
1023
1028
|
result[@"checkHolo"] = input.checkHolo;
|
|
1024
1029
|
result[@"checkED"] = input.checkED;
|
|
1030
|
+
result[@"checkBlackAndWhiteCopy"] = input.checkBlackAndWhiteCopy;
|
|
1031
|
+
result[@"checkDynaprint"] = input.checkDynaprint;
|
|
1025
1032
|
|
|
1026
1033
|
return result;
|
|
1027
1034
|
}
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
+(NSDictionary* _Nullable)generateEPassportDataGroups:(RGLePassportDataGroup* _Nullable)input;
|
|
64
64
|
+(RGLeIDDataGroup* _Nullable)eIDDataGroupsFromJson:(NSDictionary* _Nullable)input;
|
|
65
65
|
+(NSDictionary* _Nullable)generateEIDDataGroups:(RGLeIDDataGroup* _Nullable)input;
|
|
66
|
-
+(RGLeIDDataGroup* _Nullable)
|
|
67
|
-
+(NSDictionary* _Nullable)
|
|
66
|
+
+(RGLeIDDataGroup* _Nullable)dtcDataGroupFromJson:(NSDictionary* _Nullable)input;
|
|
67
|
+
+(NSDictionary* _Nullable)generateRGLDTCDataGroup:(RGLeIDDataGroup* _Nullable)input;
|
|
68
68
|
+(RGLRFIDScenario* _Nullable)rfidScenarioFromJson:(NSDictionary* _Nullable)input;
|
|
69
69
|
+(NSDictionary* _Nullable)generateRFIDScenario:(RGLRFIDScenario* _Nullable)input;
|
|
70
70
|
+(RGLCustomization* _Nullable)customizationFromJson:(NSDictionary* _Nullable)input;
|
|
@@ -111,8 +111,9 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
111
111
|
|
|
112
112
|
NSString* transactionId = [input valueForKey:@"transactionId"];
|
|
113
113
|
NSString* tag = [input valueForKey:@"tag"];
|
|
114
|
+
NSString* sessionLogFolder = input[@"sessionLogFolder"];
|
|
114
115
|
|
|
115
|
-
return [[RGLTransactionInfo alloc] initWithTag:tag transactionId:transactionId];
|
|
116
|
+
return [[RGLTransactionInfo alloc] initWithTag:tag transactionId:transactionId sessionLogFolder:sessionLogFolder];
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
+(NSDictionary*)generateTransactionInfo:(RGLTransactionInfo*)input {
|
|
@@ -121,6 +122,7 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
121
122
|
|
|
122
123
|
result[@"transactionId"] = input.transactionId;
|
|
123
124
|
result[@"tag"] = input.tag;
|
|
125
|
+
result[@"sessionLogFolder"] = input.sessionLogFolder;
|
|
124
126
|
|
|
125
127
|
return result;
|
|
126
128
|
}
|
|
@@ -356,14 +358,14 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
356
358
|
return [RGLWConfig getDataGroups:input];
|
|
357
359
|
}
|
|
358
360
|
|
|
359
|
-
+(RGLDTCDataGroup*)
|
|
361
|
+
+(RGLDTCDataGroup*)dtcDataGroupFromJson:(NSDictionary*)input {
|
|
360
362
|
RGLDTCDataGroup *result = [RGLDTCDataGroup new];
|
|
361
|
-
[RGLWConfig
|
|
363
|
+
[RGLWConfig setDTCDataGroup:result dict:input];
|
|
362
364
|
return result;
|
|
363
365
|
}
|
|
364
366
|
|
|
365
|
-
+(NSDictionary*)
|
|
366
|
-
return [RGLWConfig
|
|
367
|
+
+(NSDictionary*)generateRGLDTCDataGroup:(RGLDTCDataGroup*)input {
|
|
368
|
+
return [RGLWConfig getDTCDataGroup:input];
|
|
367
369
|
}
|
|
368
370
|
|
|
369
371
|
+(RGLRFIDScenario*)rfidScenarioFromJson:(NSDictionary*)input {
|
|
@@ -1696,10 +1698,12 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
1696
1698
|
NSMutableArray<RGLAuthenticityElement*> *array = [NSMutableArray new];
|
|
1697
1699
|
for(NSDictionary* item in [input valueForKey:@"elements"])
|
|
1698
1700
|
[array addObject:[self authenticityElementFromJson:item]];
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1701
|
+
RGLAuthenticityCheck* result = [[RGLAuthenticityCheck alloc]
|
|
1702
|
+
initWithAuthenticity:[[input valueForKey:@"type"] integerValue]
|
|
1703
|
+
elements:array
|
|
1704
|
+
pageIndex:[[input valueForKey:@"pageIndex"] integerValue]];
|
|
1705
|
+
if (input[@"status"]) [result setValue:input[@"status"] forKey:@"status"];
|
|
1706
|
+
return result;;
|
|
1703
1707
|
}
|
|
1704
1708
|
|
|
1705
1709
|
+(NSDictionary*)generateAuthenticityCheck:(RGLAuthenticityCheck*)input {
|
|
@@ -1802,8 +1806,10 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
1802
1806
|
NSMutableArray<RGLAuthenticityCheck*> *array = [NSMutableArray new];
|
|
1803
1807
|
for(NSDictionary* item in [input valueForKey:@"checks"])
|
|
1804
1808
|
[array addObject:[self authenticityCheckFromJson:item]];
|
|
1805
|
-
|
|
1806
|
-
|
|
1809
|
+
RGLDocumentReaderAuthenticityResult* result = [[RGLDocumentReaderAuthenticityResult alloc]
|
|
1810
|
+
initWithAuthenticityChecks:array];
|
|
1811
|
+
if (input[@"status"]) [result setValue:input[@"status"] forKey:@"_security"];
|
|
1812
|
+
return result;
|
|
1807
1813
|
}
|
|
1808
1814
|
|
|
1809
1815
|
+(NSDictionary*)generateDocumentReaderAuthenticityResult:(RGLDocumentReaderAuthenticityResult*)input {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/react-native-document-reader-api",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.41-beta",
|
|
4
4
|
"description": "React Native module for reading and validation of identification documents (API framework)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|