@regulaforensics/react-native-document-reader-api 9.5.574-rc → 9.5.576-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/RNDocumentReaderApi.podspec +1 -1
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +6 -2
- package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +8 -8
- package/example/package.json +2 -2
- package/index.d.ts +13 -2
- package/index.js +7 -1
- package/ios/RGLWConfig.m +4 -3
- package/ios/RGLWJSONConstructor.m +19 -7
- package/package.json +1 -1
|
@@ -14,6 +14,6 @@ Pod::Spec.new do |s|
|
|
|
14
14
|
s.source = { :http => 'file:' + __dir__ }
|
|
15
15
|
s.ios.deployment_target = '13.0'
|
|
16
16
|
s.source_files = "ios/*.{h,m}"
|
|
17
|
-
s.dependency '
|
|
17
|
+
s.dependency 'DocumentReaderNightly', '9.5.6353'
|
|
18
18
|
s.dependency 'React'
|
|
19
19
|
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:9.
|
|
32
|
+
implementation('com.regula.documentreader:api:9.5.12855') {
|
|
33
33
|
transitive = true
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -51,6 +51,7 @@ fun setFunctionality(config: Functionality, input: JSONObject) = input.forEach {
|
|
|
51
51
|
"manualMultipageMode" -> editor.setManualMultipageMode(v as Boolean)
|
|
52
52
|
"torchTurnedOn" -> editor.setTorchTurnedOn(v as Boolean)
|
|
53
53
|
"preventScreenRecording" -> editor.setPreventScreenRecording(v as Boolean)
|
|
54
|
+
"hideStatusBar" -> editor.setHideStatusBar(v as Boolean)
|
|
54
55
|
"showCaptureButtonDelayFromDetect" -> editor.setShowCaptureButtonDelayFromDetect(v.toLong())
|
|
55
56
|
"showCaptureButtonDelayFromStart" -> editor.setShowCaptureButtonDelayFromStart(v.toLong())
|
|
56
57
|
"orientation" -> editor.setOrientation(v.toInt())
|
|
@@ -88,6 +89,7 @@ fun getFunctionality(input: Functionality) = mapOf(
|
|
|
88
89
|
"manualMultipageMode" to input.isManualMultipageMode,
|
|
89
90
|
"torchTurnedOn" to input.isTorchTurnedOn,
|
|
90
91
|
"preventScreenRecording" to input.doPreventScreenRecording(),
|
|
92
|
+
"hideStatusBar" to input.doHideStatusBar(),
|
|
91
93
|
"showCaptureButtonDelayFromDetect" to input.showCaptureButtonDelayFromDetect,
|
|
92
94
|
"showCaptureButtonDelayFromStart" to input.showCaptureButtonDelayFromStart,
|
|
93
95
|
"orientation" to input.orientation,
|
|
@@ -129,7 +131,6 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
|
|
|
129
131
|
"updateOCRValidityByGlare" -> processParams.updateOCRValidityByGlare = v as Boolean
|
|
130
132
|
"noGraphics" -> processParams.noGraphics = v as Boolean
|
|
131
133
|
"multiDocOnImage" -> processParams.multiDocOnImage = v as Boolean
|
|
132
|
-
"forceReadMrzBeforeLocate" -> processParams.forceReadMrzBeforeLocate = v as Boolean
|
|
133
134
|
"parseBarcodes" -> processParams.parseBarcodes = v as Boolean
|
|
134
135
|
"shouldReturnPackageForReprocess" -> processParams.shouldReturnPackageForReprocess = v as Boolean
|
|
135
136
|
"disablePerforationOCR" -> processParams.disablePerforationOCR = v as Boolean
|
|
@@ -153,6 +154,7 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
|
|
|
153
154
|
"strictExpiryDate" -> processParams.strictExpiryDate = v as Boolean
|
|
154
155
|
"debugSaveBinarySession" -> processParams.debugSaveBinarySession = v as Boolean
|
|
155
156
|
"checkVDS" -> processParams.checkVDS = v as Boolean
|
|
157
|
+
"strictAgeCheck" -> processParams.strictAgeCheck = v as Boolean
|
|
156
158
|
"measureSystem" -> processParams.measureSystem = v.toInt()
|
|
157
159
|
"barcodeParserType" -> processParams.barcodeParserType = v.toInt()
|
|
158
160
|
"perspectiveAngle" -> processParams.perspectiveAngle = v.toInt()
|
|
@@ -222,7 +224,6 @@ fun getProcessParams(processParams: ProcessParam) = mapOf(
|
|
|
222
224
|
"updateOCRValidityByGlare" to processParams.updateOCRValidityByGlare,
|
|
223
225
|
"noGraphics" to processParams.noGraphics,
|
|
224
226
|
"multiDocOnImage" to processParams.multiDocOnImage,
|
|
225
|
-
"forceReadMrzBeforeLocate" to processParams.forceReadMrzBeforeLocate,
|
|
226
227
|
"parseBarcodes" to processParams.parseBarcodes,
|
|
227
228
|
"shouldReturnPackageForReprocess" to processParams.shouldReturnPackageForReprocess,
|
|
228
229
|
"disablePerforationOCR" to processParams.disablePerforationOCR,
|
|
@@ -246,6 +247,7 @@ fun getProcessParams(processParams: ProcessParam) = mapOf(
|
|
|
246
247
|
"strictExpiryDate" to processParams.strictExpiryDate,
|
|
247
248
|
"debugSaveBinarySession" to processParams.debugSaveBinarySession,
|
|
248
249
|
"checkVDS" to processParams.checkVDS,
|
|
250
|
+
"strictAgeCheck" to processParams.strictAgeCheck,
|
|
249
251
|
"measureSystem" to processParams.measureSystem,
|
|
250
252
|
"barcodeParserType" to processParams.barcodeParserType,
|
|
251
253
|
"perspectiveAngle" to processParams.perspectiveAngle,
|
|
@@ -753,6 +755,7 @@ fun setLivenessParams(input: LivenessParams, opts: JSONObject) = opts.forEach {
|
|
|
753
755
|
"checkBlackAndWhiteCopy" -> input.checkBlackAndWhiteCopy = v as Boolean
|
|
754
756
|
"checkDynaprint" -> input.checkDynaprint = v as Boolean
|
|
755
757
|
"checkGeometry" -> input.checkGeometry = v as Boolean
|
|
758
|
+
"checkBarcodeBackground" -> input.checkBarcodeBackground = v as Boolean
|
|
756
759
|
}
|
|
757
760
|
}
|
|
758
761
|
|
|
@@ -765,6 +768,7 @@ fun getLivenessParams(input: LivenessParams?) = input?.let {
|
|
|
765
768
|
"checkBlackAndWhiteCopy" to input.checkBlackAndWhiteCopy,
|
|
766
769
|
"checkDynaprint" to input.checkDynaprint,
|
|
767
770
|
"checkGeometry" to input.checkGeometry,
|
|
771
|
+
"checkBarcodeBackground" to input.checkBarcodeBackground,
|
|
768
772
|
).toJson()
|
|
769
773
|
}
|
|
770
774
|
|
|
@@ -273,6 +273,12 @@ fun recognizeConfigFromJSON(input: JSONObject) = input.let {
|
|
|
273
273
|
for (i in images.indices) images[i] = base64Images.getString(i).toBitmap()
|
|
274
274
|
builder.setBitmaps(images)
|
|
275
275
|
}
|
|
276
|
+
if (it.has("dataList")) {
|
|
277
|
+
val array = it.getJSONArray("dataList")
|
|
278
|
+
val dataList = mutableListOf<ByteArray>()
|
|
279
|
+
for (i in 0..< array.length()) dataList.add(array.getString(i).toByteArray()!!)
|
|
280
|
+
builder.setData(dataList)
|
|
281
|
+
}
|
|
276
282
|
if (it.has("imageInputData")) {
|
|
277
283
|
val base64InputData = it.getJSONArray("imageInputData")
|
|
278
284
|
val inputData = arrayOfNulls<ImageInputData>(base64InputData.length())
|
|
@@ -291,14 +297,8 @@ fun generateRecognizeConfig(input: RecognizeConfig?) = input?.let {
|
|
|
291
297
|
"livePortrait" to it.livePortrait.toBase64(),
|
|
292
298
|
"extPortrait" to it.extPortrait.toBase64(),
|
|
293
299
|
"image" to it.bitmap.toBase64(),
|
|
294
|
-
"
|
|
295
|
-
"
|
|
296
|
-
if (it.bitmaps == null) null
|
|
297
|
-
else {
|
|
298
|
-
val array = JSONArray()
|
|
299
|
-
for (bitmap in it.bitmaps!!) array.put(bitmap.toBase64())
|
|
300
|
-
array
|
|
301
|
-
},
|
|
300
|
+
"images" to it.bitmaps?.map { bp -> bp.toBase64() }?.toJson(),
|
|
301
|
+
"dataList" to it.data?.map { bp -> bp.toBase64() }?.toJson(),
|
|
302
302
|
"imageInputData" to it.imageInputData.toJson(::generateImageInputData)
|
|
303
303
|
).toJson()
|
|
304
304
|
}
|
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": "9.5.
|
|
14
|
-
"@regulaforensics/react-native-document-reader-core-fullauthrfid": "9.5.
|
|
13
|
+
"@regulaforensics/react-native-document-reader-api": "9.5.576-nightly",
|
|
14
|
+
"@regulaforensics/react-native-document-reader-core-fullauthrfid": "9.5.2470-nightly",
|
|
15
15
|
"@rneui/base": "4.0.0-rc.7",
|
|
16
16
|
"@rneui/themed": "4.0.0-rc.7",
|
|
17
17
|
"react": "19.0.0",
|
package/index.d.ts
CHANGED
|
@@ -1652,6 +1652,7 @@ export class RecognizeConfig {
|
|
|
1652
1652
|
image?: string
|
|
1653
1653
|
data?: string
|
|
1654
1654
|
images?: string[]
|
|
1655
|
+
dataList?: string[]
|
|
1655
1656
|
imageInputData?: ImageInputData[]
|
|
1656
1657
|
|
|
1657
1658
|
static fromJson(jsonObject?: any): RecognizeConfig | undefined {
|
|
@@ -1672,6 +1673,12 @@ export class RecognizeConfig {
|
|
|
1672
1673
|
result.images.push(jsonObject["images"][i])
|
|
1673
1674
|
}
|
|
1674
1675
|
}
|
|
1676
|
+
result.dataList = []
|
|
1677
|
+
if (jsonObject["dataList"] != null) {
|
|
1678
|
+
for (const i in jsonObject["dataList"]) {
|
|
1679
|
+
result.dataList.push(jsonObject["dataList"][i])
|
|
1680
|
+
}
|
|
1681
|
+
}
|
|
1675
1682
|
result.imageInputData = []
|
|
1676
1683
|
if (jsonObject["imageInputData"] != null) {
|
|
1677
1684
|
for (const i in jsonObject["imageInputData"]) {
|
|
@@ -1936,6 +1943,7 @@ export class Functionality {
|
|
|
1936
1943
|
torchTurnedOn?: boolean
|
|
1937
1944
|
preventScreenRecording?: boolean
|
|
1938
1945
|
homeIndicatorAutoHide?: boolean
|
|
1946
|
+
hideStatusBar?: boolean
|
|
1939
1947
|
showCaptureButtonDelayFromDetect?: number
|
|
1940
1948
|
showCaptureButtonDelayFromStart?: number
|
|
1941
1949
|
rfidTimeout?: number
|
|
@@ -1977,6 +1985,7 @@ export class Functionality {
|
|
|
1977
1985
|
result.torchTurnedOn = jsonObject["torchTurnedOn"]
|
|
1978
1986
|
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
1979
1987
|
result.homeIndicatorAutoHide = jsonObject["homeIndicatorAutoHide"]
|
|
1988
|
+
result.hideStatusBar = jsonObject["hideStatusBar"]
|
|
1980
1989
|
result.showCaptureButtonDelayFromDetect = jsonObject["showCaptureButtonDelayFromDetect"]
|
|
1981
1990
|
result.showCaptureButtonDelayFromStart = jsonObject["showCaptureButtonDelayFromStart"]
|
|
1982
1991
|
result.rfidTimeout = jsonObject["rfidTimeout"]
|
|
@@ -2166,6 +2175,7 @@ export class LivenessParams {
|
|
|
2166
2175
|
checkBlackAndWhiteCopy?: boolean
|
|
2167
2176
|
checkDynaprint?: boolean
|
|
2168
2177
|
checkGeometry?: boolean
|
|
2178
|
+
checkBarcodeBackground?: boolean
|
|
2169
2179
|
|
|
2170
2180
|
static fromJson(jsonObject?: any): LivenessParams | undefined {
|
|
2171
2181
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
@@ -2178,6 +2188,7 @@ export class LivenessParams {
|
|
|
2178
2188
|
result.checkBlackAndWhiteCopy = jsonObject["checkBlackAndWhiteCopy"]
|
|
2179
2189
|
result.checkDynaprint = jsonObject["checkDynaprint"]
|
|
2180
2190
|
result.checkGeometry = jsonObject["checkGeometry"]
|
|
2191
|
+
result.checkBarcodeBackground = jsonObject["checkBarcodeBackground"]
|
|
2181
2192
|
|
|
2182
2193
|
return result
|
|
2183
2194
|
}
|
|
@@ -2248,7 +2259,6 @@ export class ProcessParams {
|
|
|
2248
2259
|
updateOCRValidityByGlare?: boolean
|
|
2249
2260
|
noGraphics?: boolean
|
|
2250
2261
|
multiDocOnImage?: boolean
|
|
2251
|
-
forceReadMrzBeforeLocate?: boolean
|
|
2252
2262
|
parseBarcodes?: boolean
|
|
2253
2263
|
shouldReturnPackageForReprocess?: boolean
|
|
2254
2264
|
disablePerforationOCR?: boolean
|
|
@@ -2271,6 +2281,7 @@ export class ProcessParams {
|
|
|
2271
2281
|
strictExpiryDate?: boolean
|
|
2272
2282
|
debugSaveBinarySession?: boolean
|
|
2273
2283
|
checkVDS?: boolean
|
|
2284
|
+
strictAgeCheck?: boolean
|
|
2274
2285
|
barcodeParserType?: number
|
|
2275
2286
|
perspectiveAngle?: number
|
|
2276
2287
|
minDPI?: number
|
|
@@ -2337,7 +2348,6 @@ export class ProcessParams {
|
|
|
2337
2348
|
result.updateOCRValidityByGlare = jsonObject["updateOCRValidityByGlare"]
|
|
2338
2349
|
result.noGraphics = jsonObject["noGraphics"]
|
|
2339
2350
|
result.multiDocOnImage = jsonObject["multiDocOnImage"]
|
|
2340
|
-
result.forceReadMrzBeforeLocate = jsonObject["forceReadMrzBeforeLocate"]
|
|
2341
2351
|
result.parseBarcodes = jsonObject["parseBarcodes"]
|
|
2342
2352
|
result.shouldReturnPackageForReprocess = jsonObject["shouldReturnPackageForReprocess"]
|
|
2343
2353
|
result.disablePerforationOCR = jsonObject["disablePerforationOCR"]
|
|
@@ -2360,6 +2370,7 @@ export class ProcessParams {
|
|
|
2360
2370
|
result.strictExpiryDate = jsonObject["strictExpiryDate"]
|
|
2361
2371
|
result.debugSaveBinarySession = jsonObject["debugSaveBinarySession"]
|
|
2362
2372
|
result.checkVDS = jsonObject["checkVDS"]
|
|
2373
|
+
result.strictAgeCheck = jsonObject["strictAgeCheck"]
|
|
2363
2374
|
result.barcodeParserType = jsonObject["barcodeParserType"]
|
|
2364
2375
|
result.perspectiveAngle = jsonObject["perspectiveAngle"]
|
|
2365
2376
|
result.minDPI = jsonObject["minDPI"]
|
package/index.js
CHANGED
|
@@ -1117,6 +1117,10 @@ export class RecognizeConfig {
|
|
|
1117
1117
|
if (jsonObject["images"] != null)
|
|
1118
1118
|
for (const i in jsonObject["images"])
|
|
1119
1119
|
result.images.push(jsonObject["images"][i])
|
|
1120
|
+
result.dataList = []
|
|
1121
|
+
if (jsonObject["dataList"] != null)
|
|
1122
|
+
for (const i in jsonObject["dataList"])
|
|
1123
|
+
result.dataList.push(jsonObject["dataList"][i])
|
|
1120
1124
|
result.imageInputData = []
|
|
1121
1125
|
if (jsonObject["imageInputData"] != null)
|
|
1122
1126
|
for (const i in jsonObject["imageInputData"])
|
|
@@ -1326,6 +1330,7 @@ export class Functionality {
|
|
|
1326
1330
|
result.torchTurnedOn = jsonObject["torchTurnedOn"]
|
|
1327
1331
|
result.preventScreenRecording = jsonObject["preventScreenRecording"]
|
|
1328
1332
|
result.homeIndicatorAutoHide = jsonObject["homeIndicatorAutoHide"]
|
|
1333
|
+
result.hideStatusBar = jsonObject["hideStatusBar"]
|
|
1329
1334
|
result.showCaptureButtonDelayFromDetect = jsonObject["showCaptureButtonDelayFromDetect"]
|
|
1330
1335
|
result.showCaptureButtonDelayFromStart = jsonObject["showCaptureButtonDelayFromStart"]
|
|
1331
1336
|
result.rfidTimeout = jsonObject["rfidTimeout"]
|
|
@@ -1473,6 +1478,7 @@ export class LivenessParams {
|
|
|
1473
1478
|
result.checkBlackAndWhiteCopy = jsonObject["checkBlackAndWhiteCopy"]
|
|
1474
1479
|
result.checkDynaprint = jsonObject["checkDynaprint"]
|
|
1475
1480
|
result.checkGeometry = jsonObject["checkGeometry"]
|
|
1481
|
+
result.checkBarcodeBackground = jsonObject["checkBarcodeBackground"]
|
|
1476
1482
|
|
|
1477
1483
|
return result
|
|
1478
1484
|
}
|
|
@@ -1530,7 +1536,6 @@ export class ProcessParams {
|
|
|
1530
1536
|
result.updateOCRValidityByGlare = jsonObject["updateOCRValidityByGlare"]
|
|
1531
1537
|
result.noGraphics = jsonObject["noGraphics"]
|
|
1532
1538
|
result.multiDocOnImage = jsonObject["multiDocOnImage"]
|
|
1533
|
-
result.forceReadMrzBeforeLocate = jsonObject["forceReadMrzBeforeLocate"]
|
|
1534
1539
|
result.parseBarcodes = jsonObject["parseBarcodes"]
|
|
1535
1540
|
result.shouldReturnPackageForReprocess = jsonObject["shouldReturnPackageForReprocess"]
|
|
1536
1541
|
result.disablePerforationOCR = jsonObject["disablePerforationOCR"]
|
|
@@ -1553,6 +1558,7 @@ export class ProcessParams {
|
|
|
1553
1558
|
result.strictExpiryDate = jsonObject["strictExpiryDate"]
|
|
1554
1559
|
result.debugSaveBinarySession = jsonObject["debugSaveBinarySession"]
|
|
1555
1560
|
result.checkVDS = jsonObject["checkVDS"]
|
|
1561
|
+
result.strictAgeCheck = jsonObject["strictAgeCheck"]
|
|
1556
1562
|
result.barcodeParserType = jsonObject["barcodeParserType"]
|
|
1557
1563
|
result.perspectiveAngle = jsonObject["perspectiveAngle"]
|
|
1558
1564
|
result.minDPI = jsonObject["minDPI"]
|
package/ios/RGLWConfig.m
CHANGED
|
@@ -163,8 +163,6 @@
|
|
|
163
163
|
processParams.noGraphics = [options valueForKey:@"noGraphics"];
|
|
164
164
|
if([options valueForKey:@"multiDocOnImage"] != nil)
|
|
165
165
|
processParams.multiDocOnImage = [options valueForKey:@"multiDocOnImage"];
|
|
166
|
-
if([options valueForKey:@"forceReadMrzBeforeLocate"] != nil)
|
|
167
|
-
processParams.forceReadMrzBeforeLocate = [options valueForKey:@"forceReadMrzBeforeLocate"];
|
|
168
166
|
if([options valueForKey:@"parseBarcodes"] != nil)
|
|
169
167
|
processParams.parseBarcodes = [options valueForKey:@"parseBarcodes"];
|
|
170
168
|
if([options valueForKey:@"shouldReturnPackageForReprocess"] != nil)
|
|
@@ -197,6 +195,7 @@
|
|
|
197
195
|
if (options[@"strictExpiryDate"]) processParams.strictExpiryDate = options[@"strictExpiryDate"];
|
|
198
196
|
if (options[@"debugSaveBinarySession"]) processParams.debugSaveBinarySession = options[@"debugSaveBinarySession"];
|
|
199
197
|
if (options[@"checkVDS"]) processParams.checkVDS = options[@"checkVDS"];
|
|
198
|
+
if (options[@"strictAgeCheck"]) processParams.strictAgeCheck = options[@"strictAgeCheck"];
|
|
200
199
|
|
|
201
200
|
// Int
|
|
202
201
|
if([options valueForKey:@"measureSystem"] != nil)
|
|
@@ -308,7 +307,6 @@
|
|
|
308
307
|
result[@"updateOCRValidityByGlare"] = processParams.updateOCRValidityByGlare;
|
|
309
308
|
result[@"noGraphics"] = processParams.noGraphics;
|
|
310
309
|
result[@"multiDocOnImage"] = processParams.multiDocOnImage;
|
|
311
|
-
result[@"forceReadMrzBeforeLocate"] = processParams.forceReadMrzBeforeLocate;
|
|
312
310
|
result[@"parseBarcodes"] = processParams.parseBarcodes;
|
|
313
311
|
result[@"shouldReturnPackageForReprocess"] = processParams.shouldReturnPackageForReprocess;
|
|
314
312
|
result[@"disablePerforationOCR"] = processParams.disablePerforationOCR;
|
|
@@ -332,6 +330,7 @@
|
|
|
332
330
|
result[@"strictExpiryDate"] = processParams.strictExpiryDate;
|
|
333
331
|
result[@"debugSaveBinarySession"] = processParams.debugSaveBinarySession;
|
|
334
332
|
result[@"checkVDS"] = processParams.checkVDS;
|
|
333
|
+
result[@"strictAgeCheck"] = processParams.strictAgeCheck;
|
|
335
334
|
|
|
336
335
|
// Int
|
|
337
336
|
result[@"measureSystem"] = [NSNumber numberWithInteger:processParams.measureSystem];
|
|
@@ -1065,6 +1064,7 @@
|
|
|
1065
1064
|
if(input[@"checkBlackAndWhiteCopy"]) result.checkBlackAndWhiteCopy = input[@"checkBlackAndWhiteCopy"];
|
|
1066
1065
|
if(input[@"checkDynaprint"]) result.checkDynaprint = input[@"checkDynaprint"];
|
|
1067
1066
|
if(input[@"checkGeometry"]) result.checkGeometry = input[@"checkGeometry"];
|
|
1067
|
+
if(input[@"checkBarcodeBackground"]) result.checkBarcodeBackground = input[@"checkBarcodeBackground"];
|
|
1068
1068
|
}
|
|
1069
1069
|
|
|
1070
1070
|
+(NSDictionary*)getLivenessParams:(RGLLivenessParams*)input {
|
|
@@ -1078,6 +1078,7 @@
|
|
|
1078
1078
|
result[@"checkBlackAndWhiteCopy"] = input.checkBlackAndWhiteCopy;
|
|
1079
1079
|
result[@"checkDynaprint"] = input.checkDynaprint;
|
|
1080
1080
|
result[@"checkGeometry"] = input.checkGeometry;
|
|
1081
|
+
result[@"checkBarcodeBackground"] = input.checkBarcodeBackground;
|
|
1081
1082
|
|
|
1082
1083
|
return result;
|
|
1083
1084
|
}
|
|
@@ -227,10 +227,16 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
227
227
|
if (input[@"image"]) config.image = [RGLWJSONConstructor imageWithBase64:input[@"image"]];
|
|
228
228
|
if (input[@"data"]) config.imageData = [RGLWJSONConstructor base64Decode:input[@"data"]];
|
|
229
229
|
if (input[@"images"]) {
|
|
230
|
-
NSMutableArray<UIImage*>*
|
|
231
|
-
for(NSString*
|
|
232
|
-
[
|
|
233
|
-
config.images =
|
|
230
|
+
NSMutableArray<UIImage*>* list = [NSMutableArray new];
|
|
231
|
+
for(NSString* item in input[@"images"])
|
|
232
|
+
[list addObject:[RGLWJSONConstructor imageWithBase64:item]];
|
|
233
|
+
config.images = list;
|
|
234
|
+
}
|
|
235
|
+
if (input[@"dataList"]) {
|
|
236
|
+
NSMutableArray<NSData*>* list = [NSMutableArray new];
|
|
237
|
+
for(NSString* item in input[@"dataList"])
|
|
238
|
+
[list addObject:[RGLWJSONConstructor base64Decode:item]];
|
|
239
|
+
config.imageDataArray = list;
|
|
234
240
|
}
|
|
235
241
|
if(input[@"imageInputData"]) {
|
|
236
242
|
NSMutableArray<RGLImageInput*>* imageInputs = [NSMutableArray new];
|
|
@@ -261,10 +267,16 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
261
267
|
result[@"image"] = [self base64WithImage: input.image];
|
|
262
268
|
result[@"data"] = [self base64Encode: input.imageData];
|
|
263
269
|
if(input.images != nil) {
|
|
264
|
-
NSMutableArray *
|
|
270
|
+
NSMutableArray *list = [NSMutableArray new];
|
|
265
271
|
for(UIImage* item in input.images)
|
|
266
|
-
[
|
|
267
|
-
result[@"images"] =
|
|
272
|
+
[list addObject:[self base64WithImage:item]];
|
|
273
|
+
result[@"images"] = list;
|
|
274
|
+
}
|
|
275
|
+
if(input.imageDataArray != nil) {
|
|
276
|
+
NSMutableArray *list = [NSMutableArray new];
|
|
277
|
+
for(NSData* item in input.imageDataArray)
|
|
278
|
+
[list addObject:[self base64Encode:item]];
|
|
279
|
+
result[@"dataList"] = list;
|
|
268
280
|
}
|
|
269
281
|
if(input.imageInputs != nil) {
|
|
270
282
|
NSMutableArray *array = [NSMutableArray new];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/react-native-document-reader-api",
|
|
3
|
-
"version": "9.5.
|
|
3
|
+
"version": "9.5.576-nightly",
|
|
4
4
|
"description": "React Native module for reading and validation of identification documents (API framework)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|