@regulaforensics/react-native-document-reader-api 8.3.263 → 8.4.1-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/README.md +4 -0
- package/RNDocumentReaderApi.podspec +1 -1
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/regula/plugin/documentreader/BluetoothUtil.kt +9 -5
- package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +20 -0
- package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +3 -0
- package/android/src/main/java/com/regula/plugin/documentreader/Main.kt +11 -8
- package/example/App.tsx +4 -3
- package/example/android/app/build.gradle +3 -3
- package/example/android/build.gradle +4 -4
- package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/example/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/example/android/gradlew +1 -1
- package/example/ios/DocumentReader.xcodeproj/project.pbxproj +17 -2
- package/example/package-lock.json +1160 -1674
- package/example/package.json +20 -20
- package/index.d.ts +37 -0
- package/index.js +26 -0
- package/ios/RGLWConfig.m +10 -9
- package/ios/RGLWJSONConstructor.m +3 -0
- package/ios/RGLWMain.h +2 -2
- package/ios/RGLWMain.m +2 -2
- package/ios/RNRegulaDocumentReader.m +2 -2
- package/package.json +1 -1
package/example/package.json
CHANGED
|
@@ -10,39 +10,39 @@
|
|
|
10
10
|
"test": "jest"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@regulaforensics/react-native-document-reader-api": "8.
|
|
14
|
-
"@regulaforensics/react-native-document-reader-core-fullauthrfid": "8.
|
|
15
|
-
"react-native-progress": "5.0.0",
|
|
16
|
-
"react-native-radio-buttons-group": "3.0.5",
|
|
13
|
+
"@regulaforensics/react-native-document-reader-api": "8.4.1-nightly",
|
|
14
|
+
"@regulaforensics/react-native-document-reader-core-fullauthrfid": "8.5.1219-nightly",
|
|
17
15
|
"@rneui/base": "4.0.0-rc.7",
|
|
18
16
|
"@rneui/themed": "4.0.0-rc.7",
|
|
19
|
-
"react
|
|
20
|
-
"react": "
|
|
21
|
-
"react-native": "0.76.9",
|
|
17
|
+
"react": "19.0.0",
|
|
18
|
+
"react-native": "0.79.0",
|
|
22
19
|
"react-native-fs": "2.20.0",
|
|
23
|
-
"react-native-image-picker": "7.2.3"
|
|
20
|
+
"react-native-image-picker": "7.2.3",
|
|
21
|
+
"react-native-progress": "5.0.0",
|
|
22
|
+
"react-native-radio-buttons-group": "3.0.5",
|
|
23
|
+
"react-native-vector-icons": "10.2.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@babel/core": "^7.26.0",
|
|
27
27
|
"@babel/preset-env": "^7.26.0",
|
|
28
|
-
"@babel/runtime": "^7.
|
|
29
|
-
"@react-native-community/cli": "
|
|
30
|
-
"@react-native-community/cli-platform-android": "
|
|
31
|
-
"@react-native-community/cli-platform-ios": "
|
|
32
|
-
"@react-native/babel-preset": "0.
|
|
33
|
-
"@react-native/eslint-config": "0.
|
|
34
|
-
"@react-native/metro-config": "0.
|
|
35
|
-
"@react-native/typescript-config": "0.
|
|
36
|
-
"@types/react": "^
|
|
37
|
-
"@types/react-test-renderer": "^
|
|
28
|
+
"@babel/runtime": "^7.28.4",
|
|
29
|
+
"@react-native-community/cli": "18.0.1",
|
|
30
|
+
"@react-native-community/cli-platform-android": "18.0.1",
|
|
31
|
+
"@react-native-community/cli-platform-ios": "18.0.1",
|
|
32
|
+
"@react-native/babel-preset": "0.79.0",
|
|
33
|
+
"@react-native/eslint-config": "0.79.0",
|
|
34
|
+
"@react-native/metro-config": "0.79.0",
|
|
35
|
+
"@react-native/typescript-config": "0.79.0",
|
|
36
|
+
"@types/react": "^19.0.0",
|
|
37
|
+
"@types/react-test-renderer": "^19.0.0",
|
|
38
38
|
"babel-jest": "^29.7.0",
|
|
39
39
|
"eslint": "^8.19.0",
|
|
40
40
|
"jest": "^29.7.0",
|
|
41
41
|
"prettier": "2.8.8",
|
|
42
|
-
"react-test-renderer": "
|
|
42
|
+
"react-test-renderer": "19.0.0",
|
|
43
43
|
"typescript": "5.7.3"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=18"
|
|
47
47
|
}
|
|
48
|
-
}
|
|
48
|
+
}
|
package/index.d.ts
CHANGED
|
@@ -1499,6 +1499,7 @@ export class DocReaderConfig {
|
|
|
1499
1499
|
customDb?: string
|
|
1500
1500
|
databasePath?: string
|
|
1501
1501
|
licenseUpdate?: boolean
|
|
1502
|
+
licenseUpdateTimeout?: number
|
|
1502
1503
|
delayedNNLoad?: boolean
|
|
1503
1504
|
blackList?: Record<string, string>
|
|
1504
1505
|
|
|
@@ -1510,6 +1511,7 @@ export class DocReaderConfig {
|
|
|
1510
1511
|
result.customDb = jsonObject["customDb"]
|
|
1511
1512
|
result.databasePath = jsonObject["databasePath"]
|
|
1512
1513
|
result.licenseUpdate = jsonObject["licenseUpdate"]
|
|
1514
|
+
result.licenseUpdateTimeout = jsonObject["licenseUpdateTimeout"]
|
|
1513
1515
|
result.delayedNNLoad = jsonObject["delayedNNLoad"]
|
|
1514
1516
|
result.blackList = jsonObject["blackList"]
|
|
1515
1517
|
|
|
@@ -1826,6 +1828,7 @@ export class Functionality {
|
|
|
1826
1828
|
manualMultipageMode?: boolean
|
|
1827
1829
|
singleResult?: boolean
|
|
1828
1830
|
torchTurnedOn?: boolean
|
|
1831
|
+
preventScreenRecording?: boolean
|
|
1829
1832
|
showCaptureButtonDelayFromDetect?: number
|
|
1830
1833
|
showCaptureButtonDelayFromStart?: number
|
|
1831
1834
|
rfidTimeout?: number
|
|
@@ -1864,6 +1867,7 @@ export class Functionality {
|
|
|
1864
1867
|
result.manualMultipageMode = jsonObject["manualMultipageMode"]
|
|
1865
1868
|
result.singleResult = jsonObject["singleResult"]
|
|
1866
1869
|
result.torchTurnedOn = jsonObject["torchTurnedOn"]
|
|
1870
|
+
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
1867
1871
|
result.showCaptureButtonDelayFromDetect = jsonObject["showCaptureButtonDelayFromDetect"]
|
|
1868
1872
|
result.showCaptureButtonDelayFromStart = jsonObject["showCaptureButtonDelayFromStart"]
|
|
1869
1873
|
result.rfidTimeout = jsonObject["rfidTimeout"]
|
|
@@ -2137,6 +2141,7 @@ export class ProcessParams {
|
|
|
2137
2141
|
generateAlpha2Codes?: boolean
|
|
2138
2142
|
disableAuthResolutionFilter?: boolean
|
|
2139
2143
|
strictSecurityChecks?: boolean
|
|
2144
|
+
returnTransliteratedFields?: boolean
|
|
2140
2145
|
barcodeParserType?: number
|
|
2141
2146
|
perspectiveAngle?: number
|
|
2142
2147
|
minDPI?: number
|
|
@@ -2219,6 +2224,7 @@ export class ProcessParams {
|
|
|
2219
2224
|
result.generateAlpha2Codes = jsonObject["generateAlpha2Codes"]
|
|
2220
2225
|
result.disableAuthResolutionFilter = jsonObject["disableAuthResolutionFilter"]
|
|
2221
2226
|
result.strictSecurityChecks = jsonObject["strictSecurityChecks"]
|
|
2227
|
+
result.returnTransliteratedFields = jsonObject["returnTransliteratedFields"]
|
|
2222
2228
|
result.barcodeParserType = jsonObject["barcodeParserType"]
|
|
2223
2229
|
result.perspectiveAngle = jsonObject["perspectiveAngle"]
|
|
2224
2230
|
result.minDPI = jsonObject["minDPI"]
|
|
@@ -2328,6 +2334,10 @@ export class CustomizationColors {
|
|
|
2328
2334
|
rfidProcessingScreenProgressBarBackground?: number
|
|
2329
2335
|
rfidProcessingScreenResultLabelText?: number
|
|
2330
2336
|
rfidProcessingScreenLoadingBar?: number
|
|
2337
|
+
rfidEnableNfcTitleText?: number
|
|
2338
|
+
rfidEnableNfcDescriptionText?: number
|
|
2339
|
+
rfidEnableNfcButtonText?: number
|
|
2340
|
+
rfidEnableNfcButtonBackground?: number
|
|
2331
2341
|
|
|
2332
2342
|
static fromJson(jsonObject?: any): CustomizationColors | undefined {
|
|
2333
2343
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
@@ -2341,6 +2351,10 @@ export class CustomizationColors {
|
|
|
2341
2351
|
result.rfidProcessingScreenProgressBarBackground = jsonObject["rfidProcessingScreenProgressBarBackground"]
|
|
2342
2352
|
result.rfidProcessingScreenResultLabelText = jsonObject["rfidProcessingScreenResultLabelText"]
|
|
2343
2353
|
result.rfidProcessingScreenLoadingBar = jsonObject["rfidProcessingScreenLoadingBar"]
|
|
2354
|
+
result.rfidEnableNfcTitleText = jsonObject["rfidEnableNfcTitleText"]
|
|
2355
|
+
result.rfidEnableNfcDescriptionText = jsonObject["rfidEnableNfcDescriptionText"]
|
|
2356
|
+
result.rfidEnableNfcButtonText = jsonObject["rfidEnableNfcButtonText"]
|
|
2357
|
+
result.rfidEnableNfcButtonBackground = jsonObject["rfidEnableNfcButtonBackground"]
|
|
2344
2358
|
|
|
2345
2359
|
return result
|
|
2346
2360
|
}
|
|
@@ -2350,6 +2364,9 @@ export class CustomizationFonts {
|
|
|
2350
2364
|
rfidProcessingScreenHintLabel?: Font
|
|
2351
2365
|
rfidProcessingScreenProgressLabel?: Font
|
|
2352
2366
|
rfidProcessingScreenResultLabel?: Font
|
|
2367
|
+
rfidEnableNfcTitleText?: Font
|
|
2368
|
+
rfidEnableNfcDescriptionText?: Font
|
|
2369
|
+
rfidEnableNfcButtonText?: Font
|
|
2353
2370
|
|
|
2354
2371
|
static fromJson(jsonObject?: any): CustomizationFonts | undefined {
|
|
2355
2372
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
@@ -2358,6 +2375,9 @@ export class CustomizationFonts {
|
|
|
2358
2375
|
result.rfidProcessingScreenHintLabel = Font.fromJson(jsonObject["rfidProcessingScreenHintLabel"])
|
|
2359
2376
|
result.rfidProcessingScreenProgressLabel = Font.fromJson(jsonObject["rfidProcessingScreenProgressLabel"])
|
|
2360
2377
|
result.rfidProcessingScreenResultLabel = Font.fromJson(jsonObject["rfidProcessingScreenResultLabel"])
|
|
2378
|
+
result.rfidEnableNfcTitleText = Font.fromJson(jsonObject["rfidEnableNfcTitleText"])
|
|
2379
|
+
result.rfidEnableNfcDescriptionText = Font.fromJson(jsonObject["rfidEnableNfcDescriptionText"])
|
|
2380
|
+
result.rfidEnableNfcButtonText = Font.fromJson(jsonObject["rfidEnableNfcButtonText"])
|
|
2361
2381
|
|
|
2362
2382
|
return result
|
|
2363
2383
|
}
|
|
@@ -2365,12 +2385,14 @@ export class CustomizationFonts {
|
|
|
2365
2385
|
|
|
2366
2386
|
export class CustomizationImages {
|
|
2367
2387
|
rfidProcessingScreenFailureImage?: string
|
|
2388
|
+
rfidEnableNfcImage?: string
|
|
2368
2389
|
|
|
2369
2390
|
static fromJson(jsonObject?: any): CustomizationImages | undefined {
|
|
2370
2391
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
2371
2392
|
const result = new CustomizationImages
|
|
2372
2393
|
|
|
2373
2394
|
result.rfidProcessingScreenFailureImage = jsonObject["rfidProcessingScreenFailureImage"]
|
|
2395
|
+
result.rfidEnableNfcImage = jsonObject["rfidEnableNfcImage"]
|
|
2374
2396
|
|
|
2375
2397
|
return result
|
|
2376
2398
|
}
|
|
@@ -2902,6 +2924,10 @@ export const CustomizationColor = {
|
|
|
2902
2924
|
RFID_PROCESSING_SCREEN_PROGRESS_BAR_BACKGROUND: "rfidProcessingScreenProgressBarBackground",
|
|
2903
2925
|
RFID_PROCESSING_SCREEN_RESULT_LABEL_TEXT: "rfidProcessingScreenResultLabelText",
|
|
2904
2926
|
RFID_PROCESSING_SCREEN_LOADING_BAR: "rfidProcessingScreenLoadingBar",
|
|
2927
|
+
RFID_ENABLE_NFC_TITLE_TEXT: "rfidEnableNfcTitleText",
|
|
2928
|
+
RFID_ENABLE_NFC_DESCRIPTION_TEXT: "rfidEnableNfcDescriptionText",
|
|
2929
|
+
RFID_ENABLE_NFC_BUTTON_TEXT: "rfidEnableNfcButtonText",
|
|
2930
|
+
RFID_ENABLE_NFC_BUTTON_BACKGROUND: "rfidEnableNfcButtonBackground",
|
|
2905
2931
|
}
|
|
2906
2932
|
|
|
2907
2933
|
export const eRFID_ErrorCodes = {
|
|
@@ -3332,6 +3358,7 @@ export const DocumentReaderErrorCodes = {
|
|
|
3332
3358
|
SAVE_DB: 8,
|
|
3333
3359
|
DOWNLOAD_DB_INCORRECT_CHECKSUM: 9,
|
|
3334
3360
|
DB_DOWNLOAD: 10,
|
|
3361
|
+
RFID_ERROR: 12,
|
|
3335
3362
|
LICENSE_ABSENT_OR_CORRUPTED: 13,
|
|
3336
3363
|
LICENSE_INVALID_DATE: 14,
|
|
3337
3364
|
LICENSE_INVALID_VERSION: 15,
|
|
@@ -3354,6 +3381,8 @@ export const DocumentReaderErrorCodes = {
|
|
|
3354
3381
|
NATIVE_JAVA_EXCEPTION: 1000,
|
|
3355
3382
|
BACKEND_ONLINE_PROCESSING: 303,
|
|
3356
3383
|
WRONG_INPUT: 400,
|
|
3384
|
+
RESULT_UNAVAILABLE: 410,
|
|
3385
|
+
RESULT_WRONG_OUTPUT: 411,
|
|
3357
3386
|
STATE_EXCEPTION: 500,
|
|
3358
3387
|
BLE_EXCEPTION: 600,
|
|
3359
3388
|
FEATURE_BLUETOOTH_LE_NOT_SUPPORTED: 601,
|
|
@@ -3576,6 +3605,8 @@ export const eCheckDiagnose = {
|
|
|
3576
3605
|
FIELD_POS_CORRECTOR_FACE_PRESENCE_CHECK_ERROR: 84,
|
|
3577
3606
|
FIELD_POS_CORRECTOR_FACE_ABSENCE_CHECK_ERROR: 85,
|
|
3578
3607
|
CHD_FIELD_POS_CORRECTOR_INCORRECT_HEAD_POSITION: 86,
|
|
3608
|
+
CHD_FIELD_POS_CORRECTOR_AGE_CHECK_ERROR: 87,
|
|
3609
|
+
CHD_FIELD_POS_CORRECTOR_SEX_CHECK_ERROR: 88,
|
|
3579
3610
|
OVI_IR_INVISIBLE: 90,
|
|
3580
3611
|
OVI_INSUFFICIENT_AREA: 91,
|
|
3581
3612
|
OVI_COLOR_INVARIABLE: 92,
|
|
@@ -4044,6 +4075,8 @@ export const eRPRM_SecurityFeatureType = {
|
|
|
4044
4075
|
SECURITY_FEATURE_TYPE_LIVENESS_BLACK_AND_WHITE_COPY_CHECK: 53,
|
|
4045
4076
|
SECURITY_FEATURE_TYPE_LIVENESS_DYNAPRINT_CHECK: 54,
|
|
4046
4077
|
SECURITY_FEATURE_TYPE_LIVENESS_GEOMETRY_CHECK: 55,
|
|
4078
|
+
SECURITY_FEATURE_TYPE_AGE_CHECK: 56,
|
|
4079
|
+
SECURITY_FEATURE_TYPE_SEX_CHECK: 57,
|
|
4047
4080
|
}
|
|
4048
4081
|
|
|
4049
4082
|
export const OnlineMode = {
|
|
@@ -4320,6 +4353,9 @@ export const CustomizationFont = {
|
|
|
4320
4353
|
RFID_PROCESSING_SCREEN_HINT_LABEL: "rfidProcessingScreenHintLabel",
|
|
4321
4354
|
RFID_PROCESSING_SCREEN_PROGRESS_LABEL: "rfidProcessingScreenProgressLabel",
|
|
4322
4355
|
RFID_PROCESSING_SCREEN_RESULT_LABEL: "rfidProcessingScreenResultLabel",
|
|
4356
|
+
RFID_ENABLE_NFC_TITLE_TEXT: "rfidEnableNfcTitleText",
|
|
4357
|
+
RFID_ENABLE_NFC_DESCRIPTION_TEXT: "rfidEnableNfcDescriptionText",
|
|
4358
|
+
RFID_ENABLE_NFC_BUTTON_TEXT: "rfidEnableNfcButtonText",
|
|
4323
4359
|
}
|
|
4324
4360
|
|
|
4325
4361
|
export const ImageFormat = {
|
|
@@ -5326,6 +5362,7 @@ export const LCID = {
|
|
|
5326
5362
|
|
|
5327
5363
|
export const CustomizationImage = {
|
|
5328
5364
|
RFID_PROCESSING_SCREEN_FAILURE_IMAGE: "rfidProcessingScreenFailureImage",
|
|
5365
|
+
RFID_ENABLE_NFC_IMAGE: "rfidEnableNfcImage",
|
|
5329
5366
|
}
|
|
5330
5367
|
|
|
5331
5368
|
export const DocReaderFrame = {
|
package/index.js
CHANGED
|
@@ -1013,6 +1013,7 @@ export class DocReaderConfig {
|
|
|
1013
1013
|
result.customDb = jsonObject["customDb"]
|
|
1014
1014
|
result.databasePath = jsonObject["databasePath"]
|
|
1015
1015
|
result.licenseUpdate = jsonObject["licenseUpdate"]
|
|
1016
|
+
result.licenseUpdateTimeout = jsonObject["licenseUpdateTimeout"]
|
|
1016
1017
|
result.delayedNNLoad = jsonObject["delayedNNLoad"]
|
|
1017
1018
|
result.blackList = jsonObject["blackList"]
|
|
1018
1019
|
|
|
@@ -1257,6 +1258,7 @@ export class Functionality {
|
|
|
1257
1258
|
result.manualMultipageMode = jsonObject["manualMultipageMode"]
|
|
1258
1259
|
result.singleResult = jsonObject["singleResult"]
|
|
1259
1260
|
result.torchTurnedOn = jsonObject["torchTurnedOn"]
|
|
1261
|
+
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
1260
1262
|
result.showCaptureButtonDelayFromDetect = jsonObject["showCaptureButtonDelayFromDetect"]
|
|
1261
1263
|
result.showCaptureButtonDelayFromStart = jsonObject["showCaptureButtonDelayFromStart"]
|
|
1262
1264
|
result.rfidTimeout = jsonObject["rfidTimeout"]
|
|
@@ -1466,6 +1468,7 @@ export class ProcessParams {
|
|
|
1466
1468
|
result.generateAlpha2Codes = jsonObject["generateAlpha2Codes"]
|
|
1467
1469
|
result.disableAuthResolutionFilter = jsonObject["disableAuthResolutionFilter"]
|
|
1468
1470
|
result.strictSecurityChecks = jsonObject["strictSecurityChecks"]
|
|
1471
|
+
result.returnTransliteratedFields = jsonObject["returnTransliteratedFields"]
|
|
1469
1472
|
result.barcodeParserType = jsonObject["barcodeParserType"]
|
|
1470
1473
|
result.perspectiveAngle = jsonObject["perspectiveAngle"]
|
|
1471
1474
|
result.minDPI = jsonObject["minDPI"]
|
|
@@ -1559,6 +1562,10 @@ export class CustomizationColors {
|
|
|
1559
1562
|
result.rfidProcessingScreenProgressBarBackground = jsonObject["rfidProcessingScreenProgressBarBackground"]
|
|
1560
1563
|
result.rfidProcessingScreenResultLabelText = jsonObject["rfidProcessingScreenResultLabelText"]
|
|
1561
1564
|
result.rfidProcessingScreenLoadingBar = jsonObject["rfidProcessingScreenLoadingBar"]
|
|
1565
|
+
result.rfidEnableNfcTitleText = jsonObject["rfidEnableNfcTitleText"]
|
|
1566
|
+
result.rfidEnableNfcDescriptionText = jsonObject["rfidEnableNfcDescriptionText"]
|
|
1567
|
+
result.rfidEnableNfcButtonText = jsonObject["rfidEnableNfcButtonText"]
|
|
1568
|
+
result.rfidEnableNfcButtonBackground = jsonObject["rfidEnableNfcButtonBackground"]
|
|
1562
1569
|
|
|
1563
1570
|
return result
|
|
1564
1571
|
}
|
|
@@ -1572,6 +1579,9 @@ export class CustomizationFonts {
|
|
|
1572
1579
|
result.rfidProcessingScreenHintLabel = Font.fromJson(jsonObject["rfidProcessingScreenHintLabel"])
|
|
1573
1580
|
result.rfidProcessingScreenProgressLabel = Font.fromJson(jsonObject["rfidProcessingScreenProgressLabel"])
|
|
1574
1581
|
result.rfidProcessingScreenResultLabel = Font.fromJson(jsonObject["rfidProcessingScreenResultLabel"])
|
|
1582
|
+
result.rfidEnableNfcTitleText = Font.fromJson(jsonObject["rfidEnableNfcTitleText"])
|
|
1583
|
+
result.rfidEnableNfcDescriptionText = Font.fromJson(jsonObject["rfidEnableNfcDescriptionText"])
|
|
1584
|
+
result.rfidEnableNfcButtonText = Font.fromJson(jsonObject["rfidEnableNfcButtonText"])
|
|
1575
1585
|
|
|
1576
1586
|
return result
|
|
1577
1587
|
}
|
|
@@ -1583,6 +1593,7 @@ export class CustomizationImages {
|
|
|
1583
1593
|
const result = new CustomizationImages()
|
|
1584
1594
|
|
|
1585
1595
|
result.rfidProcessingScreenFailureImage = jsonObject["rfidProcessingScreenFailureImage"]
|
|
1596
|
+
result.rfidEnableNfcImage = jsonObject["rfidEnableNfcImage"]
|
|
1586
1597
|
|
|
1587
1598
|
return result
|
|
1588
1599
|
}
|
|
@@ -1907,6 +1918,10 @@ export const CustomizationColor = {
|
|
|
1907
1918
|
RFID_PROCESSING_SCREEN_PROGRESS_BAR_BACKGROUND: "rfidProcessingScreenProgressBarBackground",
|
|
1908
1919
|
RFID_PROCESSING_SCREEN_RESULT_LABEL_TEXT: "rfidProcessingScreenResultLabelText",
|
|
1909
1920
|
RFID_PROCESSING_SCREEN_LOADING_BAR: "rfidProcessingScreenLoadingBar",
|
|
1921
|
+
RFID_ENABLE_NFC_TITLE_TEXT: "rfidEnableNfcTitleText",
|
|
1922
|
+
RFID_ENABLE_NFC_DESCRIPTION_TEXT: "rfidEnableNfcDescriptionText",
|
|
1923
|
+
RFID_ENABLE_NFC_BUTTON_TEXT: "rfidEnableNfcButtonText",
|
|
1924
|
+
RFID_ENABLE_NFC_BUTTON_BACKGROUND: "rfidEnableNfcButtonBackground",
|
|
1910
1925
|
}
|
|
1911
1926
|
|
|
1912
1927
|
export const eRFID_ErrorCodes = {
|
|
@@ -2337,6 +2352,7 @@ export const DocumentReaderErrorCodes = {
|
|
|
2337
2352
|
SAVE_DB: 8,
|
|
2338
2353
|
DOWNLOAD_DB_INCORRECT_CHECKSUM: 9,
|
|
2339
2354
|
DB_DOWNLOAD: 10,
|
|
2355
|
+
RFID_ERROR: 12,
|
|
2340
2356
|
LICENSE_ABSENT_OR_CORRUPTED: 13,
|
|
2341
2357
|
LICENSE_INVALID_DATE: 14,
|
|
2342
2358
|
LICENSE_INVALID_VERSION: 15,
|
|
@@ -2359,6 +2375,8 @@ export const DocumentReaderErrorCodes = {
|
|
|
2359
2375
|
NATIVE_JAVA_EXCEPTION: 1000,
|
|
2360
2376
|
BACKEND_ONLINE_PROCESSING: 303,
|
|
2361
2377
|
WRONG_INPUT: 400,
|
|
2378
|
+
RESULT_UNAVAILABLE: 410,
|
|
2379
|
+
RESULT_WRONG_OUTPUT: 411,
|
|
2362
2380
|
STATE_EXCEPTION: 500,
|
|
2363
2381
|
BLE_EXCEPTION: 600,
|
|
2364
2382
|
FEATURE_BLUETOOTH_LE_NOT_SUPPORTED: 601,
|
|
@@ -2581,6 +2599,8 @@ export const eCheckDiagnose = {
|
|
|
2581
2599
|
FIELD_POS_CORRECTOR_FACE_PRESENCE_CHECK_ERROR: 84,
|
|
2582
2600
|
FIELD_POS_CORRECTOR_FACE_ABSENCE_CHECK_ERROR: 85,
|
|
2583
2601
|
CHD_FIELD_POS_CORRECTOR_INCORRECT_HEAD_POSITION: 86,
|
|
2602
|
+
CHD_FIELD_POS_CORRECTOR_AGE_CHECK_ERROR: 87,
|
|
2603
|
+
CHD_FIELD_POS_CORRECTOR_SEX_CHECK_ERROR: 88,
|
|
2584
2604
|
OVI_IR_INVISIBLE: 90,
|
|
2585
2605
|
OVI_INSUFFICIENT_AREA: 91,
|
|
2586
2606
|
OVI_COLOR_INVARIABLE: 92,
|
|
@@ -3049,6 +3069,8 @@ export const eRPRM_SecurityFeatureType = {
|
|
|
3049
3069
|
SECURITY_FEATURE_TYPE_LIVENESS_BLACK_AND_WHITE_COPY_CHECK: 53,
|
|
3050
3070
|
SECURITY_FEATURE_TYPE_LIVENESS_DYNAPRINT_CHECK: 54,
|
|
3051
3071
|
SECURITY_FEATURE_TYPE_LIVENESS_GEOMETRY_CHECK: 55,
|
|
3072
|
+
SECURITY_FEATURE_TYPE_AGE_CHECK: 56,
|
|
3073
|
+
SECURITY_FEATURE_TYPE_SEX_CHECK: 57,
|
|
3052
3074
|
}
|
|
3053
3075
|
|
|
3054
3076
|
export const OnlineMode = {
|
|
@@ -3325,6 +3347,9 @@ export const CustomizationFont = {
|
|
|
3325
3347
|
RFID_PROCESSING_SCREEN_HINT_LABEL: "rfidProcessingScreenHintLabel",
|
|
3326
3348
|
RFID_PROCESSING_SCREEN_PROGRESS_LABEL: "rfidProcessingScreenProgressLabel",
|
|
3327
3349
|
RFID_PROCESSING_SCREEN_RESULT_LABEL: "rfidProcessingScreenResultLabel",
|
|
3350
|
+
RFID_ENABLE_NFC_TITLE_TEXT: "rfidEnableNfcTitleText",
|
|
3351
|
+
RFID_ENABLE_NFC_DESCRIPTION_TEXT: "rfidEnableNfcDescriptionText",
|
|
3352
|
+
RFID_ENABLE_NFC_BUTTON_TEXT: "rfidEnableNfcButtonText",
|
|
3328
3353
|
}
|
|
3329
3354
|
|
|
3330
3355
|
export const ImageFormat = {
|
|
@@ -4331,6 +4356,7 @@ export const LCID = {
|
|
|
4331
4356
|
|
|
4332
4357
|
export const CustomizationImage = {
|
|
4333
4358
|
RFID_PROCESSING_SCREEN_FAILURE_IMAGE: "rfidProcessingScreenFailureImage",
|
|
4359
|
+
RFID_ENABLE_NFC_IMAGE: "rfidEnableNfcImage",
|
|
4334
4360
|
}
|
|
4335
4361
|
|
|
4336
4362
|
export const DocReaderFrame = {
|
package/ios/RGLWConfig.m
CHANGED
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
if([options valueForKey:@"singleResult"] != nil)
|
|
35
35
|
functionality.singleResult = [[options valueForKey:@"singleResult"] boolValue];
|
|
36
36
|
if(options[@"torchTurnedOn"]) functionality.torchTurnedOn = [options[@"torchTurnedOn"] boolValue];
|
|
37
|
+
if(options[@"preventScreenRecording"]) functionality.preventScreenRecording = [options[@"preventScreenRecording"] boolValue];
|
|
37
38
|
|
|
38
39
|
// Int
|
|
39
40
|
if([options valueForKey:@"showCaptureButtonDelayFromDetect"] != nil)
|
|
@@ -88,6 +89,7 @@
|
|
|
88
89
|
result[@"manualMultipageMode"] = [NSNumber numberWithBool:functionality.manualMultipageMode];
|
|
89
90
|
result[@"singleResult"] = [NSNumber numberWithBool:functionality.singleResult];
|
|
90
91
|
result[@"torchTurnedOn"] = @(functionality.torchTurnedOn);
|
|
92
|
+
result[@"preventScreenRecording"] = @(functionality.preventScreenRecording);
|
|
91
93
|
|
|
92
94
|
// Int
|
|
93
95
|
result[@"showCaptureButtonDelayFromDetect"] = [NSNumber numberWithDouble:functionality.showCaptureButtonDelayFromDetect];
|
|
@@ -186,6 +188,7 @@
|
|
|
186
188
|
if (options[@"generateAlpha2Codes"]) processParams.generateAlpha2Codes = options[@"generateAlpha2Codes"];
|
|
187
189
|
if (options[@"disableAuthResolutionFilter"]) processParams.disableAuthResolutionFilter = options[@"disableAuthResolutionFilter"];
|
|
188
190
|
if (options[@"strictSecurityChecks"]) processParams.strictSecurityChecks = options[@"strictSecurityChecks"];
|
|
191
|
+
if (options[@"returnTransliteratedFields"]) processParams.returnTransliteratedFields = options[@"returnTransliteratedFields"];
|
|
189
192
|
|
|
190
193
|
// Int
|
|
191
194
|
if([options valueForKey:@"measureSystem"] != nil)
|
|
@@ -257,22 +260,19 @@
|
|
|
257
260
|
processParams.lcidFilter = [options mutableArrayValueForKey:@"lcidFilter"];
|
|
258
261
|
|
|
259
262
|
// JSONObject
|
|
260
|
-
if([
|
|
263
|
+
if (options[@"customParams"]) processParams.customParams = options[@"customParams"];
|
|
264
|
+
if ([options valueForKey:@"imageQA"] != nil)
|
|
261
265
|
[self setImageQA:processParams.imageQA input:[options valueForKey:@"imageQA"]];
|
|
262
|
-
if([options valueForKey:@"rfidParams"] != nil)
|
|
266
|
+
if ([options valueForKey:@"rfidParams"] != nil)
|
|
263
267
|
processParams.rfidParams = [RGLWJSONConstructor rfidParamsFromJson:[options valueForKey:@"rfidParams"]];
|
|
264
|
-
if([options valueForKey:@"faceApiParams"] != nil)
|
|
268
|
+
if ([options valueForKey:@"faceApiParams"] != nil)
|
|
265
269
|
processParams.faceApiParams = [RGLWJSONConstructor faceAPIParamsFromJson:[options valueForKey:@"faceApiParams"]];
|
|
266
|
-
if([options valueForKey:@"backendProcessingConfig"] != nil)
|
|
270
|
+
if ([options valueForKey:@"backendProcessingConfig"] != nil)
|
|
267
271
|
processParams.backendProcessingConfig = [RGLWJSONConstructor backendProcessingConfigFromJson:[options valueForKey:@"backendProcessingConfig"]];
|
|
268
|
-
if([options valueForKey:@"authenticityParams"] != nil) {
|
|
272
|
+
if ([options valueForKey:@"authenticityParams"] != nil) {
|
|
269
273
|
if(processParams.authenticityParams == nil) processParams.authenticityParams = [RGLAuthenticityParams defaultParams];
|
|
270
274
|
[self setAuthenticityParams:processParams.authenticityParams input:[options valueForKey:@"authenticityParams"]];
|
|
271
275
|
}
|
|
272
|
-
|
|
273
|
-
// Custom
|
|
274
|
-
if([options valueForKey:@"customParams"] != nil)
|
|
275
|
-
processParams.customParams = [options valueForKey:@"customParams"];
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
+(NSDictionary*)getProcessParams:(RGLProcessParams*)processParams {
|
|
@@ -318,6 +318,7 @@
|
|
|
318
318
|
result[@"generateAlpha2Codes"] = processParams.generateAlpha2Codes;
|
|
319
319
|
result[@"disableAuthResolutionFilter"] = processParams.disableAuthResolutionFilter;
|
|
320
320
|
result[@"strictSecurityChecks"] = processParams.strictSecurityChecks;
|
|
321
|
+
result[@"returnTransliteratedFields"] = processParams.returnTransliteratedFields;
|
|
321
322
|
|
|
322
323
|
// Int
|
|
323
324
|
result[@"measureSystem"] = [NSNumber numberWithInteger:processParams.measureSystem];
|
|
@@ -161,6 +161,7 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
161
161
|
|
|
162
162
|
if (input[@"databasePath"]) config.databasePath = [[NSBundle mainBundle] pathForResource:input[@"databasePath"] ofType:nil];
|
|
163
163
|
if (input[@"licenseUpdate"]) config.licenseUpdateCheck = [input[@"licenseUpdate"] boolValue];
|
|
164
|
+
if (input[@"licenseUpdateTimeout"]) config.licenseUpdateTimeout = input[@"licenseUpdateTimeout"];
|
|
164
165
|
if (input[@"delayedNNLoad"]) config.delayedNNLoadEnabled = [input[@"delayedNNLoad"] boolValue];
|
|
165
166
|
|
|
166
167
|
return config;
|
|
@@ -173,6 +174,7 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
173
174
|
result[@"license"] = [self base64Encode: input.licenseData];
|
|
174
175
|
result[@"databasePath"] = input.databasePath;
|
|
175
176
|
result[@"licenseUpdate"] = @(input.licenseUpdateCheck);
|
|
177
|
+
result[@"licenseUpdateTimeout"] = input.licenseUpdateTimeout;
|
|
176
178
|
result[@"delayedNNLoad"] = @(input.delayedNNLoadEnabled);
|
|
177
179
|
|
|
178
180
|
return result;
|
|
@@ -184,6 +186,7 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
184
186
|
|
|
185
187
|
if (input[@"databasePath"]) config.databasePath = [[NSBundle mainBundle] pathForResource:input[@"databasePath"] ofType:nil];
|
|
186
188
|
if (input[@"licenseUpdate"]) config.licenseUpdateCheck = [input[@"licenseUpdate"] boolValue];
|
|
189
|
+
if (input[@"licenseUpdateTimeout"]) config.licenseUpdateTimeout = input[@"licenseUpdateTimeout"];
|
|
187
190
|
if (input[@"delayedNNLoad"]) config.delayedNNLoadEnabled = [input[@"delayedNNLoad"] boolValue];
|
|
188
191
|
|
|
189
192
|
return config;
|
package/ios/RGLWMain.h
CHANGED
|
@@ -32,5 +32,5 @@ static NSString* _Nonnull rfidOnRetryReadChipEvent = @"rfidOnRetryReadChipEvent"
|
|
|
32
32
|
static NSString* _Nonnull paCertificateCompletionEvent = @"pa_certificate_completion";
|
|
33
33
|
static NSString* _Nonnull taCertificateCompletionEvent = @"ta_certificate_completion";
|
|
34
34
|
static NSString* _Nonnull taSignatureCompletionEvent = @"ta_signature_completion";
|
|
35
|
-
static NSString* _Nonnull
|
|
36
|
-
static NSString* _Nonnull
|
|
35
|
+
static NSString* _Nonnull drVideoEncoderCompletionEvent = @"video_encoder_completion";
|
|
36
|
+
static NSString* _Nonnull drOnCustomButtonTappedEvent = @"onCustomButtonTappedEvent";
|
package/ios/RGLWMain.m
CHANGED
|
@@ -561,12 +561,12 @@ RGLWCallback savedCallbackForBluetoothResult;
|
|
|
561
561
|
|
|
562
562
|
// RGLCustomizationActionDelegate
|
|
563
563
|
- (void)onCustomButtonTappedWithTag:(NSInteger)tag {
|
|
564
|
-
sendEvent(
|
|
564
|
+
sendEvent(drOnCustomButtonTappedEvent, @(tag));
|
|
565
565
|
}
|
|
566
566
|
|
|
567
567
|
// RGLRecordScanningProcessDelegate
|
|
568
568
|
- (void)didFinishRecordingToFile:(NSURL *)fileURL {
|
|
569
|
-
sendEvent(
|
|
569
|
+
sendEvent(drVideoEncoderCompletionEvent, fileURL.absoluteString);
|
|
570
570
|
}
|
|
571
571
|
|
|
572
572
|
- (void)didFailWithError:(NSError *)error {
|
|
@@ -15,8 +15,8 @@ RCT_EXPORT_MODULE();
|
|
|
15
15
|
paCertificateCompletionEvent,
|
|
16
16
|
taCertificateCompletionEvent,
|
|
17
17
|
taSignatureCompletionEvent,
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
drVideoEncoderCompletionEvent,
|
|
19
|
+
drOnCustomButtonTappedEvent];
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
static bool hasListeners;
|
package/package.json
CHANGED