@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
blank_issues_enabled: false
|
|
2
2
|
contact_links:
|
|
3
|
-
- name:
|
|
3
|
+
- name: Submit a request
|
|
4
4
|
url: https://support.regulaforensics.com/hc/requests/new?utm_source=github
|
|
5
|
-
about:
|
|
5
|
+
about: Submit any requests to Regula Support Team
|
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
// Created by Pavel Masiuk on 21.09.2023.
|
|
6
6
|
// Copyright © 2023 Regula. All rights reserved.
|
|
7
7
|
//
|
|
8
|
+
@file:SuppressLint("MissingPermission")
|
|
8
9
|
|
|
9
10
|
package com.regula.documentreader
|
|
10
11
|
|
|
12
|
+
import android.annotation.SuppressLint
|
|
11
13
|
import android.content.Context
|
|
12
14
|
import android.graphics.Bitmap
|
|
13
15
|
import android.graphics.Rect
|
|
@@ -218,6 +220,7 @@ fun docReaderConfigFromJSON(input: JSONObject): DocReaderConfig {
|
|
|
218
220
|
var result = DocReaderConfig(license!!)
|
|
219
221
|
|
|
220
222
|
if (input.has("customDb")) result = DocReaderConfig(license, byteArrayFromBase64(input.getString("customDb"))!!)
|
|
223
|
+
if (input.has("databasePath")) result = DocReaderConfig(license, input.getString("databasePath"))
|
|
221
224
|
if (input.has("licenseUpdate")) result.setLicenseUpdate(input.getBoolean("licenseUpdate"))
|
|
222
225
|
if (input.has("delayedNNLoad")) result.isDelayedNNLoad = input.getBoolean("delayedNNLoad")
|
|
223
226
|
if (input.has("blackList")) result.blackList = input.getJSONObject("blackList")
|
|
@@ -232,6 +235,7 @@ fun generateDocReaderConfig(temp: DocReaderConfig?): JSONObject? {
|
|
|
232
235
|
|
|
233
236
|
result.put("license", generateByteArray(input.license))
|
|
234
237
|
result.put("customDb", generateByteArray(input.customDb))
|
|
238
|
+
result.put("databasePath", input.customDbPath)
|
|
235
239
|
result.put("licenseUpdate", input.isLicenseUpdate)
|
|
236
240
|
result.put("delayedNNLoad", input.isDelayedNNLoad)
|
|
237
241
|
result.put("blackList", input.blackList)
|
package/example/App.tsx
CHANGED
|
@@ -214,7 +214,7 @@ export default class App extends React.Component<IProps, IState> {
|
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
handleResults(results: DocumentReaderResults) {
|
|
217
|
-
if (this.state.doRfid && !isReadingRfid && results.chipPage != 0) {
|
|
217
|
+
if (this.state.doRfid && !isReadingRfid && results != null && results.chipPage != 0) {
|
|
218
218
|
// this.customRFID()
|
|
219
219
|
this.usualRFID()
|
|
220
220
|
} else {
|