@regulaforensics/cordova-plugin-document-reader-api 8.3.224-nightly → 8.3.226-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/example/package.json +2 -2
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/src/android/Config.kt +4 -0
- package/src/android/JSONConstructor.kt +4 -4
- package/src/android/build.gradle +1 -1
- package/src/ios/RGLWConfig.m +2 -0
- package/src/ios/RGLWMain.m +2 -2
- package/www/DocumentReader.js +3 -0
package/example/package.json
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"author": "Regula Forensics Inc.",
|
|
14
14
|
"license": "commercial",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@regulaforensics/cordova-plugin-document-reader-api": "8.3.
|
|
17
|
-
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "8.3.
|
|
16
|
+
"@regulaforensics/cordova-plugin-document-reader-api": "8.3.226-nightly",
|
|
17
|
+
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "8.3.711-nightly",
|
|
18
18
|
"cordova-android": "13.0.0",
|
|
19
19
|
"cordova-ios": "7.1.1",
|
|
20
20
|
"cordova-plugin-add-swift-support": "2.0.2",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/cordova-plugin-document-reader-api",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.226-nightly",
|
|
4
4
|
"description": "Cordova plugin for reading and validation of identification documents (API framework)",
|
|
5
5
|
"cordova": {
|
|
6
6
|
"id": "@regulaforensics/cordova-plugin-document-reader-api",
|
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id="@regulaforensics/cordova-plugin-document-reader-api" version="8.3.
|
|
2
|
+
<plugin id="@regulaforensics/cordova-plugin-document-reader-api" version="8.3.226-nightly" xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
3
3
|
<name>DocumentReaderApi</name>
|
|
4
4
|
<description>Cordova plugin Document reader api</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="DocumentReaderNightly" spec="8.3.
|
|
32
|
+
<pod name="DocumentReaderNightly" spec="8.3.5056" />
|
|
33
33
|
</pods>
|
|
34
34
|
</podspec>
|
|
35
35
|
</platform>
|
package/src/android/Config.kt
CHANGED
|
@@ -58,6 +58,7 @@ fun setFunctionality(config: Functionality, input: JSONObject) = input.forEach {
|
|
|
58
58
|
"btDeviceName" -> editor.setBtDeviceName(v as String)
|
|
59
59
|
"zoomFactor" -> editor.setZoomFactor(v.toFloat())
|
|
60
60
|
"exposure" -> editor.setExposure(v.toFloat())
|
|
61
|
+
"videoRecordingSizeDownscaleFactor" -> editor.setVideoRecordingSizeDownscaleFactor(v.toFloat())
|
|
61
62
|
"excludedCamera2Models" -> editor.setExcludedCamera2Models((v as JSONArray).toList())
|
|
62
63
|
"cameraSize" -> editor.setCameraSize(cameraSizeFromJSON(v as JSONObject).first, cameraSizeFromJSON(v).second)
|
|
63
64
|
}
|
|
@@ -92,6 +93,7 @@ fun getFunctionality(input: Functionality) = mapOf(
|
|
|
92
93
|
"btDeviceName" to input.btDeviceName,
|
|
93
94
|
"zoomFactor" to input.zoomFactor,
|
|
94
95
|
"exposure" to input.exposure,
|
|
96
|
+
"videoRecordingSizeDownscaleFactor" to input.videoRecordingSizeDownscaleFactor,
|
|
95
97
|
"excludedCamera2Models" to input.excludedCamera2Models.toJson(),
|
|
96
98
|
"cameraSize" to generateCameraSize(input.cameraWidth, input.cameraHeight)
|
|
97
99
|
).toJson()
|
|
@@ -138,6 +140,7 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
|
|
|
138
140
|
"strictDLCategoryExpiry" -> processParams.strictDLCategoryExpiry = v as Boolean
|
|
139
141
|
"generateAlpha2Codes" -> processParams.generateAlpha2Codes = v as Boolean
|
|
140
142
|
"disableAuthResolutionFilter" -> processParams.disableAuthResolutionFilter = v as Boolean
|
|
143
|
+
"strictSecurityChecks" -> processParams.strictSecurityChecks = v as Boolean
|
|
141
144
|
"measureSystem" -> processParams.measureSystem = v.toInt()
|
|
142
145
|
"barcodeParserType" -> processParams.barcodeParserType = v.toInt()
|
|
143
146
|
"perspectiveAngle" -> processParams.perspectiveAngle = v.toInt()
|
|
@@ -223,6 +226,7 @@ fun getProcessParams(processParams: ProcessParam) = mapOf(
|
|
|
223
226
|
"strictDLCategoryExpiry" to processParams.strictDLCategoryExpiry,
|
|
224
227
|
"generateAlpha2Codes" to processParams.generateAlpha2Codes,
|
|
225
228
|
"disableAuthResolutionFilter" to processParams.disableAuthResolutionFilter,
|
|
229
|
+
"strictSecurityChecks" to processParams.strictSecurityChecks,
|
|
226
230
|
"measureSystem" to processParams.measureSystem,
|
|
227
231
|
"barcodeParserType" to processParams.barcodeParserType,
|
|
228
232
|
"perspectiveAngle" to processParams.perspectiveAngle,
|
|
@@ -152,7 +152,7 @@ fun transactionInfoFromJSON(input: JSONObject?) = input?.let {
|
|
|
152
152
|
val result = TransactionInfo()
|
|
153
153
|
result.transactionId = it.getStringOrNull("transactionId")
|
|
154
154
|
result.tag = it.getStringOrNull("tag")
|
|
155
|
-
result.sessionLogFolder = it.
|
|
155
|
+
result.sessionLogFolder = it.getString("sessionLogFolder")
|
|
156
156
|
result
|
|
157
157
|
}
|
|
158
158
|
|
|
@@ -318,7 +318,7 @@ fun onlineProcessingConfigFromJSON(input: JSONObject?) = input?.let {
|
|
|
318
318
|
if (it.has("imageCompressionQuality")) builder.setImageCompressionQuality(it.getDouble("imageCompressionQuality").toFloat())
|
|
319
319
|
if (it.has("processParams")) builder.setProcessParams(processParamFromJSON(it.getJSONObject("processParams")))
|
|
320
320
|
if (it.has("requestHeaders")) {
|
|
321
|
-
val listener = NetworkInterceptorListener { input.getJSONObject("requestHeaders").forEach { k, v ->
|
|
321
|
+
val listener = NetworkInterceptorListener { self -> input.getJSONObject("requestHeaders").forEach { k, v -> self.setRequestProperty(k, v as String) } }
|
|
322
322
|
weakReferencesHolder.add(listener)
|
|
323
323
|
builder.setNetworkInterceptorListener(listener)
|
|
324
324
|
}
|
|
@@ -370,9 +370,9 @@ fun faceApiSearchParamsFromJSON(input: JSONObject?) = input?.let {
|
|
|
370
370
|
if (it.has("threshold") && !it.isNull("threshold")) result.threshold = it.getDouble("threshold").toFloat()
|
|
371
371
|
if (it.has("groupIds") && !it.isNull("groupIds")) {
|
|
372
372
|
val jsonArrayGroupIds = it.getJSONArray("groupIds")
|
|
373
|
-
val groupIds =
|
|
373
|
+
val groupIds = arrayOfNulls<String>(jsonArrayGroupIds.length())
|
|
374
374
|
for (i in 0 until jsonArrayGroupIds.length())
|
|
375
|
-
groupIds[i] = jsonArrayGroupIds.
|
|
375
|
+
groupIds[i] = jsonArrayGroupIds.getString(i)
|
|
376
376
|
result.groupIds = groupIds
|
|
377
377
|
}
|
|
378
378
|
|
package/src/android/build.gradle
CHANGED
package/src/ios/RGLWConfig.m
CHANGED
|
@@ -185,6 +185,7 @@
|
|
|
185
185
|
if (options[@"strictDLCategoryExpiry"]) processParams.strictDLCategoryExpiry = options[@"strictDLCategoryExpiry"];
|
|
186
186
|
if (options[@"generateAlpha2Codes"]) processParams.generateAlpha2Codes = options[@"generateAlpha2Codes"];
|
|
187
187
|
if (options[@"disableAuthResolutionFilter"]) processParams.disableAuthResolutionFilter = options[@"disableAuthResolutionFilter"];
|
|
188
|
+
if (options[@"strictSecurityChecks"]) processParams.strictSecurityChecks = options[@"strictSecurityChecks"];
|
|
188
189
|
|
|
189
190
|
// Int
|
|
190
191
|
if([options valueForKey:@"measureSystem"] != nil)
|
|
@@ -316,6 +317,7 @@
|
|
|
316
317
|
result[@"strictDLCategoryExpiry"] = processParams.strictDLCategoryExpiry;
|
|
317
318
|
result[@"generateAlpha2Codes"] = processParams.generateAlpha2Codes;
|
|
318
319
|
result[@"disableAuthResolutionFilter"] = processParams.disableAuthResolutionFilter;
|
|
320
|
+
result[@"strictSecurityChecks"] = processParams.strictSecurityChecks;
|
|
319
321
|
|
|
320
322
|
// Int
|
|
321
323
|
result[@"measureSystem"] = [NSNumber numberWithInteger:processParams.measureSystem];
|
package/src/ios/RGLWMain.m
CHANGED
|
@@ -339,12 +339,12 @@ RGLWCallback savedCallbackForBluetoothResult;
|
|
|
339
339
|
|
|
340
340
|
// set searching timeout
|
|
341
341
|
if (state == RGLBluetoothConnectionStateSearching)
|
|
342
|
-
[self performSelector:NSSelectorFromString(@"bluetoothDeviceConnectionFailed") withObject:nil afterDelay:7.0];
|
|
342
|
+
[[self class] performSelector:NSSelectorFromString(@"bluetoothDeviceConnectionFailed") withObject:nil afterDelay:7.0];
|
|
343
343
|
|
|
344
344
|
if (state == RGLBluetoothConnectionStateConnected) {
|
|
345
345
|
savedCallbackForBluetoothResult(@YES);
|
|
346
346
|
savedCallbackForBluetoothResult = nil;
|
|
347
|
-
[NSObject cancelPreviousPerformRequestsWithTarget:self selector:NSSelectorFromString(@"bluetoothDeviceConnectionFailed") object:nil];
|
|
347
|
+
[NSObject cancelPreviousPerformRequestsWithTarget:[self class] selector:NSSelectorFromString(@"bluetoothDeviceConnectionFailed") object:nil];
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
|
package/www/DocumentReader.js
CHANGED
|
@@ -1194,6 +1194,7 @@ class Functionality {
|
|
|
1194
1194
|
result.btDeviceName = jsonObject["btDeviceName"]
|
|
1195
1195
|
result.zoomFactor = jsonObject["zoomFactor"]
|
|
1196
1196
|
result.exposure = jsonObject["exposure"]
|
|
1197
|
+
result.videoRecordingSizeDownscaleFactor = jsonObject["videoRecordingSizeDownscaleFactor"]
|
|
1197
1198
|
result.excludedCamera2Models = []
|
|
1198
1199
|
if (jsonObject["excludedCamera2Models"] != null)
|
|
1199
1200
|
for (const i in jsonObject["excludedCamera2Models"])
|
|
@@ -1389,6 +1390,7 @@ class ProcessParams {
|
|
|
1389
1390
|
result.strictDLCategoryExpiry = jsonObject["strictDLCategoryExpiry"]
|
|
1390
1391
|
result.generateAlpha2Codes = jsonObject["generateAlpha2Codes"]
|
|
1391
1392
|
result.disableAuthResolutionFilter = jsonObject["disableAuthResolutionFilter"]
|
|
1393
|
+
result.strictSecurityChecks = jsonObject["strictSecurityChecks"]
|
|
1392
1394
|
result.barcodeParserType = jsonObject["barcodeParserType"]
|
|
1393
1395
|
result.perspectiveAngle = jsonObject["perspectiveAngle"]
|
|
1394
1396
|
result.minDPI = jsonObject["minDPI"]
|
|
@@ -2533,6 +2535,7 @@ const eCheckDiagnose = {
|
|
|
2533
2535
|
TEXT_COLOR_SHOULD_BE_GREEN: 131,
|
|
2534
2536
|
TEXT_COLOR_SHOULD_BE_RED: 132,
|
|
2535
2537
|
TEXT_SHOULD_BE_BLACK: 133,
|
|
2538
|
+
SECURITY_TEXT_IS_ABSENT: 134,
|
|
2536
2539
|
BARCODE_WAS_READ_WITH_ERRORS: 140,
|
|
2537
2540
|
BARCODE_DATA_FORMAT_ERROR: 141,
|
|
2538
2541
|
BARCODE_SIZE_PARAMS_ERROR: 142,
|