@regulaforensics/react-native-document-reader-api 7.3.637-beta → 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/android/src/main/java/com/regula/documentreader/JSONConstructor.kt +4 -0
- package/example/App.tsx +1 -1
- package/example/package-lock.json +1714 -2943
- package/example/package.json +2 -2
- package/index.d.ts +4 -0
- package/index.js +2 -0
- package/ios/RGLWJSONConstructor.m +6 -9
- 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
|
@@ -2127,6 +2127,7 @@ export class ProcessParams {
|
|
|
2127
2127
|
timeoutFromFirstDetect?: number
|
|
2128
2128
|
timeoutFromFirstDocType?: number
|
|
2129
2129
|
documentAreaMin?: number
|
|
2130
|
+
timeoutLiveness?: number
|
|
2130
2131
|
documentIDList?: number[]
|
|
2131
2132
|
barcodeTypes?: number[]
|
|
2132
2133
|
fieldTypesFilter?: number[]
|
|
@@ -2199,6 +2200,7 @@ export class ProcessParams {
|
|
|
2199
2200
|
result.timeoutFromFirstDetect = jsonObject["timeoutFromFirstDetect"]
|
|
2200
2201
|
result.timeoutFromFirstDocType = jsonObject["timeoutFromFirstDocType"]
|
|
2201
2202
|
result.documentAreaMin = jsonObject["documentAreaMin"]
|
|
2203
|
+
result.timeoutLiveness = jsonObject["timeoutLiveness"]
|
|
2202
2204
|
result.documentIDList = []
|
|
2203
2205
|
if (jsonObject["documentIDList"] != null) {
|
|
2204
2206
|
for (const i in jsonObject["documentIDList"]) {
|
|
@@ -2283,6 +2285,7 @@ export class CustomizationColors {
|
|
|
2283
2285
|
rfidProcessingScreenProgressBar?: number
|
|
2284
2286
|
rfidProcessingScreenProgressBarBackground?: number
|
|
2285
2287
|
rfidProcessingScreenResultLabelText?: number
|
|
2288
|
+
rfidProcessingScreenLoadingBar?: number
|
|
2286
2289
|
|
|
2287
2290
|
static fromJson(jsonObject?: any): CustomizationColors | undefined {
|
|
2288
2291
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
@@ -2295,6 +2298,7 @@ export class CustomizationColors {
|
|
|
2295
2298
|
result.rfidProcessingScreenProgressBar = jsonObject["rfidProcessingScreenProgressBar"]
|
|
2296
2299
|
result.rfidProcessingScreenProgressBarBackground = jsonObject["rfidProcessingScreenProgressBarBackground"]
|
|
2297
2300
|
result.rfidProcessingScreenResultLabelText = jsonObject["rfidProcessingScreenResultLabelText"]
|
|
2301
|
+
result.rfidProcessingScreenLoadingBar = jsonObject["rfidProcessingScreenLoadingBar"]
|
|
2298
2302
|
|
|
2299
2303
|
return result
|
|
2300
2304
|
}
|
package/index.js
CHANGED
|
@@ -1468,6 +1468,7 @@ export class ProcessParams {
|
|
|
1468
1468
|
result.timeoutFromFirstDetect = jsonObject["timeoutFromFirstDetect"]
|
|
1469
1469
|
result.timeoutFromFirstDocType = jsonObject["timeoutFromFirstDocType"]
|
|
1470
1470
|
result.documentAreaMin = jsonObject["documentAreaMin"]
|
|
1471
|
+
result.timeoutLiveness = jsonObject["timeoutLiveness"]
|
|
1471
1472
|
result.documentIDList = []
|
|
1472
1473
|
if (jsonObject["documentIDList"] != null)
|
|
1473
1474
|
for (const i in jsonObject["documentIDList"])
|
|
@@ -1536,6 +1537,7 @@ export class CustomizationColors {
|
|
|
1536
1537
|
result.rfidProcessingScreenProgressBar = jsonObject["rfidProcessingScreenProgressBar"]
|
|
1537
1538
|
result.rfidProcessingScreenProgressBarBackground = jsonObject["rfidProcessingScreenProgressBarBackground"]
|
|
1538
1539
|
result.rfidProcessingScreenResultLabelText = jsonObject["rfidProcessingScreenResultLabelText"]
|
|
1540
|
+
result.rfidProcessingScreenLoadingBar = jsonObject["rfidProcessingScreenLoadingBar"]
|
|
1539
1541
|
|
|
1540
1542
|
return result
|
|
1541
1543
|
}
|
|
@@ -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
|
}
|
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.-->
|