@regulaforensics/react-native-document-reader-api 8.3.236-nightly → 8.3.237-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.
@@ -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 'DocumentReaderNightly', '8.3.5055'
17
+ s.dependency 'DocumentReaderNightly', '8.3.5056'
18
18
  s.dependency 'React'
19
19
  end
@@ -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.getStringOrNull("sessionLogFolder")
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 -> it.setRequestProperty(k, v as String) } }
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 = IntArray(jsonArrayGroupIds.length())
373
+ val groupIds = arrayOfNulls<String>(jsonArrayGroupIds.length())
374
374
  for (i in 0 until jsonArrayGroupIds.length())
375
- groupIds[i] = jsonArrayGroupIds.getInt(i)
375
+ groupIds[i] = jsonArrayGroupIds.getString(i)
376
376
  result.groupIds = groupIds
377
377
  }
378
378
 
@@ -10,8 +10,8 @@
10
10
  "test": "jest"
11
11
  },
12
12
  "dependencies": {
13
- "@regulaforensics/react-native-document-reader-api": "8.3.236-nightly",
14
- "@regulaforensics/react-native-document-reader-core-fullauthrfid": "8.3.699-nightly",
13
+ "@regulaforensics/react-native-document-reader-api": "8.3.237-nightly",
14
+ "@regulaforensics/react-native-document-reader-core-fullauthrfid": "8.3.700-nightly",
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
@@ -1838,6 +1838,7 @@ export class Functionality {
1838
1838
  btDeviceName?: string
1839
1839
  zoomFactor?: number
1840
1840
  exposure?: number
1841
+ videoRecordingSizeDownscaleFactor?: number
1841
1842
  excludedCamera2Models?: string[]
1842
1843
  cameraSize?: CameraSize
1843
1844
  videoSessionPreset?: number
@@ -1875,6 +1876,7 @@ export class Functionality {
1875
1876
  result.btDeviceName = jsonObject["btDeviceName"]
1876
1877
  result.zoomFactor = jsonObject["zoomFactor"]
1877
1878
  result.exposure = jsonObject["exposure"]
1879
+ result.videoRecordingSizeDownscaleFactor = jsonObject["videoRecordingSizeDownscaleFactor"]
1878
1880
  result.excludedCamera2Models = []
1879
1881
  if (jsonObject["excludedCamera2Models"] != null) {
1880
1882
  for (const i in jsonObject["excludedCamera2Models"]) {
@@ -1962,7 +1964,7 @@ export class RFIDParams {
1962
1964
  export class FaceApiSearchParams {
1963
1965
  limit?: number
1964
1966
  threshold?: number
1965
- groupIds?: number[]
1967
+ groupIds?: string[]
1966
1968
 
1967
1969
  static fromJson(jsonObject?: any): FaceApiSearchParams | undefined {
1968
1970
  if (jsonObject == null || jsonObject == undefined) return undefined
@@ -2134,6 +2136,7 @@ export class ProcessParams {
2134
2136
  strictDLCategoryExpiry?: boolean
2135
2137
  generateAlpha2Codes?: boolean
2136
2138
  disableAuthResolutionFilter?: boolean
2139
+ strictSecurityChecks?: boolean
2137
2140
  barcodeParserType?: number
2138
2141
  perspectiveAngle?: number
2139
2142
  minDPI?: number
@@ -2215,6 +2218,7 @@ export class ProcessParams {
2215
2218
  result.strictDLCategoryExpiry = jsonObject["strictDLCategoryExpiry"]
2216
2219
  result.generateAlpha2Codes = jsonObject["generateAlpha2Codes"]
2217
2220
  result.disableAuthResolutionFilter = jsonObject["disableAuthResolutionFilter"]
2221
+ result.strictSecurityChecks = jsonObject["strictSecurityChecks"]
2218
2222
  result.barcodeParserType = jsonObject["barcodeParserType"]
2219
2223
  result.perspectiveAngle = jsonObject["perspectiveAngle"]
2220
2224
  result.minDPI = jsonObject["minDPI"]
@@ -3601,6 +3605,7 @@ export const eCheckDiagnose = {
3601
3605
  TEXT_COLOR_SHOULD_BE_GREEN: 131,
3602
3606
  TEXT_COLOR_SHOULD_BE_RED: 132,
3603
3607
  TEXT_SHOULD_BE_BLACK: 133,
3608
+ SECURITY_TEXT_IS_ABSENT: 134,
3604
3609
  BARCODE_WAS_READ_WITH_ERRORS: 140,
3605
3610
  BARCODE_DATA_FORMAT_ERROR: 141,
3606
3611
  BARCODE_SIZE_PARAMS_ERROR: 142,
package/index.js CHANGED
@@ -1269,6 +1269,7 @@ export class Functionality {
1269
1269
  result.btDeviceName = jsonObject["btDeviceName"]
1270
1270
  result.zoomFactor = jsonObject["zoomFactor"]
1271
1271
  result.exposure = jsonObject["exposure"]
1272
+ result.videoRecordingSizeDownscaleFactor = jsonObject["videoRecordingSizeDownscaleFactor"]
1272
1273
  result.excludedCamera2Models = []
1273
1274
  if (jsonObject["excludedCamera2Models"] != null)
1274
1275
  for (const i in jsonObject["excludedCamera2Models"])
@@ -1464,6 +1465,7 @@ export class ProcessParams {
1464
1465
  result.strictDLCategoryExpiry = jsonObject["strictDLCategoryExpiry"]
1465
1466
  result.generateAlpha2Codes = jsonObject["generateAlpha2Codes"]
1466
1467
  result.disableAuthResolutionFilter = jsonObject["disableAuthResolutionFilter"]
1468
+ result.strictSecurityChecks = jsonObject["strictSecurityChecks"]
1467
1469
  result.barcodeParserType = jsonObject["barcodeParserType"]
1468
1470
  result.perspectiveAngle = jsonObject["perspectiveAngle"]
1469
1471
  result.minDPI = jsonObject["minDPI"]
@@ -2608,6 +2610,7 @@ export const eCheckDiagnose = {
2608
2610
  TEXT_COLOR_SHOULD_BE_GREEN: 131,
2609
2611
  TEXT_COLOR_SHOULD_BE_RED: 132,
2610
2612
  TEXT_SHOULD_BE_BLACK: 133,
2613
+ SECURITY_TEXT_IS_ABSENT: 134,
2611
2614
  BARCODE_WAS_READ_WITH_ERRORS: 140,
2612
2615
  BARCODE_DATA_FORMAT_ERROR: 141,
2613
2616
  BARCODE_SIZE_PARAMS_ERROR: 142,
package/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/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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/react-native-document-reader-api",
3
- "version": "8.3.236-nightly",
3
+ "version": "8.3.237-nightly",
4
4
  "description": "React Native module for reading and validation of identification documents (API framework)",
5
5
  "main": "index.js",
6
6
  "scripts": {