@regulaforensics/document-reader 7.2.398-rc → 7.2.402-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/RNDocumentReader.podspec +2 -2
- package/android/build.gradle +2 -2
- package/android/cordova.gradle +2 -2
- package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +2 -0
- package/examples/capacitor/package.json +1 -1
- package/examples/ionic/package.json +1 -1
- package/examples/react_native/package.json +1 -1
- package/ios/RGLWConfig.m +2 -0
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/json.tsx +1 -0
- package/test/package-lock.json +1 -1
- package/www/capacitor/params/process_params/ProcessParams.js +8 -0
- package/www/cordova.js +8 -0
- package/www/react-native/params/process_params/ProcessParams.js +8 -0
- package/www/types/params/process_params/ProcessParams.d.ts +5 -0
package/RNDocumentReader.podspec
CHANGED
|
@@ -5,7 +5,7 @@ source = File.join(__dir__, 'ios')
|
|
|
5
5
|
|
|
6
6
|
Pod::Spec.new do |s|
|
|
7
7
|
s.name = 'RNDocumentReader'
|
|
8
|
-
s.version = '7.2.
|
|
8
|
+
s.version = '7.2.402-nightly'
|
|
9
9
|
s.summary = package['description']
|
|
10
10
|
s.license = package['license']
|
|
11
11
|
|
|
@@ -16,6 +16,6 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
s.ios.deployment_target = '13.0'
|
|
17
17
|
s.source_files = 'ios/**/*.{h,m}'
|
|
18
18
|
s.exclude_files = [ 'ios/CVDDocumentReader.h', 'ios/CVDDocumentReader.m' ]
|
|
19
|
-
s.dependency '
|
|
19
|
+
s.dependency 'DocumentReaderNightly', '8.4.5316'
|
|
20
20
|
s.dependency 'React'
|
|
21
21
|
end
|
package/android/build.gradle
CHANGED
|
@@ -20,7 +20,7 @@ android {
|
|
|
20
20
|
rootProject.allprojects {
|
|
21
21
|
repositories {
|
|
22
22
|
maven {
|
|
23
|
-
url "https://maven.regulaforensics.com/RegulaDocumentReader/
|
|
23
|
+
url "https://maven.regulaforensics.com/RegulaDocumentReader/Nightly"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -29,7 +29,7 @@ dependencies {
|
|
|
29
29
|
//noinspection GradleDynamicVersion
|
|
30
30
|
implementation 'com.facebook.react:react-native:+'
|
|
31
31
|
//noinspection GradleDependency
|
|
32
|
-
implementation('com.regula.documentreader:api:8.4.
|
|
32
|
+
implementation('com.regula.documentreader:api:8.4.11991'){
|
|
33
33
|
transitive = true
|
|
34
34
|
}
|
|
35
35
|
}
|
package/android/cordova.gradle
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
repositories {
|
|
2
2
|
maven {
|
|
3
|
-
url "https://maven.regulaforensics.com/RegulaDocumentReader/
|
|
3
|
+
url "https://maven.regulaforensics.com/RegulaDocumentReader/Nightly"
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
dependencies {
|
|
8
8
|
//noinspection GradleDependency
|
|
9
|
-
implementation('com.regula.documentreader:api:8.4.
|
|
9
|
+
implementation('com.regula.documentreader:api:8.4.11991'){
|
|
10
10
|
transitive = true
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -143,6 +143,7 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
|
|
|
143
143
|
"generateAlpha2Codes" -> processParams.generateAlpha2Codes = v as Boolean
|
|
144
144
|
"disableAuthResolutionFilter" -> processParams.disableAuthResolutionFilter = v as Boolean
|
|
145
145
|
"strictSecurityChecks" -> processParams.strictSecurityChecks = v as Boolean
|
|
146
|
+
"returnTransliteratedFields" -> processParams.returnTransliteratedFields = v as Boolean
|
|
146
147
|
"measureSystem" -> processParams.measureSystem = v.toInt()
|
|
147
148
|
"barcodeParserType" -> processParams.barcodeParserType = v.toInt()
|
|
148
149
|
"perspectiveAngle" -> processParams.perspectiveAngle = v.toInt()
|
|
@@ -239,6 +240,7 @@ fun getProcessParams(processParams: ProcessParam) = mapOf(
|
|
|
239
240
|
"generateAlpha2Codes" to processParams.generateAlpha2Codes,
|
|
240
241
|
"disableAuthResolutionFilter" to processParams.disableAuthResolutionFilter,
|
|
241
242
|
"strictSecurityChecks" to processParams.strictSecurityChecks,
|
|
243
|
+
"returnTransliteratedFields" to processParams.returnTransliteratedFields,
|
|
242
244
|
"measureSystem" to processParams.measureSystem,
|
|
243
245
|
"barcodeParserType" to processParams.barcodeParserType,
|
|
244
246
|
"perspectiveAngle" to processParams.perspectiveAngle,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/document-reader": "7.2.
|
|
9
|
+
"@regulaforensics/document-reader": "7.2.402-nightly",
|
|
10
10
|
"@regulaforensics/document-reader-core-fullauthrfid": "8.2.8-beta",
|
|
11
11
|
"@regulaforensics/document-reader-btdevice": "8.2.8-beta",
|
|
12
12
|
"@awesome-cordova-plugins/file": "6.6.0",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@awesome-cordova-plugins/file": "^8.1.0",
|
|
19
19
|
"@ionic/angular": "^8.7.3",
|
|
20
20
|
"@ionic/cordova-builders": "^12.3.0",
|
|
21
|
-
"@regulaforensics/document-reader": "7.2.
|
|
21
|
+
"@regulaforensics/document-reader": "7.2.402-nightly",
|
|
22
22
|
"@regulaforensics/document-reader-core-fullauthrfid": "8.2.8-beta",
|
|
23
23
|
"@regulaforensics/document-reader-btdevice": "8.2.8-beta",
|
|
24
24
|
"cordova-android": "^14.0.1",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"start": "expo start"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@regulaforensics/document-reader": "7.2.
|
|
11
|
+
"@regulaforensics/document-reader": "7.2.402-nightly",
|
|
12
12
|
"@regulaforensics/document-reader-core-fullauthrfid": "8.2.8-beta",
|
|
13
13
|
"@regulaforensics/document-reader-btdevice": "8.2.8-beta",
|
|
14
14
|
"react-native": "^0.81.4",
|
package/ios/RGLWConfig.m
CHANGED
|
@@ -188,6 +188,7 @@
|
|
|
188
188
|
if (options[@"generateAlpha2Codes"]) processParams.generateAlpha2Codes = options[@"generateAlpha2Codes"];
|
|
189
189
|
if (options[@"disableAuthResolutionFilter"]) processParams.disableAuthResolutionFilter = options[@"disableAuthResolutionFilter"];
|
|
190
190
|
if (options[@"strictSecurityChecks"]) processParams.strictSecurityChecks = options[@"strictSecurityChecks"];
|
|
191
|
+
if (options[@"returnTransliteratedFields"]) processParams.returnTransliteratedFields = options[@"returnTransliteratedFields"];
|
|
191
192
|
|
|
192
193
|
// Int
|
|
193
194
|
if([options valueForKey:@"measureSystem"] != nil)
|
|
@@ -327,6 +328,7 @@
|
|
|
327
328
|
result[@"generateAlpha2Codes"] = processParams.generateAlpha2Codes;
|
|
328
329
|
result[@"disableAuthResolutionFilter"] = processParams.disableAuthResolutionFilter;
|
|
329
330
|
result[@"strictSecurityChecks"] = processParams.strictSecurityChecks;
|
|
331
|
+
result[@"returnTransliteratedFields"] = processParams.returnTransliteratedFields;
|
|
330
332
|
|
|
331
333
|
// Int
|
|
332
334
|
result[@"measureSystem"] = [NSNumber numberWithInteger:processParams.measureSystem];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/document-reader",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.402-nightly",
|
|
4
4
|
"description": "This is an npm module for Regula Document Reader SDK. It allows you to read various kinds of identification documents using your phone's camera.",
|
|
5
5
|
"main": "www/react-native/index.js",
|
|
6
6
|
"module": "www/capacitor/index.js",
|
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id="@regulaforensics/document-reader" version="7.2.
|
|
2
|
+
<plugin id="@regulaforensics/document-reader" version="7.2.402-nightly" xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
3
3
|
<name>DocumentReader</name>
|
|
4
4
|
<description>Cordova plugin for Regula Document Reader SDK</description>
|
|
5
5
|
<license>commercial</license>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<source url="https://github.com/CocoaPods/Specs.git" />
|
|
30
30
|
</config>
|
|
31
31
|
<pods>
|
|
32
|
-
<pod name="
|
|
32
|
+
<pod name="DocumentReaderNightly" spec="8.4.5316" />
|
|
33
33
|
</pods>
|
|
34
34
|
</podspec>
|
|
35
35
|
</platform>
|
package/test/json.tsx
CHANGED
|
@@ -134,6 +134,7 @@ export var processParams = {
|
|
|
134
134
|
"generateAlpha2Codes": false,
|
|
135
135
|
"disableAuthResolutionFilter": true,
|
|
136
136
|
"strictSecurityChecks": false,
|
|
137
|
+
"returnTransliteratedFields": true,
|
|
137
138
|
"measureSystem": 1,
|
|
138
139
|
"barcodeParserType": 3,
|
|
139
140
|
"perspectiveAngle": 4,
|
package/test/package-lock.json
CHANGED
|
@@ -242,6 +242,12 @@ export class ProcessParams {
|
|
|
242
242
|
this._set({ "strictSecurityChecks": val });
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
+
get returnTransliteratedFields() { return this._returnTransliteratedFields; }
|
|
246
|
+
set returnTransliteratedFields(val) {
|
|
247
|
+
this._returnTransliteratedFields = val;
|
|
248
|
+
this._set({ "returnTransliteratedFields": val });
|
|
249
|
+
}
|
|
250
|
+
|
|
245
251
|
get barcodeParserType() { return this._barcodeParserType; }
|
|
246
252
|
set barcodeParserType(val) {
|
|
247
253
|
this._barcodeParserType = val;
|
|
@@ -529,6 +535,7 @@ export class ProcessParams {
|
|
|
529
535
|
result._generateAlpha2Codes = jsonObject["generateAlpha2Codes"];
|
|
530
536
|
result._disableAuthResolutionFilter = jsonObject["disableAuthResolutionFilter"];
|
|
531
537
|
result._strictSecurityChecks = jsonObject["strictSecurityChecks"];
|
|
538
|
+
result._returnTransliteratedFields = jsonObject["returnTransliteratedFields"];
|
|
532
539
|
result._barcodeParserType = jsonObject["barcodeParserType"];
|
|
533
540
|
result._perspectiveAngle = jsonObject["perspectiveAngle"];
|
|
534
541
|
result._minDPI = jsonObject["minDPI"];
|
|
@@ -613,6 +620,7 @@ export class ProcessParams {
|
|
|
613
620
|
"generateAlpha2Codes": this.generateAlpha2Codes,
|
|
614
621
|
"disableAuthResolutionFilter": this.disableAuthResolutionFilter,
|
|
615
622
|
"strictSecurityChecks": this.strictSecurityChecks,
|
|
623
|
+
"returnTransliteratedFields": this.returnTransliteratedFields,
|
|
616
624
|
"measureSystem": this.measureSystem,
|
|
617
625
|
"barcodeParserType": this.barcodeParserType,
|
|
618
626
|
"perspectiveAngle": this.perspectiveAngle,
|
package/www/cordova.js
CHANGED
|
@@ -4119,6 +4119,12 @@ class ProcessParams {
|
|
|
4119
4119
|
this._set({ "strictSecurityChecks": val });
|
|
4120
4120
|
}
|
|
4121
4121
|
|
|
4122
|
+
get returnTransliteratedFields() { return this._returnTransliteratedFields; }
|
|
4123
|
+
set returnTransliteratedFields(val) {
|
|
4124
|
+
this._returnTransliteratedFields = val;
|
|
4125
|
+
this._set({ "returnTransliteratedFields": val });
|
|
4126
|
+
}
|
|
4127
|
+
|
|
4122
4128
|
get barcodeParserType() { return this._barcodeParserType; }
|
|
4123
4129
|
set barcodeParserType(val) {
|
|
4124
4130
|
this._barcodeParserType = val;
|
|
@@ -4406,6 +4412,7 @@ class ProcessParams {
|
|
|
4406
4412
|
result._generateAlpha2Codes = jsonObject["generateAlpha2Codes"];
|
|
4407
4413
|
result._disableAuthResolutionFilter = jsonObject["disableAuthResolutionFilter"];
|
|
4408
4414
|
result._strictSecurityChecks = jsonObject["strictSecurityChecks"];
|
|
4415
|
+
result._returnTransliteratedFields = jsonObject["returnTransliteratedFields"];
|
|
4409
4416
|
result._barcodeParserType = jsonObject["barcodeParserType"];
|
|
4410
4417
|
result._perspectiveAngle = jsonObject["perspectiveAngle"];
|
|
4411
4418
|
result._minDPI = jsonObject["minDPI"];
|
|
@@ -4490,6 +4497,7 @@ class ProcessParams {
|
|
|
4490
4497
|
"generateAlpha2Codes": this.generateAlpha2Codes,
|
|
4491
4498
|
"disableAuthResolutionFilter": this.disableAuthResolutionFilter,
|
|
4492
4499
|
"strictSecurityChecks": this.strictSecurityChecks,
|
|
4500
|
+
"returnTransliteratedFields": this.returnTransliteratedFields,
|
|
4493
4501
|
"measureSystem": this.measureSystem,
|
|
4494
4502
|
"barcodeParserType": this.barcodeParserType,
|
|
4495
4503
|
"perspectiveAngle": this.perspectiveAngle,
|
|
@@ -242,6 +242,12 @@ export class ProcessParams {
|
|
|
242
242
|
this._set({ "strictSecurityChecks": val });
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
+
get returnTransliteratedFields() { return this._returnTransliteratedFields; }
|
|
246
|
+
set returnTransliteratedFields(val) {
|
|
247
|
+
this._returnTransliteratedFields = val;
|
|
248
|
+
this._set({ "returnTransliteratedFields": val });
|
|
249
|
+
}
|
|
250
|
+
|
|
245
251
|
get barcodeParserType() { return this._barcodeParserType; }
|
|
246
252
|
set barcodeParserType(val) {
|
|
247
253
|
this._barcodeParserType = val;
|
|
@@ -529,6 +535,7 @@ export class ProcessParams {
|
|
|
529
535
|
result._generateAlpha2Codes = jsonObject["generateAlpha2Codes"];
|
|
530
536
|
result._disableAuthResolutionFilter = jsonObject["disableAuthResolutionFilter"];
|
|
531
537
|
result._strictSecurityChecks = jsonObject["strictSecurityChecks"];
|
|
538
|
+
result._returnTransliteratedFields = jsonObject["returnTransliteratedFields"];
|
|
532
539
|
result._barcodeParserType = jsonObject["barcodeParserType"];
|
|
533
540
|
result._perspectiveAngle = jsonObject["perspectiveAngle"];
|
|
534
541
|
result._minDPI = jsonObject["minDPI"];
|
|
@@ -613,6 +620,7 @@ export class ProcessParams {
|
|
|
613
620
|
"generateAlpha2Codes": this.generateAlpha2Codes,
|
|
614
621
|
"disableAuthResolutionFilter": this.disableAuthResolutionFilter,
|
|
615
622
|
"strictSecurityChecks": this.strictSecurityChecks,
|
|
623
|
+
"returnTransliteratedFields": this.returnTransliteratedFields,
|
|
616
624
|
"measureSystem": this.measureSystem,
|
|
617
625
|
"barcodeParserType": this.barcodeParserType,
|
|
618
626
|
"perspectiveAngle": this.perspectiveAngle,
|
|
@@ -202,6 +202,11 @@ export declare class ProcessParams {
|
|
|
202
202
|
* When enabled, this parameter marks security checks that don’t meet minimum requirements as 'Failed' (instead of 'WasNotDone'), which causes the overall security status to be 'Failed'.
|
|
203
203
|
*/
|
|
204
204
|
strictSecurityChecks?: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* Allows transliteration to be turned on or off.
|
|
207
|
+
* Default: `true`.
|
|
208
|
+
*/
|
|
209
|
+
returnTransliteratedFields?: boolean;
|
|
205
210
|
/**
|
|
206
211
|
* There are documents that contain barcodes which data can be parsed only
|
|
207
212
|
* if document type verification is performed. The following property allows
|