@regulaforensics/react-native-document-reader-api 7.3.631-nightly → 7.3.658-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/.github/ISSUE_TEMPLATE/config.yml +2 -2
- 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/JSONConstructor.kt +4 -0
- package/android/src/main/java/com/regula/documentreader/RNRegulaDocumentReaderModule.kt +13 -2
- package/example/App.tsx +1 -1
- package/example/package-lock.json +1714 -2943
- package/example/package.json +2 -2
- package/index.d.ts +41 -1
- package/index.js +37 -1
- package/ios/RGLWConfig.m +10 -0
- package/ios/RGLWJSONConstructor.m +6 -9
- package/ios/RNRegulaDocumentReader.m +25 -1
- package/package.json +1 -1
- package/.github/ISSUE_TEMPLATE/bug-report.md +0 -39
- package/.github/ISSUE_TEMPLATE/feature-request.md +0 -20
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.658-beta",
|
|
14
|
+
"@regulaforensics/react-native-document-reader-core-fullauthrfid": "7.3.510-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
|
|
@@ -2125,6 +2127,7 @@ export class ProcessParams {
|
|
|
2125
2127
|
timeoutFromFirstDetect?: number
|
|
2126
2128
|
timeoutFromFirstDocType?: number
|
|
2127
2129
|
documentAreaMin?: number
|
|
2130
|
+
timeoutLiveness?: number
|
|
2128
2131
|
documentIDList?: number[]
|
|
2129
2132
|
barcodeTypes?: number[]
|
|
2130
2133
|
fieldTypesFilter?: number[]
|
|
@@ -2185,6 +2188,8 @@ export class ProcessParams {
|
|
|
2185
2188
|
result.imageOutputMaxWidth = jsonObject["imageOutputMaxWidth"]
|
|
2186
2189
|
result.processAuth = jsonObject["processAuth"]
|
|
2187
2190
|
result.convertCase = jsonObject["convertCase"]
|
|
2191
|
+
result.logLevel = jsonObject["logLevel"]
|
|
2192
|
+
result.mrzDetectMode = jsonObject["mrzDetectMode"]
|
|
2188
2193
|
result.measureSystem = jsonObject["measureSystem"]
|
|
2189
2194
|
result.forceDocID = jsonObject["forceDocID"]
|
|
2190
2195
|
result.dateFormat = jsonObject["dateFormat"]
|
|
@@ -2195,6 +2200,7 @@ export class ProcessParams {
|
|
|
2195
2200
|
result.timeoutFromFirstDetect = jsonObject["timeoutFromFirstDetect"]
|
|
2196
2201
|
result.timeoutFromFirstDocType = jsonObject["timeoutFromFirstDocType"]
|
|
2197
2202
|
result.documentAreaMin = jsonObject["documentAreaMin"]
|
|
2203
|
+
result.timeoutLiveness = jsonObject["timeoutLiveness"]
|
|
2198
2204
|
result.documentIDList = []
|
|
2199
2205
|
if (jsonObject["documentIDList"] != null) {
|
|
2200
2206
|
for (const i in jsonObject["documentIDList"]) {
|
|
@@ -2279,6 +2285,7 @@ export class CustomizationColors {
|
|
|
2279
2285
|
rfidProcessingScreenProgressBar?: number
|
|
2280
2286
|
rfidProcessingScreenProgressBarBackground?: number
|
|
2281
2287
|
rfidProcessingScreenResultLabelText?: number
|
|
2288
|
+
rfidProcessingScreenLoadingBar?: number
|
|
2282
2289
|
|
|
2283
2290
|
static fromJson(jsonObject?: any): CustomizationColors | undefined {
|
|
2284
2291
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
@@ -2291,6 +2298,7 @@ export class CustomizationColors {
|
|
|
2291
2298
|
result.rfidProcessingScreenProgressBar = jsonObject["rfidProcessingScreenProgressBar"]
|
|
2292
2299
|
result.rfidProcessingScreenProgressBarBackground = jsonObject["rfidProcessingScreenProgressBarBackground"]
|
|
2293
2300
|
result.rfidProcessingScreenResultLabelText = jsonObject["rfidProcessingScreenResultLabelText"]
|
|
2301
|
+
result.rfidProcessingScreenLoadingBar = jsonObject["rfidProcessingScreenLoadingBar"]
|
|
2294
2302
|
|
|
2295
2303
|
return result
|
|
2296
2304
|
}
|
|
@@ -2790,6 +2798,7 @@ export const CustomizationColor = {
|
|
|
2790
2798
|
RFID_PROCESSING_SCREEN_PROGRESS_BAR: "rfidProcessingScreenProgressBar",
|
|
2791
2799
|
RFID_PROCESSING_SCREEN_PROGRESS_BAR_BACKGROUND: "rfidProcessingScreenProgressBarBackground",
|
|
2792
2800
|
RFID_PROCESSING_SCREEN_RESULT_LABEL_TEXT: "rfidProcessingScreenResultLabelText",
|
|
2801
|
+
RFID_PROCESSING_SCREEN_LOADING_BAR: "rfidProcessingScreenLoadingBar",
|
|
2793
2802
|
}
|
|
2794
2803
|
|
|
2795
2804
|
export const eRFID_ErrorCodes = {
|
|
@@ -3436,6 +3445,9 @@ export const eCheckDiagnose = {
|
|
|
3436
3445
|
FIELD_POS_CORRECTOR_HIGHLIGHT_IR: 80,
|
|
3437
3446
|
FIELD_POS_CORRECTOR_GLARES_IN_PHOTO_AREA: 81,
|
|
3438
3447
|
FIELD_POS_CORRECTOR_PHOTO_REPLACED: 82,
|
|
3448
|
+
FIELD_POS_CORRECTOR_LANDMARKS_CHECK_ERROR: 83,
|
|
3449
|
+
FIELD_POS_CORRECTOR_FACE_PRESENCE_CHECK_ERROR: 84,
|
|
3450
|
+
FIELD_POS_CORRECTOR_FACE_ABSENCE_CHECK_ERROR: 85,
|
|
3439
3451
|
OVI_IR_INVISIBLE: 90,
|
|
3440
3452
|
OVI_INSUFFICIENT_AREA: 91,
|
|
3441
3453
|
OVI_COLOR_INVARIABLE: 92,
|
|
@@ -3507,7 +3519,7 @@ export const eCheckDiagnose = {
|
|
|
3507
3519
|
ICAO_IDB_SIGNATURE_MUST_BE_PRESENT: 246,
|
|
3508
3520
|
ICAO_IDB_SIGNATURE_MUST_NOT_BE_PRESENT: 247,
|
|
3509
3521
|
ICAO_IDB_CERTIFICATE_MUST_NOT_BE_PRESENT: 248,
|
|
3510
|
-
|
|
3522
|
+
INCORRECT_OBJECT_COLOR: 250,
|
|
3511
3523
|
}
|
|
3512
3524
|
|
|
3513
3525
|
export const RFIDDelegate = {
|
|
@@ -3523,6 +3535,14 @@ export const TextProcessing = {
|
|
|
3523
3535
|
ocCapital: 3,
|
|
3524
3536
|
}
|
|
3525
3537
|
|
|
3538
|
+
export const LogLevel = {
|
|
3539
|
+
FatalError: "FatalError",
|
|
3540
|
+
Error: "Error",
|
|
3541
|
+
Warning: "Warning",
|
|
3542
|
+
Info: "Info",
|
|
3543
|
+
Debug: "Debug",
|
|
3544
|
+
}
|
|
3545
|
+
|
|
3526
3546
|
export const AnimationImage = {
|
|
3527
3547
|
UNKNOWN: 0,
|
|
3528
3548
|
PASSPORT_SINGLE_PAGE: 1,
|
|
@@ -4962,6 +4982,14 @@ export const eVisualFieldType = {
|
|
|
4962
4982
|
FT_DATE_OF_RETIREMENT: 681,
|
|
4963
4983
|
FT_DOCUMENT_STATUS: 682,
|
|
4964
4984
|
FT_SIGNATURE: 683,
|
|
4985
|
+
FT_UNIQUE_CERTIFICATE_IDENTIFIER: 684,
|
|
4986
|
+
FT_EMAIL: 685,
|
|
4987
|
+
FT_DATE_OF_SPECIMEN_COLLECTION: 686,
|
|
4988
|
+
FT_TYPE_OF_TESTING: 687,
|
|
4989
|
+
FT_RESULT_OF_TESTING: 688,
|
|
4990
|
+
FT_METHOD_OF_TESTING: 689,
|
|
4991
|
+
FT_DIGITAL_TRAVEL_AUTHORIZATION_NUMBER: 690,
|
|
4992
|
+
FT_DATE_OF_FIRST_POSITIVE_TEST_RESULT: 691,
|
|
4965
4993
|
}
|
|
4966
4994
|
|
|
4967
4995
|
export const DocReaderOrientation = {
|
|
@@ -5164,6 +5192,12 @@ export const eRPRM_Lights = {
|
|
|
5164
5192
|
RPRM_LIGHT_WHITE_FULL_OVD: (6 | 67108864),
|
|
5165
5193
|
}
|
|
5166
5194
|
|
|
5195
|
+
export const eMrzDetectionModes = {
|
|
5196
|
+
DEFAULT: 0,
|
|
5197
|
+
RESIZE_BINARIZE_WINDOW: 1,
|
|
5198
|
+
BLUR_BEFORE_BINARIZATION: 2,
|
|
5199
|
+
}
|
|
5200
|
+
|
|
5167
5201
|
export const Enum = {
|
|
5168
5202
|
FontStyle,
|
|
5169
5203
|
eRPRM_Authenticity,
|
|
@@ -5193,6 +5227,7 @@ export const Enum = {
|
|
|
5193
5227
|
eCheckDiagnose,
|
|
5194
5228
|
RFIDDelegate,
|
|
5195
5229
|
TextProcessing,
|
|
5230
|
+
LogLevel,
|
|
5196
5231
|
AnimationImage,
|
|
5197
5232
|
ProcessingFinishedStatus,
|
|
5198
5233
|
DocFormat,
|
|
@@ -5223,6 +5258,7 @@ export const Enum = {
|
|
|
5223
5258
|
CustomizationImage,
|
|
5224
5259
|
DocReaderFrame,
|
|
5225
5260
|
eRPRM_Lights,
|
|
5261
|
+
eMrzDetectionModes,
|
|
5226
5262
|
}
|
|
5227
5263
|
|
|
5228
5264
|
export default class DocumentReader {
|
|
@@ -5234,6 +5270,10 @@ export default class DocumentReader {
|
|
|
5234
5270
|
static setRfidSessionStatus(status: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5235
5271
|
static getTag(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5236
5272
|
static setTag(tag: string | null, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5273
|
+
static getTenant(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5274
|
+
static setTenant(tenant: string | null, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5275
|
+
static getEnv(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5276
|
+
static setEnv(env: string | null, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5237
5277
|
static getFunctionality(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5238
5278
|
static setFunctionality(functionality: Functionality, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5239
5279
|
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"]
|
|
@@ -1466,6 +1468,7 @@ export class ProcessParams {
|
|
|
1466
1468
|
result.timeoutFromFirstDetect = jsonObject["timeoutFromFirstDetect"]
|
|
1467
1469
|
result.timeoutFromFirstDocType = jsonObject["timeoutFromFirstDocType"]
|
|
1468
1470
|
result.documentAreaMin = jsonObject["documentAreaMin"]
|
|
1471
|
+
result.timeoutLiveness = jsonObject["timeoutLiveness"]
|
|
1469
1472
|
result.documentIDList = []
|
|
1470
1473
|
if (jsonObject["documentIDList"] != null)
|
|
1471
1474
|
for (const i in jsonObject["documentIDList"])
|
|
@@ -1534,6 +1537,7 @@ export class CustomizationColors {
|
|
|
1534
1537
|
result.rfidProcessingScreenProgressBar = jsonObject["rfidProcessingScreenProgressBar"]
|
|
1535
1538
|
result.rfidProcessingScreenProgressBarBackground = jsonObject["rfidProcessingScreenProgressBarBackground"]
|
|
1536
1539
|
result.rfidProcessingScreenResultLabelText = jsonObject["rfidProcessingScreenResultLabelText"]
|
|
1540
|
+
result.rfidProcessingScreenLoadingBar = jsonObject["rfidProcessingScreenLoadingBar"]
|
|
1537
1541
|
|
|
1538
1542
|
return result
|
|
1539
1543
|
}
|
|
@@ -1846,6 +1850,7 @@ export const CustomizationColor = {
|
|
|
1846
1850
|
RFID_PROCESSING_SCREEN_PROGRESS_BAR: "rfidProcessingScreenProgressBar",
|
|
1847
1851
|
RFID_PROCESSING_SCREEN_PROGRESS_BAR_BACKGROUND: "rfidProcessingScreenProgressBarBackground",
|
|
1848
1852
|
RFID_PROCESSING_SCREEN_RESULT_LABEL_TEXT: "rfidProcessingScreenResultLabelText",
|
|
1853
|
+
RFID_PROCESSING_SCREEN_LOADING_BAR: "rfidProcessingScreenLoadingBar",
|
|
1849
1854
|
}
|
|
1850
1855
|
|
|
1851
1856
|
export const eRFID_ErrorCodes = {
|
|
@@ -2492,6 +2497,9 @@ export const eCheckDiagnose = {
|
|
|
2492
2497
|
FIELD_POS_CORRECTOR_HIGHLIGHT_IR: 80,
|
|
2493
2498
|
FIELD_POS_CORRECTOR_GLARES_IN_PHOTO_AREA: 81,
|
|
2494
2499
|
FIELD_POS_CORRECTOR_PHOTO_REPLACED: 82,
|
|
2500
|
+
FIELD_POS_CORRECTOR_LANDMARKS_CHECK_ERROR: 83,
|
|
2501
|
+
FIELD_POS_CORRECTOR_FACE_PRESENCE_CHECK_ERROR: 84,
|
|
2502
|
+
FIELD_POS_CORRECTOR_FACE_ABSENCE_CHECK_ERROR: 85,
|
|
2495
2503
|
OVI_IR_INVISIBLE: 90,
|
|
2496
2504
|
OVI_INSUFFICIENT_AREA: 91,
|
|
2497
2505
|
OVI_COLOR_INVARIABLE: 92,
|
|
@@ -2563,7 +2571,7 @@ export const eCheckDiagnose = {
|
|
|
2563
2571
|
ICAO_IDB_SIGNATURE_MUST_BE_PRESENT: 246,
|
|
2564
2572
|
ICAO_IDB_SIGNATURE_MUST_NOT_BE_PRESENT: 247,
|
|
2565
2573
|
ICAO_IDB_CERTIFICATE_MUST_NOT_BE_PRESENT: 248,
|
|
2566
|
-
|
|
2574
|
+
INCORRECT_OBJECT_COLOR: 250,
|
|
2567
2575
|
}
|
|
2568
2576
|
|
|
2569
2577
|
export const RFIDDelegate = {
|
|
@@ -2579,6 +2587,14 @@ export const TextProcessing = {
|
|
|
2579
2587
|
ocCapital: 3,
|
|
2580
2588
|
}
|
|
2581
2589
|
|
|
2590
|
+
export const LogLevel = {
|
|
2591
|
+
FatalError: "FatalError",
|
|
2592
|
+
Error: "Error",
|
|
2593
|
+
Warning: "Warning",
|
|
2594
|
+
Info: "Info",
|
|
2595
|
+
Debug: "Debug",
|
|
2596
|
+
}
|
|
2597
|
+
|
|
2582
2598
|
export const AnimationImage = {
|
|
2583
2599
|
UNKNOWN: 0,
|
|
2584
2600
|
PASSPORT_SINGLE_PAGE: 1,
|
|
@@ -4018,6 +4034,14 @@ export const eVisualFieldType = {
|
|
|
4018
4034
|
FT_DATE_OF_RETIREMENT: 681,
|
|
4019
4035
|
FT_DOCUMENT_STATUS: 682,
|
|
4020
4036
|
FT_SIGNATURE: 683,
|
|
4037
|
+
FT_UNIQUE_CERTIFICATE_IDENTIFIER: 684,
|
|
4038
|
+
FT_EMAIL: 685,
|
|
4039
|
+
FT_DATE_OF_SPECIMEN_COLLECTION: 686,
|
|
4040
|
+
FT_TYPE_OF_TESTING: 687,
|
|
4041
|
+
FT_RESULT_OF_TESTING: 688,
|
|
4042
|
+
FT_METHOD_OF_TESTING: 689,
|
|
4043
|
+
FT_DIGITAL_TRAVEL_AUTHORIZATION_NUMBER: 690,
|
|
4044
|
+
FT_DATE_OF_FIRST_POSITIVE_TEST_RESULT: 691,
|
|
4021
4045
|
}
|
|
4022
4046
|
|
|
4023
4047
|
export const DocReaderOrientation = {
|
|
@@ -4220,6 +4244,12 @@ export const eRPRM_Lights = {
|
|
|
4220
4244
|
RPRM_LIGHT_WHITE_FULL_OVD: (6 | 67108864),
|
|
4221
4245
|
}
|
|
4222
4246
|
|
|
4247
|
+
export const eMrzDetectionModes = {
|
|
4248
|
+
DEFAULT: 0,
|
|
4249
|
+
RESIZE_BINARIZE_WINDOW: 1,
|
|
4250
|
+
BLUR_BEFORE_BINARIZATION: 2,
|
|
4251
|
+
}
|
|
4252
|
+
|
|
4223
4253
|
export const Enum = {
|
|
4224
4254
|
FontStyle,
|
|
4225
4255
|
eRPRM_Authenticity,
|
|
@@ -4249,6 +4279,7 @@ export const Enum = {
|
|
|
4249
4279
|
eCheckDiagnose,
|
|
4250
4280
|
RFIDDelegate,
|
|
4251
4281
|
TextProcessing,
|
|
4282
|
+
LogLevel,
|
|
4252
4283
|
AnimationImage,
|
|
4253
4284
|
ProcessingFinishedStatus,
|
|
4254
4285
|
DocFormat,
|
|
@@ -4279,6 +4310,7 @@ export const Enum = {
|
|
|
4279
4310
|
CustomizationImage,
|
|
4280
4311
|
DocReaderFrame,
|
|
4281
4312
|
eRPRM_Lights,
|
|
4313
|
+
eMrzDetectionModes,
|
|
4282
4314
|
}
|
|
4283
4315
|
|
|
4284
4316
|
const DocumentReader = {}
|
|
@@ -4291,6 +4323,10 @@ DocumentReader.getRfidSessionStatus = (successCallback, errorCallback) => RNRegu
|
|
|
4291
4323
|
DocumentReader.setRfidSessionStatus = (status, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "setRfidSessionStatus", [status], successCallback, errorCallback)
|
|
4292
4324
|
DocumentReader.getTag = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getTag", [], successCallback, errorCallback)
|
|
4293
4325
|
DocumentReader.setTag = (tag, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "setTag", [tag], successCallback, errorCallback)
|
|
4326
|
+
DocumentReader.getTenant = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getTenant", [], successCallback, errorCallback)
|
|
4327
|
+
DocumentReader.setTenant = (tenant, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "setTenant", [tenant], successCallback, errorCallback)
|
|
4328
|
+
DocumentReader.getEnv = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getEnv", [], successCallback, errorCallback)
|
|
4329
|
+
DocumentReader.setEnv = (env, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "setEnv", [env], successCallback, errorCallback)
|
|
4294
4330
|
DocumentReader.getFunctionality = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getFunctionality", [], successCallback, errorCallback)
|
|
4295
4331
|
DocumentReader.setFunctionality = (functionality, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "setFunctionality", [functionality], successCallback, errorCallback)
|
|
4296
4332
|
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
|
|
|
@@ -143,16 +143,13 @@
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
+(RGLConfig*)configFromJson:(NSDictionary*)input {
|
|
146
|
-
if(input
|
|
147
|
-
if([
|
|
148
|
-
RGLConfig *config = [[RGLConfig alloc] initWithLicenseData:[self base64Decode: [
|
|
146
|
+
if (!input) return nil;
|
|
147
|
+
if (!input[@"license"]) return nil;
|
|
148
|
+
RGLConfig *config = [[RGLConfig alloc] initWithLicenseData:[self base64Decode: input[@"license"]]];
|
|
149
149
|
|
|
150
|
-
if([input
|
|
151
|
-
|
|
152
|
-
if([input
|
|
153
|
-
config.licenseUpdateCheck = [[input valueForKey:@"licenseUpdate"] boolValue];
|
|
154
|
-
if([input valueForKey:@"delayedNNLoad"] != nil)
|
|
155
|
-
config.delayedNNLoadEnabled = [[input valueForKey:@"delayedNNLoad"] boolValue];
|
|
150
|
+
if (input[@"databasePath"]) config.databasePath = [[NSBundle mainBundle] pathForResource:input[@"databasePath"] ofType:nil];
|
|
151
|
+
if (input[@"licenseUpdate"]) config.licenseUpdateCheck = [input[@"licenseUpdate"] boolValue];
|
|
152
|
+
if (input[@"delayedNNLoad"]) config.delayedNNLoadEnabled = [input[@"delayedNNLoad"] boolValue];
|
|
156
153
|
|
|
157
154
|
return config;
|
|
158
155
|
}
|
|
@@ -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.658-beta",
|
|
4
4
|
"description": "React Native module for reading and validation of identification documents (API framework)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Bug Report
|
|
3
|
-
about: Create a report to help us improve
|
|
4
|
-
title: "[BR] "
|
|
5
|
-
labels: bug
|
|
6
|
-
assignees: ''
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
**Before Submitting, be sure to**
|
|
11
|
-
- [ ] Update to the latest stable version.
|
|
12
|
-
- [ ] Read and follow the guides described in the [documentation](https://docs.regulaforensics.com?utm_source=github).
|
|
13
|
-
- [ ] Try to reproduce in our demo project.
|
|
14
|
-
- [ ] Search for your issue in the existing GitHub issues.
|
|
15
|
-
|
|
16
|
-
**Bug Description**
|
|
17
|
-
<!--A clear and concise description of what the bug is.-->
|
|
18
|
-
|
|
19
|
-
**Steps To Reproduce**
|
|
20
|
-
<!--
|
|
21
|
-
1. Go to '...'
|
|
22
|
-
2. Click on '....'
|
|
23
|
-
3. Scroll down to '....'
|
|
24
|
-
4. See error
|
|
25
|
-
-->
|
|
26
|
-
|
|
27
|
-
**Expected behavior**
|
|
28
|
-
<!--A clear and concise description of what you expected to happen.-->
|
|
29
|
-
|
|
30
|
-
**Screenshots**
|
|
31
|
-
<!--If applicable, add screenshots to help explain your issue.-->
|
|
32
|
-
|
|
33
|
-
**Environment:**
|
|
34
|
-
- Device: <!--[e.g. iPhone 12]-->
|
|
35
|
-
- OS: <!--[e.g. iOS]-->
|
|
36
|
-
- OS version: <!--[e.g. 10.0]-->
|
|
37
|
-
|
|
38
|
-
**Additional context**
|
|
39
|
-
<!--Add any other context about the problem here.-->
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Feature Request
|
|
3
|
-
about: Suggest an idea for this product
|
|
4
|
-
title: "[FR] "
|
|
5
|
-
labels: enhancement
|
|
6
|
-
assignees: ''
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
**Is your feature request related to a problem? Please describe.**
|
|
11
|
-
<!--A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]-->
|
|
12
|
-
|
|
13
|
-
**Describe the solution you'd like**
|
|
14
|
-
<!--A clear and concise description of what you want to happen.-->
|
|
15
|
-
|
|
16
|
-
**Describe alternatives you've considered**
|
|
17
|
-
<!--A clear and concise description of any alternative solutions or features you've considered.-->
|
|
18
|
-
|
|
19
|
-
**Additional context**
|
|
20
|
-
<!--Add any other context or screenshots about the feature request here.-->
|