@regulaforensics/cordova-plugin-document-reader-api 9.3.450-beta → 9.3.451-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/package.json +2 -2
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/src/android/Config.kt +48 -137
- package/src/android/JSONConstructor.kt +19 -23
- package/src/android/Utils.kt +0 -5
- package/src/android/build.gradle +2 -2
- package/src/ios/RGLWConfig.m +41 -152
- package/src/ios/RGLWJSONConstructor.m +0 -5
- package/www/DocumentReader.js +0 -127
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": "9.3.
|
|
17
|
-
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "9.
|
|
16
|
+
"@regulaforensics/cordova-plugin-document-reader-api": "9.3.451-nightly",
|
|
17
|
+
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "9.3.2117-nightly",
|
|
18
18
|
"cordova-android": "13.0.0",
|
|
19
19
|
"cordova-ios": "7.1.1",
|
|
20
20
|
"cordova-plugin-add-swift-support": "2.0.2",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/cordova-plugin-document-reader-api",
|
|
3
|
-
"version": "9.3.
|
|
3
|
+
"version": "9.3.451-nightly",
|
|
4
4
|
"description": "Cordova plugin for reading and validation of identification documents (API framework)",
|
|
5
5
|
"cordova": {
|
|
6
6
|
"id": "@regulaforensics/cordova-plugin-document-reader-api",
|
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id="@regulaforensics/cordova-plugin-document-reader-api" version="9.3.
|
|
2
|
+
<plugin id="@regulaforensics/cordova-plugin-document-reader-api" version="9.3.451-nightly" 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="
|
|
32
|
+
<pod name="DocumentReaderNightly" spec="9.3.6105" />
|
|
33
33
|
</pods>
|
|
34
34
|
</podspec>
|
|
35
35
|
</platform>
|
package/src/android/Config.kt
CHANGED
|
@@ -2,18 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
package com.regula.plugin.documentreader
|
|
4
4
|
|
|
5
|
-
import android.graphics.Matrix
|
|
6
5
|
import android.graphics.Paint
|
|
7
6
|
import android.graphics.Typeface
|
|
8
7
|
import android.graphics.drawable.Drawable
|
|
9
8
|
import android.text.SpannableString
|
|
10
9
|
import android.widget.ImageView
|
|
10
|
+
import androidx.core.content.ContextCompat
|
|
11
11
|
import com.regula.documentreader.api.enums.CustomizationColor
|
|
12
12
|
import com.regula.documentreader.api.enums.CustomizationFont
|
|
13
13
|
import com.regula.documentreader.api.enums.CustomizationImage
|
|
14
|
-
import com.regula.documentreader.api.enums.CustomizationMatrix
|
|
15
|
-
import com.regula.documentreader.api.enums.CustomizationScaleType
|
|
16
|
-
import com.regula.documentreader.api.enums.CustomizationTiming
|
|
17
14
|
import com.regula.documentreader.api.enums.LogLevel
|
|
18
15
|
import com.regula.documentreader.api.params.AuthenticityParams
|
|
19
16
|
import com.regula.documentreader.api.params.Functionality
|
|
@@ -150,9 +147,6 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
|
|
|
150
147
|
"strictSecurityChecks" -> processParams.strictSecurityChecks = v as Boolean
|
|
151
148
|
"returnTransliteratedFields" -> processParams.returnTransliteratedFields = v as Boolean
|
|
152
149
|
"checkCaptureProcessIntegrity" -> processParams.checkCaptureProcessIntegrity = v as Boolean
|
|
153
|
-
"strictExpiryDate" -> processParams.strictExpiryDate = v as Boolean
|
|
154
|
-
"debugSaveBinarySession" -> processParams.debugSaveBinarySession = v as Boolean
|
|
155
|
-
"checkVDS" -> processParams.checkVDS = v as Boolean
|
|
156
150
|
"measureSystem" -> processParams.measureSystem = v.toInt()
|
|
157
151
|
"barcodeParserType" -> processParams.barcodeParserType = v.toInt()
|
|
158
152
|
"perspectiveAngle" -> processParams.perspectiveAngle = v.toInt()
|
|
@@ -243,9 +237,6 @@ fun getProcessParams(processParams: ProcessParam) = mapOf(
|
|
|
243
237
|
"strictSecurityChecks" to processParams.strictSecurityChecks,
|
|
244
238
|
"returnTransliteratedFields" to processParams.returnTransliteratedFields,
|
|
245
239
|
"checkCaptureProcessIntegrity" to processParams.checkCaptureProcessIntegrity,
|
|
246
|
-
"strictExpiryDate" to processParams.strictExpiryDate,
|
|
247
|
-
"debugSaveBinarySession" to processParams.debugSaveBinarySession,
|
|
248
|
-
"checkVDS" to processParams.checkVDS,
|
|
249
240
|
"measureSystem" to processParams.measureSystem,
|
|
250
241
|
"barcodeParserType" to processParams.barcodeParserType,
|
|
251
242
|
"perspectiveAngle" to processParams.perspectiveAngle,
|
|
@@ -356,8 +347,6 @@ fun setCustomization(customization: ParamsCustomization, opts: JSONObject) = opt
|
|
|
356
347
|
"colors" -> setColors(editor, v as JSONObject)
|
|
357
348
|
"fonts" -> setFonts(editor, v as JSONObject)
|
|
358
349
|
"images" -> setImages(editor, v as JSONObject)
|
|
359
|
-
"timings" -> setTimings(editor, v as JSONObject)
|
|
360
|
-
"matrices" -> setMatrices(editor, v as JSONObject)
|
|
361
350
|
"statusTextFont" -> {
|
|
362
351
|
val font = typefaceFromJSON(v as JSONObject)
|
|
363
352
|
editor.setStatusTextFont(font.first)
|
|
@@ -447,9 +436,7 @@ fun getCustomization(customization: ParamsCustomization) = mapOf(
|
|
|
447
436
|
"uiCustomizationLayer" to customization.uiCustomizationLayer,
|
|
448
437
|
"colors" to getColors(customization.colors),
|
|
449
438
|
"fonts" to getFonts(customization.typeFaces, customization.fontSizes),
|
|
450
|
-
"images" to getImages(customization.images)
|
|
451
|
-
"timings" to getTimings(customization.timings),
|
|
452
|
-
"matrices" to getMatrices(customization.matrices),
|
|
439
|
+
"images" to getImages(customization.images)
|
|
453
440
|
).toJson()
|
|
454
441
|
|
|
455
442
|
fun setRfidScenario(rfidScenario: RfidScenario, opts: JSONObject) = opts.forEach { k, v ->
|
|
@@ -768,35 +755,31 @@ fun getLivenessParams(input: LivenessParams?) = input?.let {
|
|
|
768
755
|
).toJson()
|
|
769
756
|
}
|
|
770
757
|
|
|
771
|
-
fun setColors(input: ParamsCustomization.CustomizationEditor, opts: JSONObject) = opts.forEach {
|
|
772
|
-
val
|
|
773
|
-
when (
|
|
774
|
-
"rfidProcessingScreenBackground" -> input.setColor(CustomizationColor.RFID_PROCESSING_SCREEN_BACKGROUND,
|
|
775
|
-
"rfidProcessingScreenHintLabelText" -> input.setColor(CustomizationColor.RFID_PROCESSING_SCREEN_HINT_LABEL_TEXT,
|
|
776
|
-
"rfidProcessingScreenHintLabelBackground" -> input.setColor(CustomizationColor.RFID_PROCESSING_SCREEN_HINT_LABEL_BACKGROUND,
|
|
777
|
-
"rfidProcessingScreenProgressLabelText" -> input.setColor(CustomizationColor.RFID_PROCESSING_SCREEN_PROGRESS_LABEL_TEXT,
|
|
778
|
-
"rfidProcessingScreenProgressBar" -> input.setColor(CustomizationColor.RFID_PROCESSING_SCREEN_PROGRESS_BAR,
|
|
779
|
-
"rfidProcessingScreenProgressBarBackground" -> input.setColor(CustomizationColor.RFID_PROCESSING_SCREEN_PROGRESS_BAR_BACKGROUND,
|
|
780
|
-
"rfidProcessingScreenResultLabelText" -> input.setColor(CustomizationColor.RFID_PROCESSING_SCREEN_RESULT_LABEL_TEXT,
|
|
781
|
-
"rfidProcessingScreenLoadingBar" -> input.setColor(CustomizationColor.RFID_PROCESSING_SCREEN_LOADING_BAR,
|
|
782
|
-
"rfidEnableNfcTitleText" -> input.setColor(CustomizationColor.RFID_ENABLE_NFC_TITLE_TEXT,
|
|
783
|
-
"rfidEnableNfcDescriptionText" -> input.setColor(CustomizationColor.RFID_ENABLE_NFC_DESCRIPTION_TEXT,
|
|
784
|
-
"rfidEnableNfcButtonText" -> input.setColor(CustomizationColor.RFID_ENABLE_NFC_BUTTON_TEXT,
|
|
785
|
-
"rfidEnableNfcButtonBackground" -> input.setColor(CustomizationColor.RFID_ENABLE_NFC_BUTTON_BACKGROUND,
|
|
786
|
-
"mdlProcessingScreenBackground" -> input.setColor(CustomizationColor.MDL_PROCESSING_SCREEN_BACKGROUND,
|
|
787
|
-
"mdlProcessingScreenHintLabelText" -> input.setColor(CustomizationColor.MDL_PROCESSING_SCREEN_HINT_LABEL_TEXT,
|
|
788
|
-
"mdlProcessingScreenHintLabelBackground" -> input.setColor(CustomizationColor.MDL_PROCESSING_SCREEN_HINT_LABEL_BACKGROUND,
|
|
789
|
-
"mdlProcessingScreenProgressLabelText" -> input.setColor(CustomizationColor.MDL_PROCESSING_SCREEN_PROGRESS_LABEL_TEXT,
|
|
790
|
-
"mdlProcessingScreenResultLabelText" -> input.setColor(CustomizationColor.MDL_PROCESSING_SCREEN_RESULT_LABEL_TEXT,
|
|
791
|
-
"mdlProcessingScreenLoadingBar" -> input.setColor(CustomizationColor.MDL_PROCESSING_SCREEN_LOADING_BAR,
|
|
792
|
-
"mdlEnableNfcTitleText" -> input.setColor(CustomizationColor.MDL_ENABLE_NFC_TITLE_TEXT,
|
|
793
|
-
"mdlEnableNfcDescriptionText" -> input.setColor(CustomizationColor.MDL_ENABLE_NFC_DESCRIPTION_TEXT,
|
|
794
|
-
"mdlEnableNfcButtonText" -> input.setColor(CustomizationColor.MDL_ENABLE_NFC_BUTTON_TEXT,
|
|
795
|
-
"mdlEnableNfcButtonBackground" -> input.setColor(CustomizationColor.MDL_ENABLE_NFC_BUTTON_BACKGROUND,
|
|
796
|
-
"nextPageIdCardFront" -> input.setColor(CustomizationColor.NEXT_PAGE_ID_CARD_FRONT, v)
|
|
797
|
-
"nextPageIdCardBack" -> input.setColor(CustomizationColor.NEXT_PAGE_ID_CARD_BACK, v)
|
|
798
|
-
"nextPagePassportShift" -> input.setColor(CustomizationColor.NEXT_PAGE_PASSPORT_SHIFT, v)
|
|
799
|
-
"nextPagePassportFlip" -> input.setColor(CustomizationColor.NEXT_PAGE_PASSPORT_FLIP, v)
|
|
758
|
+
fun setColors(input: ParamsCustomization.CustomizationEditor, opts: JSONObject) = opts.forEach { key, v ->
|
|
759
|
+
val value = v.toLong()
|
|
760
|
+
when (key) {
|
|
761
|
+
"rfidProcessingScreenBackground" -> input.setColor(CustomizationColor.RFID_PROCESSING_SCREEN_BACKGROUND, value)
|
|
762
|
+
"rfidProcessingScreenHintLabelText" -> input.setColor(CustomizationColor.RFID_PROCESSING_SCREEN_HINT_LABEL_TEXT, value)
|
|
763
|
+
"rfidProcessingScreenHintLabelBackground" -> input.setColor(CustomizationColor.RFID_PROCESSING_SCREEN_HINT_LABEL_BACKGROUND, value)
|
|
764
|
+
"rfidProcessingScreenProgressLabelText" -> input.setColor(CustomizationColor.RFID_PROCESSING_SCREEN_PROGRESS_LABEL_TEXT, value)
|
|
765
|
+
"rfidProcessingScreenProgressBar" -> input.setColor(CustomizationColor.RFID_PROCESSING_SCREEN_PROGRESS_BAR, value)
|
|
766
|
+
"rfidProcessingScreenProgressBarBackground" -> input.setColor(CustomizationColor.RFID_PROCESSING_SCREEN_PROGRESS_BAR_BACKGROUND, value)
|
|
767
|
+
"rfidProcessingScreenResultLabelText" -> input.setColor(CustomizationColor.RFID_PROCESSING_SCREEN_RESULT_LABEL_TEXT, value)
|
|
768
|
+
"rfidProcessingScreenLoadingBar" -> input.setColor(CustomizationColor.RFID_PROCESSING_SCREEN_LOADING_BAR, value)
|
|
769
|
+
"rfidEnableNfcTitleText" -> input.setColor(CustomizationColor.RFID_ENABLE_NFC_TITLE_TEXT, value)
|
|
770
|
+
"rfidEnableNfcDescriptionText" -> input.setColor(CustomizationColor.RFID_ENABLE_NFC_DESCRIPTION_TEXT, value)
|
|
771
|
+
"rfidEnableNfcButtonText" -> input.setColor(CustomizationColor.RFID_ENABLE_NFC_BUTTON_TEXT, value)
|
|
772
|
+
"rfidEnableNfcButtonBackground" -> input.setColor(CustomizationColor.RFID_ENABLE_NFC_BUTTON_BACKGROUND, value)
|
|
773
|
+
"mdlProcessingScreenBackground" -> input.setColor(CustomizationColor.MDL_PROCESSING_SCREEN_BACKGROUND, value)
|
|
774
|
+
"mdlProcessingScreenHintLabelText" -> input.setColor(CustomizationColor.MDL_PROCESSING_SCREEN_HINT_LABEL_TEXT, value)
|
|
775
|
+
"mdlProcessingScreenHintLabelBackground" -> input.setColor(CustomizationColor.MDL_PROCESSING_SCREEN_HINT_LABEL_BACKGROUND, value)
|
|
776
|
+
"mdlProcessingScreenProgressLabelText" -> input.setColor(CustomizationColor.MDL_PROCESSING_SCREEN_PROGRESS_LABEL_TEXT, value)
|
|
777
|
+
"mdlProcessingScreenResultLabelText" -> input.setColor(CustomizationColor.MDL_PROCESSING_SCREEN_RESULT_LABEL_TEXT, value)
|
|
778
|
+
"mdlProcessingScreenLoadingBar" -> input.setColor(CustomizationColor.MDL_PROCESSING_SCREEN_LOADING_BAR, value)
|
|
779
|
+
"mdlEnableNfcTitleText" -> input.setColor(CustomizationColor.MDL_ENABLE_NFC_TITLE_TEXT, value)
|
|
780
|
+
"mdlEnableNfcDescriptionText" -> input.setColor(CustomizationColor.MDL_ENABLE_NFC_DESCRIPTION_TEXT, value)
|
|
781
|
+
"mdlEnableNfcButtonText" -> input.setColor(CustomizationColor.MDL_ENABLE_NFC_BUTTON_TEXT, value)
|
|
782
|
+
"mdlEnableNfcButtonBackground" -> input.setColor(CustomizationColor.MDL_ENABLE_NFC_BUTTON_BACKGROUND, value)
|
|
800
783
|
}
|
|
801
784
|
}
|
|
802
785
|
|
|
@@ -823,26 +806,22 @@ fun getColors(input: Map<CustomizationColor, Long>) = mapOf(
|
|
|
823
806
|
"mdlEnableNfcDescriptionText" to input[CustomizationColor.MDL_ENABLE_NFC_DESCRIPTION_TEXT],
|
|
824
807
|
"mdlEnableNfcButtonText" to input[CustomizationColor.MDL_ENABLE_NFC_BUTTON_TEXT],
|
|
825
808
|
"mdlEnableNfcButtonBackground" to input[CustomizationColor.MDL_ENABLE_NFC_BUTTON_BACKGROUND],
|
|
826
|
-
"nextPageIdCardFront" to input[CustomizationColor.NEXT_PAGE_ID_CARD_FRONT],
|
|
827
|
-
"nextPageIdCardBack" to input[CustomizationColor.NEXT_PAGE_ID_CARD_BACK],
|
|
828
|
-
"nextPagePassportShift" to input[CustomizationColor.NEXT_PAGE_PASSPORT_SHIFT],
|
|
829
|
-
"nextPagePassportFlip" to input[CustomizationColor.NEXT_PAGE_PASSPORT_FLIP],
|
|
830
809
|
).toJson()
|
|
831
810
|
|
|
832
|
-
fun setFonts(input: ParamsCustomization.CustomizationEditor, opts: JSONObject) = opts.forEach {
|
|
833
|
-
when (
|
|
834
|
-
"rfidProcessingScreenHintLabel" -> CustomizationFont.RFID_PROCESSING_SCREEN_HINT_LABEL.setFont(input,
|
|
835
|
-
"rfidProcessingScreenProgressLabel" -> CustomizationFont.RFID_PROCESSING_SCREEN_PROGRESS_LABEL.setFont(input,
|
|
836
|
-
"rfidProcessingScreenResultLabel" -> CustomizationFont.RFID_PROCESSING_SCREEN_RESULT_LABEL.setFont(input,
|
|
837
|
-
"rfidEnableNfcTitleText" -> CustomizationFont.RFID_ENABLE_NFC_TITLE_TEXT.setFont(input,
|
|
838
|
-
"rfidEnableNfcDescriptionText" -> CustomizationFont.RFID_ENABLE_NFC_DESCRIPTION_TEXT.setFont(input,
|
|
839
|
-
"rfidEnableNfcButtonText" -> CustomizationFont.RFID_ENABLE_NFC_BUTTON_TEXT.setFont(input,
|
|
840
|
-
"mdlProcessingScreenHintLabel" -> CustomizationFont.MDL_PROCESSING_SCREEN_HINT_LABEL.setFont(input,
|
|
841
|
-
"mdlProcessingScreenProgressLabel" -> CustomizationFont.MDL_PROCESSING_SCREEN_PROGRESS_LABEL.setFont(input,
|
|
842
|
-
"mdlProcessingScreenResultLabel" -> CustomizationFont.MDL_PROCESSING_SCREEN_RESULT_LABEL.setFont(input,
|
|
843
|
-
"mdlEnableNfcTitleText" -> CustomizationFont.MDL_ENABLE_NFC_TITLE_TEXT.setFont(input,
|
|
844
|
-
"mdlEnableNfcDescriptionText" -> CustomizationFont.MDL_ENABLE_NFC_DESCRIPTION_TEXT.setFont(input,
|
|
845
|
-
"mdlEnableNfcButtonText" -> CustomizationFont.MDL_ENABLE_NFC_BUTTON_TEXT.setFont(input,
|
|
811
|
+
fun setFonts(input: ParamsCustomization.CustomizationEditor, opts: JSONObject) = opts.forEach { key, value ->
|
|
812
|
+
when (key) {
|
|
813
|
+
"rfidProcessingScreenHintLabel" -> CustomizationFont.RFID_PROCESSING_SCREEN_HINT_LABEL.setFont(input, value)
|
|
814
|
+
"rfidProcessingScreenProgressLabel" -> CustomizationFont.RFID_PROCESSING_SCREEN_PROGRESS_LABEL.setFont(input, value)
|
|
815
|
+
"rfidProcessingScreenResultLabel" -> CustomizationFont.RFID_PROCESSING_SCREEN_RESULT_LABEL.setFont(input, value)
|
|
816
|
+
"rfidEnableNfcTitleText" -> CustomizationFont.RFID_ENABLE_NFC_TITLE_TEXT.setFont(input, value)
|
|
817
|
+
"rfidEnableNfcDescriptionText" -> CustomizationFont.RFID_ENABLE_NFC_DESCRIPTION_TEXT.setFont(input, value)
|
|
818
|
+
"rfidEnableNfcButtonText" -> CustomizationFont.RFID_ENABLE_NFC_BUTTON_TEXT.setFont(input, value)
|
|
819
|
+
"mdlProcessingScreenHintLabel" -> CustomizationFont.MDL_PROCESSING_SCREEN_HINT_LABEL.setFont(input, value)
|
|
820
|
+
"mdlProcessingScreenProgressLabel" -> CustomizationFont.MDL_PROCESSING_SCREEN_PROGRESS_LABEL.setFont(input, value)
|
|
821
|
+
"mdlProcessingScreenResultLabel" -> CustomizationFont.MDL_PROCESSING_SCREEN_RESULT_LABEL.setFont(input, value)
|
|
822
|
+
"mdlEnableNfcTitleText" -> CustomizationFont.MDL_ENABLE_NFC_TITLE_TEXT.setFont(input, value)
|
|
823
|
+
"mdlEnableNfcDescriptionText" -> CustomizationFont.MDL_ENABLE_NFC_DESCRIPTION_TEXT.setFont(input, value)
|
|
824
|
+
"mdlEnableNfcButtonText" -> CustomizationFont.MDL_ENABLE_NFC_BUTTON_TEXT.setFont(input, value)
|
|
846
825
|
}
|
|
847
826
|
}
|
|
848
827
|
|
|
@@ -861,88 +840,20 @@ fun getFonts(fonts: Map<CustomizationFont, Typeface>, sizes: Map<CustomizationFo
|
|
|
861
840
|
"mdlEnableNfcButtonText" to CustomizationFont.MDL_ENABLE_NFC_BUTTON_TEXT.getFont(fonts, sizes),
|
|
862
841
|
).toJson()
|
|
863
842
|
|
|
864
|
-
fun setImages(input: ParamsCustomization.CustomizationEditor, opts: JSONObject) = opts.forEach {
|
|
865
|
-
when (
|
|
866
|
-
"helpAnimation" -> input.setImage(CustomizationImage.HELP_ANIMATION, v.toDrawable())
|
|
867
|
-
"livenessAnimation" -> input.setImage(CustomizationImage.LIVENESS_ANIMATION, v.toDrawable())
|
|
868
|
-
"borderBackground" -> input.setImage(CustomizationImage.BORDER_BACKGROUND, v.toDrawable())
|
|
869
|
-
"torchButtonOn" -> input.setImage(CustomizationImage.TORCH_BUTTON_ON, v.toDrawable())
|
|
870
|
-
"torchButtonOff" -> input.setImage(CustomizationImage.TORCH_BUTTON_OFF, v.toDrawable())
|
|
871
|
-
"captureButton" -> input.setImage(CustomizationImage.CAPTURE_BUTTON, v.toDrawable())
|
|
872
|
-
"switchButton" -> input.setImage(CustomizationImage.SWITCH_BUTTON, v.toDrawable())
|
|
873
|
-
"closeButton" -> input.setImage(CustomizationImage.CLOSE_BUTTON, v.toDrawable())
|
|
874
|
-
"multipageButton" -> input.setImage(CustomizationImage.MULTIPAGE_BUTTON, v.toDrawable())
|
|
843
|
+
fun setImages(input: ParamsCustomization.CustomizationEditor, opts: JSONObject) = opts.forEach { key, v ->
|
|
844
|
+
when (key) {
|
|
875
845
|
"rfidProcessingScreenFailureImage" -> input.setImage(CustomizationImage.RFID_PROCESSING_SCREEN_FAILURE_IMAGE, v.toDrawable())
|
|
876
846
|
"rfidEnableNfcImage" -> input.setImage(CustomizationImage.RFID_ENABLE_NFC_IMAGE, v.toDrawable())
|
|
877
|
-
"rfidDisableNfcImage" -> input.setImage(CustomizationImage.RFID_DISABLE_NFC_IMAGE, v.toDrawable())
|
|
878
847
|
"mdlProcessingScreenFailureImage" -> input.setImage(CustomizationImage.MDL_PROCESSING_SCREEN_FAILURE_IMAGE, v.toDrawable())
|
|
879
848
|
"mdlEnableNfcImage" -> input.setImage(CustomizationImage.MDL_ENABLE_NFC_IMAGE, v.toDrawable())
|
|
880
|
-
"mdlDisableNfcImage" -> input.setImage(CustomizationImage.MDL_DISABLE_NFC_IMAGE, v.toDrawable())
|
|
881
|
-
"nextPageIdCardFront" -> input.setImage(CustomizationImage.NEXT_PAGE_ID_CARD_FRONT, v.toDrawable())
|
|
882
|
-
"nextPageIdCardBack" -> input.setImage(CustomizationImage.NEXT_PAGE_ID_CARD_BACK, v.toDrawable())
|
|
883
|
-
"nextPagePassportShift" -> input.setImage(CustomizationImage.NEXT_PAGE_PASSPORT_SHIFT, v.toDrawable())
|
|
884
|
-
"nextPagePassportFlipStart" -> input.setImage(CustomizationImage.NEXT_PAGE_PASSPORT_FLIP_START, v.toDrawable())
|
|
885
|
-
"nextPagePassportFlipClean" -> input.setImage(CustomizationImage.NEXT_PAGE_PASSPORT_FLIP_CLEAN, v.toDrawable())
|
|
886
|
-
"nextPagePassportFlipTop" -> input.setImage(CustomizationImage.NEXT_PAGE_PASSPORT_FLIP_TOP, v.toDrawable())
|
|
887
|
-
"nextPagePassportFlipBottom" -> input.setImage(CustomizationImage.NEXT_PAGE_PASSPORT_FLIP_BOTTOM, v.toDrawable())
|
|
888
|
-
}
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
fun getImages(input: Map<String, Drawable>) = mapOf(
|
|
892
|
-
"helpAnimation" to input[CustomizationImage.HELP_ANIMATION.value].toBase64(),
|
|
893
|
-
"livenessAnimation" to input[CustomizationImage.LIVENESS_ANIMATION.value].toBase64(),
|
|
894
|
-
"borderBackground" to input[CustomizationImage.BORDER_BACKGROUND.value].toBase64(),
|
|
895
|
-
"torchButtonOn" to input[CustomizationImage.TORCH_BUTTON_ON.value].toBase64(),
|
|
896
|
-
"torchButtonOff" to input[CustomizationImage.TORCH_BUTTON_OFF.value].toBase64(),
|
|
897
|
-
"captureButton" to input[CustomizationImage.CAPTURE_BUTTON.value].toBase64(),
|
|
898
|
-
"switchButton" to input[CustomizationImage.SWITCH_BUTTON.value].toBase64(),
|
|
899
|
-
"closeButton" to input[CustomizationImage.CLOSE_BUTTON.value].toBase64(),
|
|
900
|
-
"multipageButton" to input[CustomizationImage.MULTIPAGE_BUTTON.value].toBase64(),
|
|
901
|
-
"rfidProcessingScreenFailureImage" to input[CustomizationImage.RFID_PROCESSING_SCREEN_FAILURE_IMAGE.value].toBase64(),
|
|
902
|
-
"rfidEnableNfcImage" to input[CustomizationImage.RFID_ENABLE_NFC_IMAGE.value].toBase64(),
|
|
903
|
-
"rfidDisableNfcImage" to input[CustomizationImage.RFID_DISABLE_NFC_IMAGE.value].toBase64(),
|
|
904
|
-
"mdlProcessingScreenFailureImage" to input[CustomizationImage.MDL_PROCESSING_SCREEN_FAILURE_IMAGE.value].toBase64(),
|
|
905
|
-
"mdlEnableNfcImage" to input[CustomizationImage.MDL_ENABLE_NFC_IMAGE.value].toBase64(),
|
|
906
|
-
"mdlDisableNfcImage" to input[CustomizationImage.MDL_DISABLE_NFC_IMAGE.value].toBase64(),
|
|
907
|
-
"nextPageIdCardFront" to input[CustomizationImage.NEXT_PAGE_ID_CARD_FRONT.value].toBase64(),
|
|
908
|
-
"nextPageIdCardBack" to input[CustomizationImage.NEXT_PAGE_ID_CARD_BACK.value].toBase64(),
|
|
909
|
-
"nextPagePassportShift" to input[CustomizationImage.NEXT_PAGE_PASSPORT_SHIFT.value].toBase64(),
|
|
910
|
-
"nextPagePassportFlipStart" to input[CustomizationImage.NEXT_PAGE_PASSPORT_FLIP_START.value].toBase64(),
|
|
911
|
-
"nextPagePassportFlipClean" to input[CustomizationImage.NEXT_PAGE_PASSPORT_FLIP_CLEAN.value].toBase64(),
|
|
912
|
-
"nextPagePassportFlipTop" to input[CustomizationImage.NEXT_PAGE_PASSPORT_FLIP_TOP.value].toBase64(),
|
|
913
|
-
"nextPagePassportFlipBottom" to input[CustomizationImage.NEXT_PAGE_PASSPORT_FLIP_BOTTOM.value].toBase64(),
|
|
914
|
-
).toJson()
|
|
915
|
-
|
|
916
|
-
fun setTimings(input: ParamsCustomization.CustomizationEditor, opts: JSONObject) = opts.forEach { k, v ->
|
|
917
|
-
when (k) {
|
|
918
|
-
"nextPageIdCardStartDelay" -> input.setTiming(CustomizationTiming.NEXT_PAGE_ID_CARD_START_DELAY, v.toInt())
|
|
919
|
-
"nextPageIdCardEndDelay" -> input.setTiming(CustomizationTiming.NEXT_PAGE_ID_CARD_END_DELAY, v.toInt())
|
|
920
|
-
"nextPagePassportShiftStartDelay" -> input.setTiming(CustomizationTiming.NEXT_PAGE_PASSPORT_SHIFT_START_DELAY, v.toInt())
|
|
921
|
-
"nextPagePassportShiftEndDelay" -> input.setTiming(CustomizationTiming.NEXT_PAGE_PASSPORT_SHIFT_END_DELAY, v.toInt())
|
|
922
|
-
"nextPagePassportFlipStartDelay" -> input.setTiming(CustomizationTiming.NEXT_PAGE_PASSPORT_FLIP_START_DELAY, v.toInt())
|
|
923
|
-
"nextPagePassportFlipEndDelay" -> input.setTiming(CustomizationTiming.NEXT_PAGE_PASSPORT_FLIP_END_DELAY, v.toInt())
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
fun getTimings(input: Map<CustomizationTiming, Int>) = mapOf(
|
|
928
|
-
"nextPageIdCardStartDelay" to input[CustomizationTiming.NEXT_PAGE_ID_CARD_START_DELAY],
|
|
929
|
-
"nextPageIdCardEndDelay" to input[CustomizationTiming.NEXT_PAGE_ID_CARD_END_DELAY],
|
|
930
|
-
"nextPagePassportShiftStartDelay" to input[CustomizationTiming.NEXT_PAGE_PASSPORT_SHIFT_START_DELAY],
|
|
931
|
-
"nextPagePassportShiftEndDelay" to input[CustomizationTiming.NEXT_PAGE_PASSPORT_SHIFT_END_DELAY],
|
|
932
|
-
"nextPagePassportFlipStartDelay" to input[CustomizationTiming.NEXT_PAGE_PASSPORT_FLIP_START_DELAY],
|
|
933
|
-
"nextPagePassportFlipEndDelay" to input[CustomizationTiming.NEXT_PAGE_PASSPORT_FLIP_END_DELAY],
|
|
934
|
-
).toJson()
|
|
935
|
-
|
|
936
|
-
fun setMatrices(input: ParamsCustomization.CustomizationEditor, opts: JSONObject) = opts.forEach { k, v ->
|
|
937
|
-
when (k) {
|
|
938
|
-
"nextPageIdCardFront" -> input.setMatrix(CustomizationMatrix.NEXT_PAGE_ID_CARD_FRONT, matrixFromJSON(v as JSONArray?)).setScaleType(CustomizationScaleType.NEXT_PAGE_ID_CARD_FRONT, ImageView.ScaleType.MATRIX)
|
|
939
|
-
"nextPageIdCardBack" -> input.setMatrix(CustomizationMatrix.NEXT_PAGE_ID_CARD_BACK, matrixFromJSON(v as JSONArray?)).setScaleType(CustomizationScaleType.NEXT_PAGE_ID_CARD_BACK, ImageView.ScaleType.MATRIX)
|
|
940
849
|
}
|
|
941
850
|
}
|
|
942
851
|
|
|
943
|
-
fun
|
|
944
|
-
"
|
|
945
|
-
"
|
|
852
|
+
fun getImages(input: Map<CustomizationImage, Drawable>) = mapOf(
|
|
853
|
+
"rfidProcessingScreenFailureImage" to (input[CustomizationImage.RFID_PROCESSING_SCREEN_FAILURE_IMAGE] ?: ContextCompat.getDrawable(context, com.regula.documentreader.api.R.drawable.reg_ic_error)).toBase64(),
|
|
854
|
+
"rfidEnableNfcImage" to (input[CustomizationImage.RFID_ENABLE_NFC_IMAGE] ?: ContextCompat.getDrawable(context, com.regula.documentreader.api.R.drawable.reg_enable_nfc)).toBase64(),
|
|
855
|
+
"mdlProcessingScreenFailureImage" to (input[CustomizationImage.MDL_PROCESSING_SCREEN_FAILURE_IMAGE] ?: ContextCompat.getDrawable(context, com.regula.documentreader.api.R.drawable.reg_enable_nfc)).toBase64(),
|
|
856
|
+
"mdlEnableNfcImage" to (input[CustomizationImage.MDL_ENABLE_NFC_IMAGE] ?: ContextCompat.getDrawable(context, com.regula.documentreader.api.R.drawable.reg_enable_nfc)).toBase64(),
|
|
946
857
|
).toJson()
|
|
947
858
|
|
|
948
859
|
fun CustomizationFont.getFont(fonts: Map<CustomizationFont, Typeface>, sizes: Map<CustomizationFont, Int>) =
|
|
@@ -310,7 +310,6 @@ fun backendProcessingConfigFromJSON(input: JSONObject?) = input?.let {
|
|
|
310
310
|
}
|
|
311
311
|
result.rfidServerSideChipVerification = it.getBooleanOrNull("rfidServerSideChipVerification")
|
|
312
312
|
result.timeoutConnection = it.getDoubleOrNull("timeoutConnection")
|
|
313
|
-
if (it.has("mdlVerification")) result.mdlVerification = it.getBoolean("mdlVerification")
|
|
314
313
|
result
|
|
315
314
|
}
|
|
316
315
|
|
|
@@ -323,8 +322,7 @@ fun generateBackendProcessingConfig(input: BackendProcessingConfig?) = input?.le
|
|
|
323
322
|
val httpHeaders = JSONObject()
|
|
324
323
|
for ((key, value) in it.httpHeaders!!) httpHeaders.put(key, value)
|
|
325
324
|
httpHeaders
|
|
326
|
-
}
|
|
327
|
-
"mdlVerification" to it.mdlVerification,
|
|
325
|
+
}
|
|
328
326
|
).toJson()
|
|
329
327
|
}
|
|
330
328
|
|
|
@@ -918,18 +916,18 @@ fun generateCameraSize(width: Int?, height: Int?): JSONObject? {
|
|
|
918
916
|
fun documentReaderDocumentTypeFromJSON(input: JSONObject?) = input?.let {
|
|
919
917
|
val result = DocumentReaderDocumentType()
|
|
920
918
|
|
|
921
|
-
result.pageIndex = it.
|
|
922
|
-
result.documentID = it.
|
|
923
|
-
result.dType = it.
|
|
924
|
-
result.dFormat = it.
|
|
925
|
-
result.dMRZ = it.
|
|
926
|
-
result.isDeprecated = it.
|
|
927
|
-
result.name = it.
|
|
928
|
-
result.ICAOCode = it.
|
|
929
|
-
result.dDescription = it.
|
|
930
|
-
result.dCountryName = it.
|
|
931
|
-
result.dYear = it.
|
|
932
|
-
result.FDSID = it.
|
|
919
|
+
result.pageIndex = it.optInt("pageIndex")
|
|
920
|
+
result.documentID = it.optInt("documentID")
|
|
921
|
+
result.dType = it.optInt("dType")
|
|
922
|
+
result.dFormat = it.optInt("dFormat")
|
|
923
|
+
result.dMRZ = it.optBoolean("dMRZ")
|
|
924
|
+
result.isDeprecated = it.optBoolean("isDeprecated")
|
|
925
|
+
result.name = it.optString("name")
|
|
926
|
+
result.ICAOCode = it.optString("ICAOCode")
|
|
927
|
+
result.dDescription = it.optString("dDescription")
|
|
928
|
+
result.dCountryName = it.optString("dCountryName")
|
|
929
|
+
result.dYear = it.optString("dYear")
|
|
930
|
+
result.FDSID = it.optJSONArray("FDSID").toIntArray()
|
|
933
931
|
|
|
934
932
|
result
|
|
935
933
|
}
|
|
@@ -1453,7 +1451,7 @@ fun generateDocumentReaderAuthenticityElement(input: DocumentReaderAuthenticityE
|
|
|
1453
1451
|
fun paResourcesIssuerFromJSON(input: JSONObject?) = input?.let {
|
|
1454
1452
|
val result = PAResourcesIssuer()
|
|
1455
1453
|
result.data = it.optString("data").toByteArray()
|
|
1456
|
-
result.friendlyName = it.
|
|
1454
|
+
result.friendlyName = it.optString("friendlyName")
|
|
1457
1455
|
result.attributes = it.optJSONArray("attributes").toArray(::paAttributeFromJSON)
|
|
1458
1456
|
result
|
|
1459
1457
|
}
|
|
@@ -1733,9 +1731,9 @@ fun generateDocumentReaderRFIDOrigin(input: DocumentReaderRfidOrigin?) = input?.
|
|
|
1733
1731
|
|
|
1734
1732
|
fun documentReaderTextSourceFromJSON(input: JSONObject?) = input?.let {
|
|
1735
1733
|
val result = DocumentReaderTextSource()
|
|
1736
|
-
result.sourceType = it.
|
|
1737
|
-
result.source = it.
|
|
1738
|
-
result.validityStatus = it.
|
|
1734
|
+
result.sourceType = it.optInt("sourceType")
|
|
1735
|
+
result.source = it.optString("source")
|
|
1736
|
+
result.validityStatus = it.optInt("validityStatus")
|
|
1739
1737
|
result
|
|
1740
1738
|
}
|
|
1741
1739
|
|
|
@@ -1877,7 +1875,7 @@ fun documentReaderResultsFromJSON(input: JSONObject?) = input?.let {
|
|
|
1877
1875
|
result.mrzPosition = it.optJSONArray("mrzPosition").toList(::elementPositionFromJSON)!!
|
|
1878
1876
|
result.imageQuality = it.optJSONArray("imageQuality").toList(::imageQualityGroupFromJSON)!!
|
|
1879
1877
|
result.rawResult = it.optString("rawResult")
|
|
1880
|
-
result.bsiTr03135Results = it.
|
|
1878
|
+
result.bsiTr03135Results = it.optString("bsiTr03135Results")
|
|
1881
1879
|
result.rfidSessionData = rfidSessionDataFromJSON(it.optJSONObject("rfidSessionData"))
|
|
1882
1880
|
result.authenticityResult = documentReaderAuthenticityResultFromJSON(it.optJSONObject("authenticityResult"))
|
|
1883
1881
|
result.barcodeResult = documentReaderBarcodeResultFromJSON(it.optJSONObject("barcodeResult"))
|
|
@@ -2126,7 +2124,6 @@ fun finalizeConfigFromJSON(input: JSONObject?) = input?.let {
|
|
|
2126
2124
|
if (it.has("rawImages")) result.setRawImages(it.getBoolean("rawImages"))
|
|
2127
2125
|
if (it.has("video")) result.setVideo(it.getBoolean("video"))
|
|
2128
2126
|
if (it.has("rfidSession")) result.setRfidSession(it.getBoolean("rfidSession"))
|
|
2129
|
-
if (it.has("mdlSession")) result.setMdlSession(it.getBoolean("mdlSession"))
|
|
2130
2127
|
result.build()
|
|
2131
2128
|
}
|
|
2132
2129
|
|
|
@@ -2134,7 +2131,6 @@ fun generateFinalizeConfig(input: FinalizeConfig?) = input?.let {
|
|
|
2134
2131
|
mapOf(
|
|
2135
2132
|
"rawImages" to it.getPrivateProperty("rawImages"),
|
|
2136
2133
|
"video" to it.getPrivateProperty("video"),
|
|
2137
|
-
"rfidSession" to it.getPrivateProperty("rfidSession")
|
|
2138
|
-
"mdlSession" to it.getPrivateProperty("mdlSession"),
|
|
2134
|
+
"rfidSession" to it.getPrivateProperty("rfidSession")
|
|
2139
2135
|
).toJson()
|
|
2140
2136
|
}
|
package/src/android/Utils.kt
CHANGED
|
@@ -157,11 +157,6 @@ fun JSONObject.getStringOrNull(name: String): String? {
|
|
|
157
157
|
return null
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
fun JSONObject.getJSONArrayOrNull(name: String): JSONArray? {
|
|
161
|
-
if (has(name) && get(name).toString() != "null") return getJSONArray(name)
|
|
162
|
-
return null
|
|
163
|
-
}
|
|
164
|
-
|
|
165
160
|
fun <T : Any> KClass<T>.constructor(vararg argTypes: KClass<*>): Constructor<T> {
|
|
166
161
|
val types = mutableListOf<Class<*>>()
|
|
167
162
|
for (argType in argTypes) types.add(argType.java)
|
package/src/android/build.gradle
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
repositories {
|
|
2
2
|
maven {
|
|
3
|
-
url "https://maven.regulaforensics.com/RegulaDocumentReader/
|
|
3
|
+
url "https://maven.regulaforensics.com/RegulaDocumentReader/Nightly"
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
dependencies {
|
|
8
8
|
//noinspection GradleDependency
|
|
9
|
-
implementation ('com.regula.documentreader:api:9.
|
|
9
|
+
implementation ('com.regula.documentreader:api:9.3.12627'){
|
|
10
10
|
transitive = true
|
|
11
11
|
}
|
|
12
12
|
}
|
package/src/ios/RGLWConfig.m
CHANGED
|
@@ -194,10 +194,7 @@
|
|
|
194
194
|
if (options[@"strictSecurityChecks"]) processParams.strictSecurityChecks = options[@"strictSecurityChecks"];
|
|
195
195
|
if (options[@"returnTransliteratedFields"]) processParams.returnTransliteratedFields = options[@"returnTransliteratedFields"];
|
|
196
196
|
if (options[@"checkCaptureProcessIntegrity"]) processParams.checkCaptureProcessIntegrity = options[@"checkCaptureProcessIntegrity"];
|
|
197
|
-
|
|
198
|
-
if (options[@"debugSaveBinarySession"]) processParams.debugSaveBinarySession = options[@"debugSaveBinarySession"];
|
|
199
|
-
if (options[@"checkVDS"]) processParams.checkVDS = options[@"checkVDS"];
|
|
200
|
-
|
|
197
|
+
|
|
201
198
|
// Int
|
|
202
199
|
if([options valueForKey:@"measureSystem"] != nil)
|
|
203
200
|
processParams.measureSystem = [[options valueForKey:@"measureSystem"] integerValue];
|
|
@@ -228,7 +225,7 @@
|
|
|
228
225
|
if(options[@"logLevel"]) processParams.logLevel = options[@"logLevel"];
|
|
229
226
|
if(options[@"mrzDetectMode"]) processParams.mrzDetectMode = options[@"mrzDetectMode"];
|
|
230
227
|
if(options[@"pdfPagesLimit"]) processParams.pdfPagesLimit = options[@"pdfPagesLimit"];
|
|
231
|
-
|
|
228
|
+
|
|
232
229
|
// String
|
|
233
230
|
if([options valueForKey:@"dateFormat"] != nil)
|
|
234
231
|
processParams.dateFormat = [options valueForKey:@"dateFormat"];
|
|
@@ -236,7 +233,7 @@
|
|
|
236
233
|
processParams.scenario = [options valueForKey:@"scenario"];
|
|
237
234
|
if([options valueForKey:@"captureButtonScenario"] != nil)
|
|
238
235
|
processParams.captureButtonScenario = [options valueForKey:@"captureButtonScenario"];
|
|
239
|
-
|
|
236
|
+
|
|
240
237
|
// Double
|
|
241
238
|
if([options valueForKey:@"timeout"] != nil)
|
|
242
239
|
processParams.timeout = [options valueForKey:@"timeout"];
|
|
@@ -248,7 +245,7 @@
|
|
|
248
245
|
processParams.documentAreaMin = [options valueForKey:@"documentAreaMin"];
|
|
249
246
|
if([options valueForKey:@"timeoutLiveness"] != nil)
|
|
250
247
|
processParams.timeoutLiveness = [options valueForKey:@"timeoutLiveness"];
|
|
251
|
-
|
|
248
|
+
|
|
252
249
|
// JSONArray
|
|
253
250
|
if([options valueForKey:@"documentIDList"] != nil)
|
|
254
251
|
processParams.documentIDList = [options valueForKey:@"documentIDList"];
|
|
@@ -266,7 +263,7 @@
|
|
|
266
263
|
processParams.lcidIgnoreFilter = [options mutableArrayValueForKey:@"lcidIgnoreFilter"];
|
|
267
264
|
if (options[@"lcidFilter"]) processParams.lcidFilter = options[@"lcidFilter"];
|
|
268
265
|
if (options[@"fieldTypesIgnoreFilter"]) processParams.fieldTypesIgnoreFilter = options[@"fieldTypesIgnoreFilter"];
|
|
269
|
-
|
|
266
|
+
|
|
270
267
|
// JSONObject
|
|
271
268
|
if (options[@"customParams"]) processParams.customParams = options[@"customParams"];
|
|
272
269
|
if ([options valueForKey:@"imageQA"] != nil)
|
|
@@ -286,7 +283,7 @@
|
|
|
286
283
|
|
|
287
284
|
+(NSDictionary*)getProcessParams:(RGLProcessParams*)processParams {
|
|
288
285
|
NSMutableDictionary *result = [NSMutableDictionary new];
|
|
289
|
-
|
|
286
|
+
|
|
290
287
|
// Boolean
|
|
291
288
|
result[@"multipageProcessing"] = processParams.multipageProcessing;
|
|
292
289
|
result[@"logs"] = processParams.logs;
|
|
@@ -329,9 +326,6 @@
|
|
|
329
326
|
result[@"strictSecurityChecks"] = processParams.strictSecurityChecks;
|
|
330
327
|
result[@"returnTransliteratedFields"] = processParams.returnTransliteratedFields;
|
|
331
328
|
result[@"checkCaptureProcessIntegrity"] = processParams.checkCaptureProcessIntegrity;
|
|
332
|
-
result[@"strictExpiryDate"] = processParams.strictExpiryDate;
|
|
333
|
-
result[@"debugSaveBinarySession"] = processParams.debugSaveBinarySession;
|
|
334
|
-
result[@"checkVDS"] = processParams.checkVDS;
|
|
335
329
|
|
|
336
330
|
// Int
|
|
337
331
|
result[@"measureSystem"] = [NSNumber numberWithInteger:processParams.measureSystem];
|
|
@@ -524,12 +518,13 @@
|
|
|
524
518
|
customization.livenessAnimationImageContentMode = [self viewContentModeWithNumber:[options valueForKey:@"livenessAnimationImageContentMode"]];
|
|
525
519
|
if([options valueForKey:@"borderBackgroundImageContentMode"] != nil)
|
|
526
520
|
customization.borderBackgroundImageContentMode = [self viewContentModeWithNumber:[options valueForKey:@"borderBackgroundImageContentMode"]];
|
|
527
|
-
|
|
528
|
-
if(options
|
|
529
|
-
|
|
530
|
-
if(options
|
|
531
|
-
|
|
532
|
-
if(options
|
|
521
|
+
|
|
522
|
+
if([options valueForKey:@"colors"] != nil)
|
|
523
|
+
[self setColors:[customization.uiConfiguration valueForKey:@"colors"] input:[options valueForKey:@"colors"]];
|
|
524
|
+
if([options valueForKey:@"fonts"] != nil)
|
|
525
|
+
[self setFonts:[customization.uiConfiguration valueForKey:@"fonts"] input:[options valueForKey:@"fonts"]];
|
|
526
|
+
if([options valueForKey:@"images"] != nil)
|
|
527
|
+
[self setImages:[customization.uiConfiguration valueForKey:@"images"] input:[options valueForKey:@"images"]];
|
|
533
528
|
}
|
|
534
529
|
|
|
535
530
|
+(NSDictionary*)getCustomization:(RGLCustomization*)customization {
|
|
@@ -620,8 +615,6 @@
|
|
|
620
615
|
result[@"colors"] = [self getColors: [customization.uiConfiguration valueForKey:@"colors"]];
|
|
621
616
|
result[@"fonts"] = [self getFonts: [customization.uiConfiguration valueForKey:@"fonts"]];
|
|
622
617
|
result[@"images"] = [self getImages: [customization.uiConfiguration valueForKey:@"images"]];
|
|
623
|
-
result[@"timings"] = [self getTimings: [customization.uiConfiguration valueForKey:@"timings"]];
|
|
624
|
-
result[@"contentModes"] = [self getContentModes: [customization.uiConfiguration valueForKey:@"contentModes"]];
|
|
625
618
|
|
|
626
619
|
return result;
|
|
627
620
|
}
|
|
@@ -1104,35 +1097,25 @@
|
|
|
1104
1097
|
if(input[@"mdlProcessingScreenProgressLabelText"]) result[@(MDLProcessingScreenProgressLabelText)] = [self colorWithInt:input[@"mdlProcessingScreenProgressLabelText"]];
|
|
1105
1098
|
if(input[@"mdlProcessingScreenResultLabelText"]) result[@(MDLProcessingScreenResultLabelText)] = [self colorWithInt:input[@"mdlProcessingScreenResultLabelText"]];
|
|
1106
1099
|
if(input[@"mdlProcessingScreenLoadingBar"]) result[@(MDLProcessingScreenLoadingBar)] = [self colorWithInt:input[@"mdlProcessingScreenLoadingBar"]];
|
|
1107
|
-
if(input[@"nextPageIdCardFront"]) result[@(RGLCustomizationColorNextPageIdCardFront)] = [self colorWithInt:input[@"nextPageIdCardFront"]];
|
|
1108
|
-
if(input[@"nextPageIdCardBack"]) result[@(RGLCustomizationColorNextPageIdCardBack)] = [self colorWithInt:input[@"nextPageIdCardBack"]];
|
|
1109
|
-
if(input[@"nextPagePassportShift"]) result[@(RGLCustomizationColorNextPagePassportShift)] = [self colorWithInt:input[@"nextPagePassportShift"]];
|
|
1110
|
-
if(input[@"nextPagePassportFlip"]) result[@(RGLCustomizationColorNextPagePassportFlip)] = [self colorWithInt:input[@"nextPagePassportFlip"]];
|
|
1111
1100
|
}
|
|
1112
1101
|
|
|
1113
1102
|
+(NSDictionary*)getColors:(NSDictionary*)input {
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
if(input[@(RGLCustomizationColorNextPageIdCardFront)]) result[@"nextPageIdCardFront"] = [self intWithColor:input[@(RGLCustomizationColorNextPageIdCardFront)]];
|
|
1131
|
-
if(input[@(RGLCustomizationColorNextPageIdCardBack)]) result[@"nextPageIdCardBack"] = [self intWithColor:input[@(RGLCustomizationColorNextPageIdCardBack)]];
|
|
1132
|
-
if(input[@(RGLCustomizationColorNextPagePassportShift)]) result[@"nextPagePassportShift"] = [self intWithColor:input[@(RGLCustomizationColorNextPagePassportShift)]];
|
|
1133
|
-
if(input[@(RGLCustomizationColorNextPagePassportFlip)]) result[@"nextPagePassportFlip"] = [self intWithColor:input[@(RGLCustomizationColorNextPagePassportFlip)]];
|
|
1134
|
-
|
|
1135
|
-
return result;
|
|
1103
|
+
return @{
|
|
1104
|
+
@"rfidProcessingScreenBackground": [self intWithColor:input[@(RFIDProcessingScreenBackground)]],
|
|
1105
|
+
@"rfidProcessingScreenHintLabelText": [self intWithColor:input[@(RFIDProcessingScreenHintLabelText)]],
|
|
1106
|
+
@"rfidProcessingScreenHintLabelBackground": [self intWithColor:input[@(RFIDProcessingScreenHintLabelBackground)]],
|
|
1107
|
+
@"rfidProcessingScreenProgressLabelText": [self intWithColor:input[@(RFIDProcessingScreenProgressLabelText)]],
|
|
1108
|
+
@"rfidProcessingScreenProgressBar": [self intWithColor:input[@(RFIDProcessingScreenProgressBar)]],
|
|
1109
|
+
@"rfidProcessingScreenProgressBarBackground": [self intWithColor:input[@(RFIDProcessingScreenProgressBarBackground)]],
|
|
1110
|
+
@"rfidProcessingScreenResultLabelText": [self intWithColor:input[@(RFIDProcessingScreenResultLabelText)]],
|
|
1111
|
+
@"rfidProcessingScreenLoadingBar": [self intWithColor:input[@(RFIDProcessingScreenLoadingBar)]],
|
|
1112
|
+
@"mdlProcessingScreenBackground": [self intWithColor:input[@(MDLProcessingScreenBackground)]],
|
|
1113
|
+
@"mdlProcessingScreenHintLabelText": [self intWithColor:input[@(MDLProcessingScreenHintLabelText)]],
|
|
1114
|
+
@"mdlProcessingScreenHintLabelBackground": [self intWithColor:input[@(MDLProcessingScreenHintLabelBackground)]],
|
|
1115
|
+
@"mdlProcessingScreenProgressLabelText": [self intWithColor:input[@(MDLProcessingScreenProgressLabelText)]],
|
|
1116
|
+
@"mdlProcessingScreenResultLabelText": [self intWithColor:input[@(MDLProcessingScreenResultLabelText)]],
|
|
1117
|
+
@"mdlProcessingScreenLoadingBar": [self intWithColor:input[@(MDLProcessingScreenLoadingBar)]],
|
|
1118
|
+
};
|
|
1136
1119
|
}
|
|
1137
1120
|
|
|
1138
1121
|
+(void)setFonts:(NSMutableDictionary*)result input:(NSDictionary*)input {
|
|
@@ -1147,119 +1130,25 @@
|
|
|
1147
1130
|
}
|
|
1148
1131
|
|
|
1149
1132
|
+(NSDictionary*)getFonts:(NSDictionary*)input {
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1133
|
+
return @{
|
|
1134
|
+
@"rfidProcessingScreenHintLabel": [self generateUIFont:input[@(RFIDProcessingScreenHintLabel)]],
|
|
1135
|
+
@"rfidProcessingScreenProgressLabel": [self generateUIFont:input[@(RFIDProcessingScreenProgressLabel)]],
|
|
1136
|
+
@"rfidProcessingScreenResultLabel": [self generateUIFont:input[@(RFIDProcessingScreenResultLabel)]],
|
|
1137
|
+
@"mdlProcessingScreenHintLabel": [self generateUIFont:input[@(MDLProcessingScreenHintLabel)]],
|
|
1138
|
+
@"mdlProcessingScreenProgressLabel": [self generateUIFont:input[@(MDLProcessingScreenProgressLabel)]],
|
|
1139
|
+
@"mdlProcessingScreenResultLabel": [self generateUIFont:input[@(MDLProcessingScreenResultLabel)]],
|
|
1157
1140
|
};
|
|
1158
1141
|
}
|
|
1159
1142
|
|
|
1160
1143
|
+(void)setImages:(NSMutableDictionary*)result input:(NSDictionary*)input {
|
|
1161
|
-
if(input[@"
|
|
1162
|
-
if(input[@"
|
|
1163
|
-
if(input[@"borderBackground"]) result[RGLCustomizationImageBorderBackground] = [RGLWJSONConstructor imageWithBase64:input[@"borderBackground"]];
|
|
1164
|
-
if(input[@"torchButtonOn"]) result[RGLCustomizationImageTorchButtonOn] = [RGLWJSONConstructor imageWithBase64:input[@"torchButtonOn"]];
|
|
1165
|
-
if(input[@"torchButtonOff"]) result[RGLCustomizationImageTorchButtonOff] = [RGLWJSONConstructor imageWithBase64:input[@"torchButtonOff"]];
|
|
1166
|
-
if(input[@"captureButton"]) result[RGLCustomizationImageCaptureButton] = [RGLWJSONConstructor imageWithBase64:input[@"captureButton"]];
|
|
1167
|
-
if(input[@"switchButton"]) result[RGLCustomizationImageSwitchButton] = [RGLWJSONConstructor imageWithBase64:input[@"switchButton"]];
|
|
1168
|
-
if(input[@"closeButton"]) result[RGLCustomizationImageCloseButton] = [RGLWJSONConstructor imageWithBase64:input[@"closeButton"]];
|
|
1169
|
-
if(input[@"multipageButton"]) result[RGLCustomizationImageMultipageButton] = [RGLWJSONConstructor imageWithBase64:input[@"multipageButton"]];
|
|
1170
|
-
if(input[@"rfidProcessingScreenFailureImage"]) result[RGLCustomizationImageRFIDProcessingScreenFailure] = [RGLWJSONConstructor imageWithBase64:input[@"rfidProcessingScreenFailureImage"]];
|
|
1171
|
-
if(input[@"mdlProcessingScreenFailureImage"]) result[RGLCustomizationImageMDLProcessingScreenFailure] = [RGLWJSONConstructor imageWithBase64:input[@"mdlProcessingScreenFailureImage"]];
|
|
1172
|
-
if(input[@"nextPageIdCardFront"]) result[RGLCustomizationImageNextPageIdCardFront] = [RGLWJSONConstructor imageWithBase64:input[@"nextPageIdCardFront"]];
|
|
1173
|
-
if(input[@"nextPageIdCardBack"]) result[RGLCustomizationImageNextPageIdCardBack] = [RGLWJSONConstructor imageWithBase64:input[@"nextPageIdCardBack"]];
|
|
1174
|
-
if(input[@"nextPagePassportShift"]) result[RGLCustomizationImageNextPagePassportShift] = [RGLWJSONConstructor imageWithBase64:input[@"nextPagePassportShift"]];
|
|
1175
|
-
if(input[@"nextPagePassportFlipStart"]) result[RGLCustomizationImageNextPagePassportFlipStart] = [RGLWJSONConstructor imageWithBase64:input[@"nextPagePassportFlipStart"]];
|
|
1176
|
-
if(input[@"nextPagePassportFlipClean"]) result[RGLCustomizationImageNextPagePassportFlipClean] = [RGLWJSONConstructor imageWithBase64:input[@"nextPagePassportFlipClean"]];
|
|
1177
|
-
if(input[@"nextPagePassportFlipTop"]) result[RGLCustomizationImageNextPagePassportFlipTop] = [RGLWJSONConstructor imageWithBase64:input[@"nextPagePassportFlipTop"]];
|
|
1178
|
-
if(input[@"nextPagePassportFlipBottom"]) result[RGLCustomizationImageNextPagePassportFlipBottom] = [RGLWJSONConstructor imageWithBase64:input[@"nextPagePassportFlipBottom"]];
|
|
1144
|
+
if(input[@"rfidProcessingScreenFailureImage"]) result[@(RFIDProcessingScreenFailureImage)] = [RGLWJSONConstructor imageWithBase64:input[@"rfidProcessingScreenFailureImage"]];
|
|
1145
|
+
if(input[@"mdlProcessingScreenFailureImage"]) result[@(MDLProcessingScreenFailureImage)] = [RGLWJSONConstructor imageWithBase64:input[@"mdlProcessingScreenFailureImage"]];
|
|
1179
1146
|
}
|
|
1180
1147
|
|
|
1181
1148
|
+(NSDictionary*)getImages:(NSDictionary*)input {
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
i = RGLCustomizationImageHelpAnimation;
|
|
1186
|
-
if(input[i]) result[@"helpAnimation"] = [RGLWJSONConstructor base64WithImage:input[i]];
|
|
1187
|
-
i = RGLCustomizationImageLivenessAnimation;
|
|
1188
|
-
if(input[i]) result[@"livenessAnimation"] = [RGLWJSONConstructor base64WithImage:input[i]];
|
|
1189
|
-
i = RGLCustomizationImageBorderBackground;
|
|
1190
|
-
if(input[i]) result[@"borderBackground"] = [RGLWJSONConstructor base64WithImage:input[i]];
|
|
1191
|
-
i = RGLCustomizationImageTorchButtonOn;
|
|
1192
|
-
if(input[i]) result[@"torchButtonOn"] = [RGLWJSONConstructor base64WithImage:input[i]];
|
|
1193
|
-
i = RGLCustomizationImageTorchButtonOff;
|
|
1194
|
-
if(input[i]) result[@"torchButtonOff"] = [RGLWJSONConstructor base64WithImage:input[i]];
|
|
1195
|
-
i = RGLCustomizationImageCaptureButton;
|
|
1196
|
-
if(input[i]) result[@"captureButton"] = [RGLWJSONConstructor base64WithImage:input[i]];
|
|
1197
|
-
i = RGLCustomizationImageSwitchButton;
|
|
1198
|
-
if(input[i]) result[@"switchButton"] = [RGLWJSONConstructor base64WithImage:input[i]];
|
|
1199
|
-
i = RGLCustomizationImageCloseButton;
|
|
1200
|
-
if(input[i]) result[@"closeButton"] = [RGLWJSONConstructor base64WithImage:input[i]];
|
|
1201
|
-
i = RGLCustomizationImageMultipageButton;
|
|
1202
|
-
if(input[i]) result[@"multipageButton"] = [RGLWJSONConstructor base64WithImage:input[i]];
|
|
1203
|
-
i = RGLCustomizationImageRFIDProcessingScreenFailure;
|
|
1204
|
-
if(input[i]) result[@"rfidProcessingScreenFailureImage"] = [RGLWJSONConstructor base64WithImage:input[i]];
|
|
1205
|
-
i = RGLCustomizationImageMDLProcessingScreenFailure;
|
|
1206
|
-
if(input[i]) result[@"mdlProcessingScreenFailureImage"] = [RGLWJSONConstructor base64WithImage:input[i]];
|
|
1207
|
-
i = RGLCustomizationImageNextPageIdCardFront;
|
|
1208
|
-
if(input[i]) result[@"nextPageIdCardFront"] = [RGLWJSONConstructor base64WithImage:input[i]];
|
|
1209
|
-
i = RGLCustomizationImageNextPageIdCardBack;
|
|
1210
|
-
if(input[i]) result[@"nextPageIdCardBack"] = [RGLWJSONConstructor base64WithImage:input[i]];
|
|
1211
|
-
i = RGLCustomizationImageNextPagePassportShift;
|
|
1212
|
-
if(input[i]) result[@"nextPagePassportShift"] = [RGLWJSONConstructor base64WithImage:input[i]];
|
|
1213
|
-
i = RGLCustomizationImageNextPagePassportFlipStart;
|
|
1214
|
-
if(input[i]) result[@"nextPagePassportFlipStart"] = [RGLWJSONConstructor base64WithImage:input[i]];
|
|
1215
|
-
i = RGLCustomizationImageNextPagePassportFlipClean;
|
|
1216
|
-
if(input[i]) result[@"nextPagePassportFlipClean"] = [RGLWJSONConstructor base64WithImage:input[i]];
|
|
1217
|
-
i = RGLCustomizationImageNextPagePassportFlipTop;
|
|
1218
|
-
if(input[i]) result[@"nextPagePassportFlipTop"] = [RGLWJSONConstructor base64WithImage:input[i]];
|
|
1219
|
-
i = RGLCustomizationImageNextPagePassportFlipBottom;
|
|
1220
|
-
if(input[i]) result[@"nextPagePassportFlipBottom"] = [RGLWJSONConstructor base64WithImage:input[i]];
|
|
1221
|
-
|
|
1222
|
-
return result;
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
+(void)setTimings:(NSMutableDictionary*)result input:(NSDictionary*)input {
|
|
1226
|
-
if(input[@"nextPageIdCardStartDelay"]) result[@(RGLCustomizationTimingNextPageIdCardStartDelay)] = input[@"nextPageIdCardStartDelay"];
|
|
1227
|
-
if(input[@"nextPageIdCardEndDelay"]) result[@(RGLCustomizationTimingNextPageIdCardEndDelay)] = input[@"nextPageIdCardEndDelay"];
|
|
1228
|
-
if(input[@"nextPagePassportShiftStartDelay"]) result[@(RGLCustomizationTimingNextPagePassportShiftStartDelay)] = input[@"nextPagePassportShiftStartDelay"];
|
|
1229
|
-
if(input[@"nextPagePassportShiftEndDelay"]) result[@(RGLCustomizationTimingNextPagePassportShiftEndDelay)] = input[@"nextPagePassportShiftEndDelay"];
|
|
1230
|
-
if(input[@"nextPagePassportFlipStartDelay"]) result[@(RGLCustomizationTimingNextPagePassportFlipStartDelay)] = input[@"nextPagePassportFlipStartDelay"];
|
|
1231
|
-
if(input[@"nextPagePassportFlipEndDelay"]) result[@(RGLCustomizationTimingNextPagePassportFlipEndDelay)] = input[@"nextPagePassportFlipEndDelay"];
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
+(NSDictionary*)getTimings:(NSDictionary*)input {
|
|
1235
|
-
id result = @{}.mutableCopy;
|
|
1236
|
-
id i;
|
|
1237
|
-
|
|
1238
|
-
i = @(RGLCustomizationTimingNextPageIdCardStartDelay);
|
|
1239
|
-
if(input[i]) result[@"nextPageIdCardStartDelay"] = input[i];
|
|
1240
|
-
i = @(RGLCustomizationTimingNextPageIdCardEndDelay);
|
|
1241
|
-
if(input[i]) result[@"nextPageIdCardEndDelay"] = input[i];
|
|
1242
|
-
i = @(RGLCustomizationTimingNextPagePassportShiftStartDelay);
|
|
1243
|
-
if(input[i]) result[@"nextPagePassportShiftStartDelay"] = input[i];
|
|
1244
|
-
i = @(RGLCustomizationTimingNextPagePassportShiftEndDelay);
|
|
1245
|
-
if(input[i]) result[@"nextPagePassportShiftEndDelay"] = input[i];
|
|
1246
|
-
i = @(RGLCustomizationTimingNextPagePassportFlipStartDelay);
|
|
1247
|
-
if(input[i]) result[@"nextPagePassportFlipStartDelay"] = input[i];
|
|
1248
|
-
i = @(RGLCustomizationTimingNextPagePassportFlipEndDelay);
|
|
1249
|
-
if(input[i]) result[@"nextPagePassportFlipEndDelay"] = input[i];
|
|
1250
|
-
|
|
1251
|
-
return result;
|
|
1252
|
-
}
|
|
1253
|
-
|
|
1254
|
-
+(void)setContentModes:(NSMutableDictionary*)result input:(NSDictionary*)input {
|
|
1255
|
-
if(input[@"nextPageIdCardFront"]) result[@(RGLCustomizationContentModeNextPageIdCardFront)] = input[@"nextPageIdCardFront"];
|
|
1256
|
-
if(input[@"nextPageIdCardBack"]) result[@(RGLCustomizationContentModeNextPageIdCardBack)] = input[@"nextPageIdCardBack"];
|
|
1257
|
-
}
|
|
1258
|
-
|
|
1259
|
-
+(NSDictionary*)getContentModes:(NSDictionary*)input {
|
|
1260
|
-
return @{
|
|
1261
|
-
@"nextPageIdCardFront": input[@(RGLCustomizationContentModeNextPageIdCardFront)],
|
|
1262
|
-
@"nextPageIdCardBack": input[@(RGLCustomizationContentModeNextPageIdCardBack)],
|
|
1149
|
+
return @{
|
|
1150
|
+
@"rfidProcessingScreenFailureImage": [RGLWJSONConstructor base64WithImage:input[@(RFIDProcessingScreenFailureImage)]],
|
|
1151
|
+
@"mdlProcessingScreenFailureImage": [RGLWJSONConstructor base64WithImage:input[@(MDLProcessingScreenFailureImage)]],
|
|
1263
1152
|
};
|
|
1264
1153
|
}
|
|
1265
1154
|
|
|
@@ -286,8 +286,6 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
286
286
|
result.httpHeaders = [input valueForKey:@"httpHeaders"];
|
|
287
287
|
if([input valueForKey:@"rfidServerSideChipVerification"] != nil)
|
|
288
288
|
result.rfidServerSideChipVerification = [input valueForKey:@"rfidServerSideChipVerification"];
|
|
289
|
-
if([input valueForKey:@"mdlVerification"] != nil)
|
|
290
|
-
result.mDLVerification = [input valueForKey:@"mdlVerification"];
|
|
291
289
|
if (input[@"timeoutConnection"]) result.timeoutConnection = input[@"timeoutConnection"];
|
|
292
290
|
|
|
293
291
|
return result;
|
|
@@ -300,7 +298,6 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
300
298
|
result[@"url"] = input.url;
|
|
301
299
|
result[@"httpHeaders"] = input.httpHeaders;
|
|
302
300
|
result[@"rfidServerSideChipVerification"] = input.rfidServerSideChipVerification;
|
|
303
|
-
result[@"mdlVerification"] = input.mDLVerification;
|
|
304
301
|
result[@"timeoutConnection"] = input.timeoutConnection;
|
|
305
302
|
|
|
306
303
|
return result;
|
|
@@ -2631,7 +2628,6 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
2631
2628
|
if (input[@"rawImages"]) result.rawImages = [input[@"rawImages"] boolValue];
|
|
2632
2629
|
if (input[@"video"]) result.video = [input[@"video"] boolValue];
|
|
2633
2630
|
if (input[@"rfidSession"]) result.rfidSession = [input[@"rfidSession"] boolValue];
|
|
2634
|
-
if (input[@"mdlSession"]) result.mdlSession = [input[@"mdlSession"] boolValue];
|
|
2635
2631
|
|
|
2636
2632
|
return result;
|
|
2637
2633
|
}
|
|
@@ -2643,7 +2639,6 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
2643
2639
|
result[@"rawImages"] = @(input.rawImages);
|
|
2644
2640
|
result[@"video"] = @(input.video);
|
|
2645
2641
|
result[@"rfidSession"] = @(input.rfidSession);
|
|
2646
|
-
result[@"mdlSession"] = @(input.mdlSession);
|
|
2647
2642
|
|
|
2648
2643
|
return result;
|
|
2649
2644
|
}
|
package/www/DocumentReader.js
CHANGED
|
@@ -1368,7 +1368,6 @@ class BackendProcessingConfig {
|
|
|
1368
1368
|
result.url = jsonObject["url"]
|
|
1369
1369
|
result.httpHeaders = jsonObject["httpHeaders"]
|
|
1370
1370
|
result.rfidServerSideChipVerification = jsonObject["rfidServerSideChipVerification"]
|
|
1371
|
-
result.mdlVerification = jsonObject["mdlVerification"]
|
|
1372
1371
|
result.timeoutConnection = jsonObject["timeoutConnection"]
|
|
1373
1372
|
|
|
1374
1373
|
return result
|
|
@@ -1475,9 +1474,6 @@ class ProcessParams {
|
|
|
1475
1474
|
result.strictSecurityChecks = jsonObject["strictSecurityChecks"]
|
|
1476
1475
|
result.returnTransliteratedFields = jsonObject["returnTransliteratedFields"]
|
|
1477
1476
|
result.checkCaptureProcessIntegrity = jsonObject["checkCaptureProcessIntegrity"]
|
|
1478
|
-
result.strictExpiryDate = jsonObject["strictExpiryDate"]
|
|
1479
|
-
result.debugSaveBinarySession = jsonObject["debugSaveBinarySession"]
|
|
1480
|
-
result.checkVDS = jsonObject["checkVDS"]
|
|
1481
1477
|
result.barcodeParserType = jsonObject["barcodeParserType"]
|
|
1482
1478
|
result.perspectiveAngle = jsonObject["perspectiveAngle"]
|
|
1483
1479
|
result.minDPI = jsonObject["minDPI"]
|
|
@@ -1580,10 +1576,6 @@ class CustomizationColors {
|
|
|
1580
1576
|
result.rfidEnableNfcDescriptionText = jsonObject["rfidEnableNfcDescriptionText"]
|
|
1581
1577
|
result.rfidEnableNfcButtonText = jsonObject["rfidEnableNfcButtonText"]
|
|
1582
1578
|
result.rfidEnableNfcButtonBackground = jsonObject["rfidEnableNfcButtonBackground"]
|
|
1583
|
-
result.nextPageIdCardFront = jsonObject["nextPageIdCardFront"]
|
|
1584
|
-
result.nextPageIdCardBack = jsonObject["nextPageIdCardBack"]
|
|
1585
|
-
result.nextPagePassportShift = jsonObject["nextPagePassportShift"]
|
|
1586
|
-
result.nextPagePassportFlip = jsonObject["nextPagePassportFlip"]
|
|
1587
1579
|
|
|
1588
1580
|
return result
|
|
1589
1581
|
}
|
|
@@ -1610,74 +1602,8 @@ class CustomizationImages {
|
|
|
1610
1602
|
if (jsonObject == null) return null
|
|
1611
1603
|
const result = new CustomizationImages()
|
|
1612
1604
|
|
|
1613
|
-
result.helpAnimation = jsonObject["helpAnimation"]
|
|
1614
|
-
result.livenessAnimation = jsonObject["livenessAnimation"]
|
|
1615
|
-
result.borderBackground = jsonObject["borderBackground"]
|
|
1616
|
-
result.torchButtonOn = jsonObject["torchButtonOn"]
|
|
1617
|
-
result.torchButtonOff = jsonObject["torchButtonOff"]
|
|
1618
|
-
result.captureButton = jsonObject["captureButton"]
|
|
1619
|
-
result.switchButton = jsonObject["switchButton"]
|
|
1620
|
-
result.closeButton = jsonObject["closeButton"]
|
|
1621
|
-
result.multipageButton = jsonObject["multipageButton"]
|
|
1622
1605
|
result.rfidProcessingScreenFailureImage = jsonObject["rfidProcessingScreenFailureImage"]
|
|
1623
1606
|
result.rfidEnableNfcImage = jsonObject["rfidEnableNfcImage"]
|
|
1624
|
-
result.rfidDisableNfcImage = jsonObject["rfidDisableNfcImage"]
|
|
1625
|
-
result.mdlProcessingScreenFailureImage = jsonObject["mdlProcessingScreenFailureImage"]
|
|
1626
|
-
result.mdlEnableNfcImage = jsonObject["mdlEnableNfcImage"]
|
|
1627
|
-
result.mdlDisableNfcImage = jsonObject["mdlDisableNfcImage"]
|
|
1628
|
-
result.nextPageIdCardFront = jsonObject["nextPageIdCardFront"]
|
|
1629
|
-
result.nextPageIdCardBack = jsonObject["nextPageIdCardBack"]
|
|
1630
|
-
result.nextPagePassportShift = jsonObject["nextPagePassportShift"]
|
|
1631
|
-
result.nextPagePassportFlipStart = jsonObject["nextPagePassportFlipStart"]
|
|
1632
|
-
result.nextPagePassportFlipClean = jsonObject["nextPagePassportFlipClean"]
|
|
1633
|
-
result.nextPagePassportFlipTop = jsonObject["nextPagePassportFlipTop"]
|
|
1634
|
-
result.nextPagePassportFlipBottom = jsonObject["nextPagePassportFlipBottom"]
|
|
1635
|
-
|
|
1636
|
-
return result
|
|
1637
|
-
}
|
|
1638
|
-
}
|
|
1639
|
-
|
|
1640
|
-
class CustomizationTimings {
|
|
1641
|
-
static fromJson(jsonObject) {
|
|
1642
|
-
if (jsonObject == null) return null
|
|
1643
|
-
const result = new CustomizationTimings()
|
|
1644
|
-
|
|
1645
|
-
result.nextPageIdCardStartDelay = jsonObject["nextPageIdCardStartDelay"]
|
|
1646
|
-
result.nextPageIdCardEndDelay = jsonObject["nextPageIdCardEndDelay"]
|
|
1647
|
-
result.nextPagePassportShiftStartDelay = jsonObject["nextPagePassportShiftStartDelay"]
|
|
1648
|
-
result.nextPagePassportShiftEndDelay = jsonObject["nextPagePassportShiftEndDelay"]
|
|
1649
|
-
result.nextPagePassportFlipStartDelay = jsonObject["nextPagePassportFlipStartDelay"]
|
|
1650
|
-
result.nextPagePassportFlipEndDelay = jsonObject["nextPagePassportFlipEndDelay"]
|
|
1651
|
-
|
|
1652
|
-
return result
|
|
1653
|
-
}
|
|
1654
|
-
}
|
|
1655
|
-
|
|
1656
|
-
class CustomizationContentModes {
|
|
1657
|
-
static fromJson(jsonObject) {
|
|
1658
|
-
if (jsonObject == null) return null
|
|
1659
|
-
const result = new CustomizationContentModes()
|
|
1660
|
-
|
|
1661
|
-
result.nextPageIdCardFront = jsonObject["nextPageIdCardFront"]
|
|
1662
|
-
result.nextPageIdCardBack = jsonObject["nextPageIdCardBack"]
|
|
1663
|
-
|
|
1664
|
-
return result
|
|
1665
|
-
}
|
|
1666
|
-
}
|
|
1667
|
-
|
|
1668
|
-
class CustomizationMatrices {
|
|
1669
|
-
static fromJson(jsonObject) {
|
|
1670
|
-
if (jsonObject == null) return null
|
|
1671
|
-
const result = new CustomizationMatrices()
|
|
1672
|
-
|
|
1673
|
-
result.nextPageIdCardFront = []
|
|
1674
|
-
if (jsonObject["nextPageIdCardFront"] != null)
|
|
1675
|
-
for (const i in jsonObject["nextPageIdCardFront"])
|
|
1676
|
-
result.nextPageIdCardFront.push(jsonObject["nextPageIdCardFront"][i])
|
|
1677
|
-
result.nextPageIdCardBack = []
|
|
1678
|
-
if (jsonObject["nextPageIdCardBack"] != null)
|
|
1679
|
-
for (const i in jsonObject["nextPageIdCardBack"])
|
|
1680
|
-
result.nextPageIdCardBack.push(jsonObject["nextPageIdCardBack"][i])
|
|
1681
1607
|
|
|
1682
1608
|
return result
|
|
1683
1609
|
}
|
|
@@ -2108,7 +2034,6 @@ class FinalizeConfig {
|
|
|
2108
2034
|
result.rawImages = jsonObject["rawImages"]
|
|
2109
2035
|
result.video = jsonObject["video"]
|
|
2110
2036
|
result.rfidSession = jsonObject["rfidSession"]
|
|
2111
|
-
result.mdlSession = jsonObject["mdlSession"]
|
|
2112
2037
|
|
|
2113
2038
|
return result
|
|
2114
2039
|
}
|
|
@@ -2183,10 +2108,6 @@ const CustomizationColor = {
|
|
|
2183
2108
|
MDL_ENABLE_NFC_DESCRIPTION_TEXT: "mdlEnableNfcDescriptionText",
|
|
2184
2109
|
MDL_ENABLE_NFC_BUTTON_TEXT: "mdlEnableNfcButtonText",
|
|
2185
2110
|
MDL_ENABLE_NFC_BUTTON_BACKGROUND: "mdlEnableNfcButtonBackground",
|
|
2186
|
-
NEXT_PAGE_ID_CARD_FRONT: "nextPageIdCardFront",
|
|
2187
|
-
NEXT_PAGE_ID_CARD_BACK: "nextPageIdCardBack",
|
|
2188
|
-
NEXT_PAGE_PASSPORT_SHIFT: "nextPagePassportShift",
|
|
2189
|
-
NEXT_PAGE_PASSPORT_FLIP: "nextPagePassportFlip",
|
|
2190
2111
|
}
|
|
2191
2112
|
|
|
2192
2113
|
const eRFID_ErrorCodes = {
|
|
@@ -2734,9 +2655,6 @@ const eRFID_NotificationCodes = {
|
|
|
2734
2655
|
RFID_NOTIFICATION_AUXILIARY_DATA_VALIDATION: 0x000D0000,
|
|
2735
2656
|
RFID_NOTIFICATION_RI_SECTOR_ID: 0x000E0000,
|
|
2736
2657
|
RFID_NOTIFICATION_BIOMETRICS_EMPTY_PLACEHOLDER: 0x000F0000,
|
|
2737
|
-
RFID_NOTIFICATION_SESSION_FILE_DATA_UPDATED: 1048576,
|
|
2738
|
-
RFID_NOTIFICATION_TCC_TA_RESOURCES: 1114112,
|
|
2739
|
-
RFID_NOTIFICATION_TCC_TA_SIGNATURE: 1114113,
|
|
2740
2658
|
}
|
|
2741
2659
|
|
|
2742
2660
|
const CameraPosition = {
|
|
@@ -2829,11 +2747,6 @@ const eSignManagementAction = {
|
|
|
2829
2747
|
smaSignData: 7,
|
|
2830
2748
|
}
|
|
2831
2749
|
|
|
2832
|
-
const CustomizationMatrix = {
|
|
2833
|
-
NEXT_PAGE_ID_CARD_FRONT: "nextPageIdCardFront",
|
|
2834
|
-
NEXT_PAGE_ID_CARD_BACK: "nextPageIdCardBack",
|
|
2835
|
-
}
|
|
2836
|
-
|
|
2837
2750
|
const eMDLDeviceEngagement = {
|
|
2838
2751
|
QR: 0,
|
|
2839
2752
|
NFC: 1,
|
|
@@ -2976,11 +2889,6 @@ const eMDLIntentToRetain = {
|
|
|
2976
2889
|
TRUE: 1,
|
|
2977
2890
|
}
|
|
2978
2891
|
|
|
2979
|
-
const CustomizationContentMode = {
|
|
2980
|
-
NEXT_PAGE_ID_CARD_FRONT: "nextPageIdCardFront",
|
|
2981
|
-
NEXT_PAGE_ID_CARD_BACK: "nextPageIdCardBack",
|
|
2982
|
-
}
|
|
2983
|
-
|
|
2984
2892
|
const RFIDDelegate = {
|
|
2985
2893
|
NULL: 0,
|
|
2986
2894
|
NO_PA: 1,
|
|
@@ -4487,11 +4395,9 @@ const eVisualFieldType = {
|
|
|
4487
4395
|
FT_NATIONALITY_CODE_ALPHA2: 697,
|
|
4488
4396
|
FT_FIRST_ISSUE_DATE_CHECKDIGIT: 698,
|
|
4489
4397
|
FT_FIRST_ISSUE_DATE_CHECKSUM: 699,
|
|
4490
|
-
FT_EXPIRY_TIMESTAMP: 700,
|
|
4491
4398
|
FT_COMMERCIAL_INDICATOR: 701,
|
|
4492
4399
|
FT_NON_DOMICILED_INDICATOR: 702,
|
|
4493
4400
|
FT_JURISDICTION_SPECIFIC_DATA: 703,
|
|
4494
|
-
FT_DATA_DATE_OF_EXPIRY: 704,
|
|
4495
4401
|
}
|
|
4496
4402
|
|
|
4497
4403
|
const DocReaderOrientation = {
|
|
@@ -4671,38 +4577,11 @@ const LCID = {
|
|
|
4671
4577
|
URDU_DETECTION: 10560,
|
|
4672
4578
|
}
|
|
4673
4579
|
|
|
4674
|
-
const CustomizationTiming = {
|
|
4675
|
-
NEXT_PAGE_ID_CARD_START_DELAY: "nextPageIdCardStartDelay",
|
|
4676
|
-
NEXT_PAGE_ID_CARD_END_DELAY: "nextPageIdCardEndDelay",
|
|
4677
|
-
NEXT_PAGE_PASSPORT_SHIFT_START_DELAY: "nextPagePassportShiftStartDelay",
|
|
4678
|
-
NEXT_PAGE_PASSPORT_SHIFT_END_DELAY: "nextPagePassportShiftEndDelay",
|
|
4679
|
-
NEXT_PAGE_PASSPORT_FLIP_START_DELAY: "nextPagePassportFlipStartDelay",
|
|
4680
|
-
NEXT_PAGE_PASSPORT_FLIP_END_DELAY: "nextPagePassportFlipEndDelay",
|
|
4681
|
-
}
|
|
4682
|
-
|
|
4683
4580
|
const CustomizationImage = {
|
|
4684
|
-
HELP_ANIMATION: "helpAnimation",
|
|
4685
|
-
LIVENESS_ANIMATION: "livenessAnimation",
|
|
4686
|
-
BORDER_BACKGROUND: "borderBackground",
|
|
4687
|
-
TORCH_BUTTON_ON: "torchButtonOn",
|
|
4688
|
-
TORCH_BUTTON_OFF: "torchButtonOff",
|
|
4689
|
-
CAPTURE_BUTTON: "captureButton",
|
|
4690
|
-
SWITCH_BUTTON: "switchButton",
|
|
4691
|
-
CLOSE_BUTTON: "closeButton",
|
|
4692
|
-
MULTIPAGE_BUTTON: "multipageButton",
|
|
4693
4581
|
RFID_PROCESSING_SCREEN_FAILURE_IMAGE: "rfidProcessingScreenFailureImage",
|
|
4694
4582
|
RFID_ENABLE_NFC_IMAGE: "rfidEnableNfcImage",
|
|
4695
|
-
RFID_DISABLE_NFC_IMAGE: "rfidDisableNfcImage",
|
|
4696
4583
|
MDL_PROCESSING_SCREEN_FAILURE_IMAGE: "mdlProcessingScreenFailureImage",
|
|
4697
4584
|
MDL_ENABLE_NFC_IMAGE: "mdlEnableNfcImage",
|
|
4698
|
-
MDL_DISABLE_NFC_IMAGE: "mdlDisableNfcImage",
|
|
4699
|
-
NEXT_PAGE_ID_CARD_FRONT: "nextPageIdCardFront",
|
|
4700
|
-
NEXT_PAGE_ID_CARD_BACK: "nextPageIdCardBack",
|
|
4701
|
-
NEXT_PAGE_PASSPORT_SHIFT: "nextPagePassportShift",
|
|
4702
|
-
NEXT_PAGE_PASSPORT_FLIP_START: "nextPagePassportFlipStart",
|
|
4703
|
-
NEXT_PAGE_PASSPORT_FLIP_CLEAN: "nextPagePassportFlipClean",
|
|
4704
|
-
NEXT_PAGE_PASSPORT_FLIP_TOP: "nextPagePassportFlipTop",
|
|
4705
|
-
NEXT_PAGE_PASSPORT_FLIP_BOTTOM: "nextPagePassportFlipBottom",
|
|
4706
4585
|
}
|
|
4707
4586
|
|
|
4708
4587
|
const DocReaderFrame = {
|
|
@@ -4767,11 +4646,9 @@ const Enum = {
|
|
|
4767
4646
|
BarcodeResult,
|
|
4768
4647
|
eRFID_Application_Type,
|
|
4769
4648
|
eSignManagementAction,
|
|
4770
|
-
CustomizationMatrix,
|
|
4771
4649
|
eMDLDeviceEngagement,
|
|
4772
4650
|
eCheckDiagnose,
|
|
4773
4651
|
eMDLIntentToRetain,
|
|
4774
|
-
CustomizationContentMode,
|
|
4775
4652
|
RFIDDelegate,
|
|
4776
4653
|
TextProcessing,
|
|
4777
4654
|
LogLevel,
|
|
@@ -4802,7 +4679,6 @@ const Enum = {
|
|
|
4802
4679
|
eVisualFieldType,
|
|
4803
4680
|
DocReaderOrientation,
|
|
4804
4681
|
LCID,
|
|
4805
|
-
CustomizationTiming,
|
|
4806
4682
|
CustomizationImage,
|
|
4807
4683
|
DocReaderFrame,
|
|
4808
4684
|
eMDLDocRequestPreset,
|
|
@@ -4987,9 +4863,6 @@ DocumentReaderPlugin.Font = Font
|
|
|
4987
4863
|
DocumentReaderPlugin.CustomizationColors = CustomizationColors
|
|
4988
4864
|
DocumentReaderPlugin.CustomizationFonts = CustomizationFonts
|
|
4989
4865
|
DocumentReaderPlugin.CustomizationImages = CustomizationImages
|
|
4990
|
-
DocumentReaderPlugin.CustomizationTimings = CustomizationTimings
|
|
4991
|
-
DocumentReaderPlugin.CustomizationContentModes = CustomizationContentModes
|
|
4992
|
-
DocumentReaderPlugin.CustomizationMatrices = CustomizationMatrices
|
|
4993
4866
|
DocumentReaderPlugin.Customization = Customization
|
|
4994
4867
|
DocumentReaderPlugin.EDLDataGroups = EDLDataGroups
|
|
4995
4868
|
DocumentReaderPlugin.EPassportDataGroups = EPassportDataGroups
|