@regulaforensics/react-native-document-reader-api 7.3.631-nightly → 7.3.637-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 +1 -1
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/regula/documentreader/Config.kt +9 -0
- package/android/src/main/java/com/regula/documentreader/RNRegulaDocumentReaderModule.kt +13 -2
- package/example/package.json +2 -2
- package/index.d.ts +37 -1
- package/index.js +35 -1
- package/ios/RGLWConfig.m +10 -0
- package/ios/RNRegulaDocumentReader.m +25 -1
- package/package.json +1 -1
|
@@ -14,6 +14,6 @@ Pod::Spec.new do |s|
|
|
|
14
14
|
s.source = { :http => 'file:' + __dir__ }
|
|
15
15
|
s.ios.deployment_target = '11.0'
|
|
16
16
|
s.source_files = "ios/*.{h,m}"
|
|
17
|
-
s.dependency '
|
|
17
|
+
s.dependency 'DocumentReaderBeta', '7.3.3716'
|
|
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.1.9980') {
|
|
45
45
|
transitive = true
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -18,6 +18,7 @@ import androidx.core.content.ContextCompat
|
|
|
18
18
|
import com.regula.documentreader.api.enums.CustomizationColor
|
|
19
19
|
import com.regula.documentreader.api.enums.CustomizationFont
|
|
20
20
|
import com.regula.documentreader.api.enums.CustomizationImage
|
|
21
|
+
import com.regula.documentreader.api.enums.LogLevel
|
|
21
22
|
import com.regula.documentreader.api.params.AuthenticityParams
|
|
22
23
|
import com.regula.documentreader.api.params.Functionality
|
|
23
24
|
import com.regula.documentreader.api.params.ImageQA
|
|
@@ -146,6 +147,8 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
|
|
|
146
147
|
"imageOutputMaxWidth" -> processParams.imageOutputMaxWidth = v.toInt()
|
|
147
148
|
"processAuth" -> processParams.processAuth = v.toInt()
|
|
148
149
|
"convertCase" -> processParams.convertCase = v.toInt()
|
|
150
|
+
"logLevel" -> processParams.logLevel = LogLevel.valueOf(v.toString())
|
|
151
|
+
"mrzDetectMode" -> processParams.mrzDetectMode = v.toInt()
|
|
149
152
|
"dateFormat" -> processParams.dateFormat = v as String
|
|
150
153
|
"scenario" -> processParams.scenario = v as String
|
|
151
154
|
"captureButtonScenario" -> processParams.captureButtonScenario = v as String
|
|
@@ -154,6 +157,7 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
|
|
|
154
157
|
"timeoutFromFirstDetect" -> processParams.timeoutFromFirstDetect = v.toDouble()
|
|
155
158
|
"timeoutFromFirstDocType" -> processParams.timeoutFromFirstDocType = v.toDouble()
|
|
156
159
|
"documentAreaMin" -> processParams.documentAreaMin = v.toDouble()
|
|
160
|
+
"timeoutLiveness" -> processParams.timeoutLiveness = v.toDouble()
|
|
157
161
|
"documentIDList" -> processParams.documentIDList = v.toIntArray()
|
|
158
162
|
"fieldTypesFilter" -> processParams.fieldTypesFilter = v.toIntArray()
|
|
159
163
|
"resultTypeOutput" -> processParams.resultTypeOutput = v.toIntArray()
|
|
@@ -220,6 +224,8 @@ fun getProcessParams(processParams: ProcessParam) = mapOf(
|
|
|
220
224
|
"imageOutputMaxWidth" to processParams.imageOutputMaxWidth,
|
|
221
225
|
"processAuth" to processParams.processAuth,
|
|
222
226
|
"convertCase" to processParams.convertCase,
|
|
227
|
+
"logLevel" to processParams.logLevel?.toString(),
|
|
228
|
+
"mrzDetectMode" to processParams.mrzDetectMode,
|
|
223
229
|
"dateFormat" to processParams.dateFormat,
|
|
224
230
|
"scenario" to processParams.scenario,
|
|
225
231
|
"captureButtonScenario" to processParams.captureButtonScenario,
|
|
@@ -228,6 +234,7 @@ fun getProcessParams(processParams: ProcessParam) = mapOf(
|
|
|
228
234
|
"timeoutFromFirstDetect" to processParams.timeoutFromFirstDetect,
|
|
229
235
|
"timeoutFromFirstDocType" to processParams.timeoutFromFirstDocType,
|
|
230
236
|
"documentAreaMin" to processParams.documentAreaMin,
|
|
237
|
+
"timeoutLiveness" to processParams.timeoutLiveness,
|
|
231
238
|
"documentIDList" to processParams.documentIDList.generate(),
|
|
232
239
|
"fieldTypesFilter" to processParams.fieldTypesFilter.generate(),
|
|
233
240
|
"documentGroupFilter" to processParams.documentGroupFilter.generate(),
|
|
@@ -654,6 +661,7 @@ fun setColors(input: ParamsCustomization.CustomizationEditor, opts: JSONObject)
|
|
|
654
661
|
"rfidProcessingScreenProgressBar" -> input.setColor(CustomizationColor.RFID_PROCESSING_SCREEN_PROGRESS_BAR, value)
|
|
655
662
|
"rfidProcessingScreenProgressBarBackground" -> input.setColor(CustomizationColor.RFID_PROCESSING_SCREEN_PROGRESS_BAR_BACKGROUND, value)
|
|
656
663
|
"rfidProcessingScreenResultLabelText" -> input.setColor(CustomizationColor.RFID_PROCESSING_SCREEN_RESULT_LABEL_TEXT, value)
|
|
664
|
+
"rfidProcessingScreenLoadingBar" -> input.setColor(CustomizationColor.RFID_PROCESSING_SCREEN_LOADING_BAR, value)
|
|
657
665
|
}
|
|
658
666
|
}
|
|
659
667
|
|
|
@@ -665,6 +673,7 @@ fun getColors(input: Map<CustomizationColor, Long>) = mapOf(
|
|
|
665
673
|
"rfidProcessingScreenProgressBar" to input[CustomizationColor.RFID_PROCESSING_SCREEN_PROGRESS_BAR],
|
|
666
674
|
"rfidProcessingScreenProgressBarBackground" to input[CustomizationColor.RFID_PROCESSING_SCREEN_PROGRESS_BAR_BACKGROUND],
|
|
667
675
|
"rfidProcessingScreenResultLabelText" to input[CustomizationColor.RFID_PROCESSING_SCREEN_RESULT_LABEL_TEXT],
|
|
676
|
+
"rfidProcessingScreenLoadingBar" to input[CustomizationColor.RFID_PROCESSING_SCREEN_LOADING_BAR],
|
|
668
677
|
).toJsonObject()
|
|
669
678
|
|
|
670
679
|
fun setFonts(input: ParamsCustomization.CustomizationEditor, opts: JSONObject) = opts.forEach { key, value ->
|
|
@@ -101,7 +101,7 @@ val lifecycle: Lifecycle
|
|
|
101
101
|
|
|
102
102
|
fun exec(action: String?, arguments: ReadableArray, successCallback: com.facebook.react.bridge.Callback, errorCallback: com.facebook.react.bridge.Callback) {
|
|
103
103
|
args = JSONArray(arguments.toArrayList())
|
|
104
|
-
activity =
|
|
104
|
+
reactContext.currentActivity?.let { activity = it }
|
|
105
105
|
val callback = object : Callback {
|
|
106
106
|
override fun success(data: Any?) = successCallback.invoke(data.toSendable())
|
|
107
107
|
override fun error(message: String) = errorCallback.invoke(message)
|
|
@@ -115,6 +115,10 @@ fun exec(action: String?, arguments: ReadableArray, successCallback: com.faceboo
|
|
|
115
115
|
"setRfidSessionStatus" -> setRfidSessionStatus(callback)
|
|
116
116
|
"getTag" -> getTag(callback)
|
|
117
117
|
"setTag" -> setTag(argsNullable(0))
|
|
118
|
+
"getTenant" -> getTenant(callback)
|
|
119
|
+
"setTenant" -> setTenant(argsNullable(0))
|
|
120
|
+
"getEnv" -> getEnv(callback)
|
|
121
|
+
"setEnv" -> setEnv(argsNullable(0))
|
|
118
122
|
"getFunctionality" -> getFunctionality(callback)
|
|
119
123
|
"setFunctionality" -> setFunctionality(args(0))
|
|
120
124
|
"getProcessParams" -> getProcessParams(callback)
|
|
@@ -188,7 +192,6 @@ val context
|
|
|
188
192
|
get() = activity
|
|
189
193
|
|
|
190
194
|
var backgroundRFIDEnabled = false
|
|
191
|
-
var databaseDownloadProgress = 0
|
|
192
195
|
|
|
193
196
|
const val eventCompletion = "completion"
|
|
194
197
|
const val eventDatabaseProgress = "database_progress"
|
|
@@ -224,6 +227,14 @@ fun getTag(callback: Callback) = callback.success(Instance().tag)
|
|
|
224
227
|
|
|
225
228
|
fun setTag(tag: String?) = tag.let { Instance().tag = it }
|
|
226
229
|
|
|
230
|
+
fun getTenant(callback: Callback) = callback.success(Instance().tenant)
|
|
231
|
+
|
|
232
|
+
fun setTenant(tag: String?) = tag.let { Instance().tenant = it }
|
|
233
|
+
|
|
234
|
+
fun getEnv(callback: Callback) = callback.success(Instance().env)
|
|
235
|
+
|
|
236
|
+
fun setEnv(tag: String?) = tag.let { Instance().env = it }
|
|
237
|
+
|
|
227
238
|
fun getFunctionality(callback: Callback) = callback.success(getFunctionality(Instance().functionality()))
|
|
228
239
|
|
|
229
240
|
fun setFunctionality(functionality: JSONObject) = setFunctionality(Instance().functionality(), functionality)
|
package/example/package.json
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"test": "jest"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@regulaforensics/react-native-document-reader-api": "7.3.
|
|
14
|
-
"@regulaforensics/react-native-document-reader-core-fullauthrfid": "7.3.
|
|
13
|
+
"@regulaforensics/react-native-document-reader-api": "7.3.637-beta",
|
|
14
|
+
"@regulaforensics/react-native-document-reader-core-fullauthrfid": "7.3.497-beta",
|
|
15
15
|
"react-native-progress": "5.0.0",
|
|
16
16
|
"react-native-radio-buttons-group": "3.0.5",
|
|
17
17
|
"@rneui/base": "4.0.0-rc.7",
|
package/index.d.ts
CHANGED
|
@@ -2115,6 +2115,8 @@ export class ProcessParams {
|
|
|
2115
2115
|
imageOutputMaxWidth?: number
|
|
2116
2116
|
processAuth?: number
|
|
2117
2117
|
convertCase?: number
|
|
2118
|
+
logLevel?: string
|
|
2119
|
+
mrzDetectMode?: number
|
|
2118
2120
|
measureSystem?: number
|
|
2119
2121
|
forceDocID?: number
|
|
2120
2122
|
dateFormat?: string
|
|
@@ -2185,6 +2187,8 @@ export class ProcessParams {
|
|
|
2185
2187
|
result.imageOutputMaxWidth = jsonObject["imageOutputMaxWidth"]
|
|
2186
2188
|
result.processAuth = jsonObject["processAuth"]
|
|
2187
2189
|
result.convertCase = jsonObject["convertCase"]
|
|
2190
|
+
result.logLevel = jsonObject["logLevel"]
|
|
2191
|
+
result.mrzDetectMode = jsonObject["mrzDetectMode"]
|
|
2188
2192
|
result.measureSystem = jsonObject["measureSystem"]
|
|
2189
2193
|
result.forceDocID = jsonObject["forceDocID"]
|
|
2190
2194
|
result.dateFormat = jsonObject["dateFormat"]
|
|
@@ -2790,6 +2794,7 @@ export const CustomizationColor = {
|
|
|
2790
2794
|
RFID_PROCESSING_SCREEN_PROGRESS_BAR: "rfidProcessingScreenProgressBar",
|
|
2791
2795
|
RFID_PROCESSING_SCREEN_PROGRESS_BAR_BACKGROUND: "rfidProcessingScreenProgressBarBackground",
|
|
2792
2796
|
RFID_PROCESSING_SCREEN_RESULT_LABEL_TEXT: "rfidProcessingScreenResultLabelText",
|
|
2797
|
+
RFID_PROCESSING_SCREEN_LOADING_BAR: "rfidProcessingScreenLoadingBar",
|
|
2793
2798
|
}
|
|
2794
2799
|
|
|
2795
2800
|
export const eRFID_ErrorCodes = {
|
|
@@ -3436,6 +3441,9 @@ export const eCheckDiagnose = {
|
|
|
3436
3441
|
FIELD_POS_CORRECTOR_HIGHLIGHT_IR: 80,
|
|
3437
3442
|
FIELD_POS_CORRECTOR_GLARES_IN_PHOTO_AREA: 81,
|
|
3438
3443
|
FIELD_POS_CORRECTOR_PHOTO_REPLACED: 82,
|
|
3444
|
+
FIELD_POS_CORRECTOR_LANDMARKS_CHECK_ERROR: 83,
|
|
3445
|
+
FIELD_POS_CORRECTOR_FACE_PRESENCE_CHECK_ERROR: 84,
|
|
3446
|
+
FIELD_POS_CORRECTOR_FACE_ABSENCE_CHECK_ERROR: 85,
|
|
3439
3447
|
OVI_IR_INVISIBLE: 90,
|
|
3440
3448
|
OVI_INSUFFICIENT_AREA: 91,
|
|
3441
3449
|
OVI_COLOR_INVARIABLE: 92,
|
|
@@ -3507,7 +3515,7 @@ export const eCheckDiagnose = {
|
|
|
3507
3515
|
ICAO_IDB_SIGNATURE_MUST_BE_PRESENT: 246,
|
|
3508
3516
|
ICAO_IDB_SIGNATURE_MUST_NOT_BE_PRESENT: 247,
|
|
3509
3517
|
ICAO_IDB_CERTIFICATE_MUST_NOT_BE_PRESENT: 248,
|
|
3510
|
-
|
|
3518
|
+
INCORRECT_OBJECT_COLOR: 250,
|
|
3511
3519
|
}
|
|
3512
3520
|
|
|
3513
3521
|
export const RFIDDelegate = {
|
|
@@ -3523,6 +3531,14 @@ export const TextProcessing = {
|
|
|
3523
3531
|
ocCapital: 3,
|
|
3524
3532
|
}
|
|
3525
3533
|
|
|
3534
|
+
export const LogLevel = {
|
|
3535
|
+
FatalError: "FatalError",
|
|
3536
|
+
Error: "Error",
|
|
3537
|
+
Warning: "Warning",
|
|
3538
|
+
Info: "Info",
|
|
3539
|
+
Debug: "Debug",
|
|
3540
|
+
}
|
|
3541
|
+
|
|
3526
3542
|
export const AnimationImage = {
|
|
3527
3543
|
UNKNOWN: 0,
|
|
3528
3544
|
PASSPORT_SINGLE_PAGE: 1,
|
|
@@ -4962,6 +4978,14 @@ export const eVisualFieldType = {
|
|
|
4962
4978
|
FT_DATE_OF_RETIREMENT: 681,
|
|
4963
4979
|
FT_DOCUMENT_STATUS: 682,
|
|
4964
4980
|
FT_SIGNATURE: 683,
|
|
4981
|
+
FT_UNIQUE_CERTIFICATE_IDENTIFIER: 684,
|
|
4982
|
+
FT_EMAIL: 685,
|
|
4983
|
+
FT_DATE_OF_SPECIMEN_COLLECTION: 686,
|
|
4984
|
+
FT_TYPE_OF_TESTING: 687,
|
|
4985
|
+
FT_RESULT_OF_TESTING: 688,
|
|
4986
|
+
FT_METHOD_OF_TESTING: 689,
|
|
4987
|
+
FT_DIGITAL_TRAVEL_AUTHORIZATION_NUMBER: 690,
|
|
4988
|
+
FT_DATE_OF_FIRST_POSITIVE_TEST_RESULT: 691,
|
|
4965
4989
|
}
|
|
4966
4990
|
|
|
4967
4991
|
export const DocReaderOrientation = {
|
|
@@ -5164,6 +5188,12 @@ export const eRPRM_Lights = {
|
|
|
5164
5188
|
RPRM_LIGHT_WHITE_FULL_OVD: (6 | 67108864),
|
|
5165
5189
|
}
|
|
5166
5190
|
|
|
5191
|
+
export const eMrzDetectionModes = {
|
|
5192
|
+
DEFAULT: 0,
|
|
5193
|
+
RESIZE_BINARIZE_WINDOW: 1,
|
|
5194
|
+
BLUR_BEFORE_BINARIZATION: 2,
|
|
5195
|
+
}
|
|
5196
|
+
|
|
5167
5197
|
export const Enum = {
|
|
5168
5198
|
FontStyle,
|
|
5169
5199
|
eRPRM_Authenticity,
|
|
@@ -5193,6 +5223,7 @@ export const Enum = {
|
|
|
5193
5223
|
eCheckDiagnose,
|
|
5194
5224
|
RFIDDelegate,
|
|
5195
5225
|
TextProcessing,
|
|
5226
|
+
LogLevel,
|
|
5196
5227
|
AnimationImage,
|
|
5197
5228
|
ProcessingFinishedStatus,
|
|
5198
5229
|
DocFormat,
|
|
@@ -5223,6 +5254,7 @@ export const Enum = {
|
|
|
5223
5254
|
CustomizationImage,
|
|
5224
5255
|
DocReaderFrame,
|
|
5225
5256
|
eRPRM_Lights,
|
|
5257
|
+
eMrzDetectionModes,
|
|
5226
5258
|
}
|
|
5227
5259
|
|
|
5228
5260
|
export default class DocumentReader {
|
|
@@ -5234,6 +5266,10 @@ export default class DocumentReader {
|
|
|
5234
5266
|
static setRfidSessionStatus(status: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5235
5267
|
static getTag(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5236
5268
|
static setTag(tag: string | null, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5269
|
+
static getTenant(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5270
|
+
static setTenant(tenant: string | null, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5271
|
+
static getEnv(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5272
|
+
static setEnv(env: string | null, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5237
5273
|
static getFunctionality(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5238
5274
|
static setFunctionality(functionality: Functionality, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5239
5275
|
static getProcessParams(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
package/index.js
CHANGED
|
@@ -1456,6 +1456,8 @@ export class ProcessParams {
|
|
|
1456
1456
|
result.imageOutputMaxWidth = jsonObject["imageOutputMaxWidth"]
|
|
1457
1457
|
result.processAuth = jsonObject["processAuth"]
|
|
1458
1458
|
result.convertCase = jsonObject["convertCase"]
|
|
1459
|
+
result.logLevel = jsonObject["logLevel"]
|
|
1460
|
+
result.mrzDetectMode = jsonObject["mrzDetectMode"]
|
|
1459
1461
|
result.measureSystem = jsonObject["measureSystem"]
|
|
1460
1462
|
result.forceDocID = jsonObject["forceDocID"]
|
|
1461
1463
|
result.dateFormat = jsonObject["dateFormat"]
|
|
@@ -1846,6 +1848,7 @@ export const CustomizationColor = {
|
|
|
1846
1848
|
RFID_PROCESSING_SCREEN_PROGRESS_BAR: "rfidProcessingScreenProgressBar",
|
|
1847
1849
|
RFID_PROCESSING_SCREEN_PROGRESS_BAR_BACKGROUND: "rfidProcessingScreenProgressBarBackground",
|
|
1848
1850
|
RFID_PROCESSING_SCREEN_RESULT_LABEL_TEXT: "rfidProcessingScreenResultLabelText",
|
|
1851
|
+
RFID_PROCESSING_SCREEN_LOADING_BAR: "rfidProcessingScreenLoadingBar",
|
|
1849
1852
|
}
|
|
1850
1853
|
|
|
1851
1854
|
export const eRFID_ErrorCodes = {
|
|
@@ -2492,6 +2495,9 @@ export const eCheckDiagnose = {
|
|
|
2492
2495
|
FIELD_POS_CORRECTOR_HIGHLIGHT_IR: 80,
|
|
2493
2496
|
FIELD_POS_CORRECTOR_GLARES_IN_PHOTO_AREA: 81,
|
|
2494
2497
|
FIELD_POS_CORRECTOR_PHOTO_REPLACED: 82,
|
|
2498
|
+
FIELD_POS_CORRECTOR_LANDMARKS_CHECK_ERROR: 83,
|
|
2499
|
+
FIELD_POS_CORRECTOR_FACE_PRESENCE_CHECK_ERROR: 84,
|
|
2500
|
+
FIELD_POS_CORRECTOR_FACE_ABSENCE_CHECK_ERROR: 85,
|
|
2495
2501
|
OVI_IR_INVISIBLE: 90,
|
|
2496
2502
|
OVI_INSUFFICIENT_AREA: 91,
|
|
2497
2503
|
OVI_COLOR_INVARIABLE: 92,
|
|
@@ -2563,7 +2569,7 @@ export const eCheckDiagnose = {
|
|
|
2563
2569
|
ICAO_IDB_SIGNATURE_MUST_BE_PRESENT: 246,
|
|
2564
2570
|
ICAO_IDB_SIGNATURE_MUST_NOT_BE_PRESENT: 247,
|
|
2565
2571
|
ICAO_IDB_CERTIFICATE_MUST_NOT_BE_PRESENT: 248,
|
|
2566
|
-
|
|
2572
|
+
INCORRECT_OBJECT_COLOR: 250,
|
|
2567
2573
|
}
|
|
2568
2574
|
|
|
2569
2575
|
export const RFIDDelegate = {
|
|
@@ -2579,6 +2585,14 @@ export const TextProcessing = {
|
|
|
2579
2585
|
ocCapital: 3,
|
|
2580
2586
|
}
|
|
2581
2587
|
|
|
2588
|
+
export const LogLevel = {
|
|
2589
|
+
FatalError: "FatalError",
|
|
2590
|
+
Error: "Error",
|
|
2591
|
+
Warning: "Warning",
|
|
2592
|
+
Info: "Info",
|
|
2593
|
+
Debug: "Debug",
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2582
2596
|
export const AnimationImage = {
|
|
2583
2597
|
UNKNOWN: 0,
|
|
2584
2598
|
PASSPORT_SINGLE_PAGE: 1,
|
|
@@ -4018,6 +4032,14 @@ export const eVisualFieldType = {
|
|
|
4018
4032
|
FT_DATE_OF_RETIREMENT: 681,
|
|
4019
4033
|
FT_DOCUMENT_STATUS: 682,
|
|
4020
4034
|
FT_SIGNATURE: 683,
|
|
4035
|
+
FT_UNIQUE_CERTIFICATE_IDENTIFIER: 684,
|
|
4036
|
+
FT_EMAIL: 685,
|
|
4037
|
+
FT_DATE_OF_SPECIMEN_COLLECTION: 686,
|
|
4038
|
+
FT_TYPE_OF_TESTING: 687,
|
|
4039
|
+
FT_RESULT_OF_TESTING: 688,
|
|
4040
|
+
FT_METHOD_OF_TESTING: 689,
|
|
4041
|
+
FT_DIGITAL_TRAVEL_AUTHORIZATION_NUMBER: 690,
|
|
4042
|
+
FT_DATE_OF_FIRST_POSITIVE_TEST_RESULT: 691,
|
|
4021
4043
|
}
|
|
4022
4044
|
|
|
4023
4045
|
export const DocReaderOrientation = {
|
|
@@ -4220,6 +4242,12 @@ export const eRPRM_Lights = {
|
|
|
4220
4242
|
RPRM_LIGHT_WHITE_FULL_OVD: (6 | 67108864),
|
|
4221
4243
|
}
|
|
4222
4244
|
|
|
4245
|
+
export const eMrzDetectionModes = {
|
|
4246
|
+
DEFAULT: 0,
|
|
4247
|
+
RESIZE_BINARIZE_WINDOW: 1,
|
|
4248
|
+
BLUR_BEFORE_BINARIZATION: 2,
|
|
4249
|
+
}
|
|
4250
|
+
|
|
4223
4251
|
export const Enum = {
|
|
4224
4252
|
FontStyle,
|
|
4225
4253
|
eRPRM_Authenticity,
|
|
@@ -4249,6 +4277,7 @@ export const Enum = {
|
|
|
4249
4277
|
eCheckDiagnose,
|
|
4250
4278
|
RFIDDelegate,
|
|
4251
4279
|
TextProcessing,
|
|
4280
|
+
LogLevel,
|
|
4252
4281
|
AnimationImage,
|
|
4253
4282
|
ProcessingFinishedStatus,
|
|
4254
4283
|
DocFormat,
|
|
@@ -4279,6 +4308,7 @@ export const Enum = {
|
|
|
4279
4308
|
CustomizationImage,
|
|
4280
4309
|
DocReaderFrame,
|
|
4281
4310
|
eRPRM_Lights,
|
|
4311
|
+
eMrzDetectionModes,
|
|
4282
4312
|
}
|
|
4283
4313
|
|
|
4284
4314
|
const DocumentReader = {}
|
|
@@ -4291,6 +4321,10 @@ DocumentReader.getRfidSessionStatus = (successCallback, errorCallback) => RNRegu
|
|
|
4291
4321
|
DocumentReader.setRfidSessionStatus = (status, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "setRfidSessionStatus", [status], successCallback, errorCallback)
|
|
4292
4322
|
DocumentReader.getTag = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getTag", [], successCallback, errorCallback)
|
|
4293
4323
|
DocumentReader.setTag = (tag, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "setTag", [tag], successCallback, errorCallback)
|
|
4324
|
+
DocumentReader.getTenant = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getTenant", [], successCallback, errorCallback)
|
|
4325
|
+
DocumentReader.setTenant = (tenant, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "setTenant", [tenant], successCallback, errorCallback)
|
|
4326
|
+
DocumentReader.getEnv = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getEnv", [], successCallback, errorCallback)
|
|
4327
|
+
DocumentReader.setEnv = (env, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "setEnv", [env], successCallback, errorCallback)
|
|
4294
4328
|
DocumentReader.getFunctionality = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getFunctionality", [], successCallback, errorCallback)
|
|
4295
4329
|
DocumentReader.setFunctionality = (functionality, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "setFunctionality", [functionality], successCallback, errorCallback)
|
|
4296
4330
|
DocumentReader.getProcessParams = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getProcessParams", [], successCallback, errorCallback)
|
package/ios/RGLWConfig.m
CHANGED
|
@@ -218,6 +218,8 @@
|
|
|
218
218
|
processParams.processAuth = [options valueForKey:@"processAuth"];
|
|
219
219
|
if([options valueForKey:@"convertCase"] != nil)
|
|
220
220
|
processParams.convertCase = [self textProcessingWithNumber:[options valueForKey:@"convertCase"]];
|
|
221
|
+
if(options[@"logLevel"]) processParams.logLevel = options[@"logLevel"];
|
|
222
|
+
if(options[@"mrzDetectMode"]) processParams.mrzDetectMode = options[@"mrzDetectMode"];
|
|
221
223
|
|
|
222
224
|
// String
|
|
223
225
|
if([options valueForKey:@"dateFormat"] != nil)
|
|
@@ -236,6 +238,8 @@
|
|
|
236
238
|
processParams.timeoutFromFirstDocType = [options valueForKey:@"timeoutFromFirstDocType"];
|
|
237
239
|
if([options valueForKey:@"documentAreaMin"] != nil)
|
|
238
240
|
processParams.documentAreaMin = [options valueForKey:@"documentAreaMin"];
|
|
241
|
+
if([options valueForKey:@"timeoutLiveness"] != nil)
|
|
242
|
+
processParams.timeoutLiveness = [options valueForKey:@"timeoutLiveness"];
|
|
239
243
|
|
|
240
244
|
// JSONArray
|
|
241
245
|
if([options valueForKey:@"documentIDList"] != nil)
|
|
@@ -308,6 +312,8 @@
|
|
|
308
312
|
result[@"useFaceApi"] = processParams.useFaceApi;
|
|
309
313
|
result[@"useAuthenticityCheck"] = processParams.useAuthenticityCheck;
|
|
310
314
|
result[@"checkHologram"] = processParams.checkHologram;
|
|
315
|
+
result[@"logLevel"] = processParams.logLevel;
|
|
316
|
+
result[@"mrzDetectMode"] = processParams.mrzDetectMode;
|
|
311
317
|
|
|
312
318
|
// Int
|
|
313
319
|
result[@"measureSystem"] = [NSNumber numberWithInteger:processParams.measureSystem];
|
|
@@ -335,6 +341,7 @@
|
|
|
335
341
|
result[@"timeoutFromFirstDetect"] = processParams.timeoutFromFirstDetect;
|
|
336
342
|
result[@"timeoutFromFirstDocType"] = processParams.timeoutFromFirstDocType;
|
|
337
343
|
result[@"documentAreaMin"] = processParams.documentAreaMin;
|
|
344
|
+
result[@"timeoutLiveness"] = processParams.timeoutLiveness;
|
|
338
345
|
|
|
339
346
|
// JSONArray
|
|
340
347
|
result[@"documentIDList"] = processParams.documentIDList;
|
|
@@ -994,6 +1001,8 @@
|
|
|
994
1001
|
result[@(RFIDProcessingScreenProgressBarBackground)] = [self colorWithInt:[input valueForKey:@"rfidProcessingScreenProgressBarBackground"]];
|
|
995
1002
|
if([input valueForKey:@"rfidProcessingScreenResultLabelText"] != nil)
|
|
996
1003
|
result[@(RFIDProcessingScreenResultLabelText)] = [self colorWithInt:[input valueForKey:@"rfidProcessingScreenResultLabelText"]];
|
|
1004
|
+
if([input valueForKey:@"rfidProcessingScreenLoadingBar"] != nil)
|
|
1005
|
+
result[@(RFIDProcessingScreenLoadingBar)] = [self colorWithInt:[input valueForKey:@"rfidProcessingScreenLoadingBar"]];
|
|
997
1006
|
}
|
|
998
1007
|
|
|
999
1008
|
+(NSDictionary*)getColors:(NSDictionary*)input {
|
|
@@ -1005,6 +1014,7 @@
|
|
|
1005
1014
|
@"rfidProcessingScreenProgressBar": [self intWithColor:input[@(RFIDProcessingScreenProgressBar)]],
|
|
1006
1015
|
@"rfidProcessingScreenProgressBarBackground": [self intWithColor:input[@(RFIDProcessingScreenProgressBarBackground)]],
|
|
1007
1016
|
@"rfidProcessingScreenResultLabelText": [self intWithColor:input[@(RFIDProcessingScreenResultLabelText)]],
|
|
1017
|
+
@"rfidProcessingScreenLoadingBar": [self intWithColor:input[@(RFIDProcessingScreenLoadingBar)]],
|
|
1008
1018
|
};
|
|
1009
1019
|
}
|
|
1010
1020
|
|
|
@@ -23,7 +23,7 @@ RCT_EXPORT_MODULE();
|
|
|
23
23
|
RGLWOnCustomButtonTappedEvent];
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
RGLWEventSender sendEvent = ^(NSString*
|
|
26
|
+
static RGLWEventSender sendEvent = ^(NSString* event, id data) {
|
|
27
27
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
28
28
|
[RGLWPlugin sendEventWithName:event body:@{@"msg": data}];
|
|
29
29
|
});
|
|
@@ -57,6 +57,14 @@ RCT_EXPORT_METHOD(exec:(NSString*)moduleName:(NSString*)action:(NSArray*)args:(R
|
|
|
57
57
|
[self getTag :successCallback :errorCallback];
|
|
58
58
|
else if([action isEqualToString:@"setTag"])
|
|
59
59
|
[self setTag :[args objectAtIndex:0] :successCallback :errorCallback];
|
|
60
|
+
else if([action isEqualToString:@"getTenant"])
|
|
61
|
+
[self getTenant :successCallback :errorCallback];
|
|
62
|
+
else if([action isEqualToString:@"setTenant"])
|
|
63
|
+
[self setTenant :[args objectAtIndex:0] :successCallback :errorCallback];
|
|
64
|
+
else if([action isEqualToString:@"getEnv"])
|
|
65
|
+
[self getEnv :successCallback :errorCallback];
|
|
66
|
+
else if([action isEqualToString:@"setEnv"])
|
|
67
|
+
[self setEnv :[args objectAtIndex:0] :successCallback :errorCallback];
|
|
60
68
|
else if([action isEqualToString:@"getFunctionality"])
|
|
61
69
|
[self getFunctionality :successCallback :errorCallback];
|
|
62
70
|
else if([action isEqualToString:@"setFunctionality"])
|
|
@@ -225,6 +233,22 @@ NSString* RGLWOnCustomButtonTappedEvent = @"onCustomButtonTappedEvent";
|
|
|
225
233
|
[RGLDocReader.shared setTag:tag];
|
|
226
234
|
}
|
|
227
235
|
|
|
236
|
+
- (void) getTenant:(RGLWCallback)successCallback :(RGLWCallback)errorCallback{
|
|
237
|
+
successCallback([RGLDocReader.shared tenant]);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
- (void) setTenant:(NSString*)tag :(RGLWCallback)successCallback :(RGLWCallback)errorCallback{
|
|
241
|
+
[RGLDocReader.shared setTenant:tag];
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
- (void) getEnv:(RGLWCallback)successCallback :(RGLWCallback)errorCallback{
|
|
245
|
+
successCallback([RGLDocReader.shared env]);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
- (void) setEnv:(NSString*)tag :(RGLWCallback)successCallback :(RGLWCallback)errorCallback{
|
|
249
|
+
[RGLDocReader.shared setEnv:tag];
|
|
250
|
+
}
|
|
251
|
+
|
|
228
252
|
- (void) getFunctionality:(RGLWCallback)successCallback :(RGLWCallback)errorCallback{
|
|
229
253
|
successCallback([RGLWJSONConstructor dictToString: [RGLWConfig getFunctionality: RGLDocReader.shared.functionality]]);
|
|
230
254
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/react-native-document-reader-api",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.637-beta",
|
|
4
4
|
"description": "React Native module for reading and validation of identification documents (API framework)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|