@regulaforensics/document-reader 7.2.423-rc → 7.2.424-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.
Files changed (36) hide show
  1. package/RNDocumentReader.podspec +2 -2
  2. package/android/build.gradle +2 -2
  3. package/android/cordova.gradle +2 -2
  4. package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +1 -31
  5. package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +0 -27
  6. package/android/src/main/java/com/regula/plugin/documentreader/Main.kt +0 -23
  7. package/examples/capacitor/package.json +1 -1
  8. package/examples/ionic/package-lock.json +8 -8
  9. package/examples/ionic/package.json +1 -1
  10. package/examples/react_native/package-lock.json +4 -4
  11. package/examples/react_native/package.json +1 -1
  12. package/ios/RGLWConfig.m +0 -30
  13. package/ios/RGLWJSONConstructor.h +0 -1
  14. package/ios/RGLWJSONConstructor.m +0 -18
  15. package/ios/RGLWMain.m +0 -46
  16. package/package.json +1 -1
  17. package/plugin.xml +2 -2
  18. package/test/json.tsx +0 -29
  19. package/test/package-lock.json +1 -1
  20. package/test/test.tsx +2 -3
  21. package/www/capacitor/index.js +4 -5
  22. package/www/capacitor/params/process_params/AuthenticityParams.js +0 -44
  23. package/www/capacitor/params/process_params/LivenessParams.js +0 -36
  24. package/www/capacitor/params/process_params/ProcessParams.js +0 -30
  25. package/www/cordova.js +89 -287
  26. package/www/react-native/index.js +4 -5
  27. package/www/react-native/params/process_params/AuthenticityParams.js +0 -44
  28. package/www/react-native/params/process_params/LivenessParams.js +0 -36
  29. package/www/react-native/params/process_params/ProcessParams.js +0 -30
  30. package/www/types/index.d.ts +4 -5
  31. package/www/types/params/process_params/AuthenticityParams.d.ts +0 -25
  32. package/www/types/params/process_params/LivenessParams.d.ts +0 -18
  33. package/www/types/params/process_params/ProcessParams.d.ts +0 -11
  34. package/www/capacitor/params/process_params/FilterObject.js +0 -60
  35. package/www/react-native/params/process_params/FilterObject.js +0 -60
  36. package/www/types/params/process_params/FilterObject.d.ts +0 -32
@@ -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.423-rc'
8
+ s.version = '7.2.424-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 'DocumentReaderStage', '8.4.5414'
19
+ s.dependency 'DocumentReaderNightly', '8.4.5427'
20
20
  s.dependency 'React'
21
21
  end
@@ -20,7 +20,7 @@ android {
20
20
  rootProject.allprojects {
21
21
  repositories {
22
22
  maven {
23
- url "https://maven.regulaforensics.com/RegulaDocumentReader/Stage"
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.12030'){
32
+ implementation('com.regula.documentreader:api:8.4.12039'){
33
33
  transitive = true
34
34
  }
35
35
  }
@@ -1,12 +1,12 @@
1
1
  repositories {
2
2
  maven {
3
- url "https://maven.regulaforensics.com/RegulaDocumentReader/Stage"
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.12030'){
9
+ implementation('com.regula.documentreader:api:8.4.12039'){
10
10
  transitive = true
11
11
  }
12
12
  }
@@ -11,7 +11,7 @@ import androidx.core.content.ContextCompat
11
11
  import com.regula.documentreader.api.enums.CustomizationColor
12
12
  import com.regula.documentreader.api.enums.CustomizationFont
13
13
  import com.regula.documentreader.api.enums.CustomizationImage
14
- import com.regula.documentreader.api.internal.enums.LogLevel
14
+ import com.regula.documentreader.api.enums.LogLevel
15
15
  import com.regula.documentreader.api.params.AuthenticityParams
16
16
  import com.regula.documentreader.api.params.Functionality
17
17
  import com.regula.documentreader.api.params.ImageQA
@@ -185,16 +185,6 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
185
185
  if (processParams.authenticityParams == null) processParams.authenticityParams = AuthenticityParams.defaultParams()
186
186
  setAuthenticityParams(processParams.authenticityParams!!, v as JSONObject)
187
187
  }
188
-
189
- "setCheckFilter" -> processParams.setCheckFilter((v as JSONObject).getString("checkType"), filterObjectFromJSON(v.getJSONObject("filterObject")))
190
- "removeCheckFilter" -> processParams.removeCheckFilter(v as String)
191
- "clearCheckFilter" -> processParams.clearCheckFilter()
192
- "checkFilters" -> {
193
- processParams.clearCheckFilter()
194
- (v as JSONObject).forEach { key, value ->
195
- processParams.setCheckFilter(key, filterObjectFromJSON(value as JSONObject))
196
- }
197
- }
198
188
  }
199
189
  }
200
190
 
@@ -707,16 +697,6 @@ fun setAuthenticityParams(input: AuthenticityParams, opts: JSONObject) = opts.fo
707
697
  if (input.livenessParams == null) input.livenessParams = LivenessParams.defaultParams()
708
698
  setLivenessParams(input.livenessParams!!, v as JSONObject)
709
699
  }
710
-
711
- "setCheckFilter" -> input.setCheckFilter((v as JSONObject).getString("checkType"), filterObjectFromJSON(v.getJSONObject("filterObject")))
712
- "removeCheckFilter" -> input.removeCheckFilter(v as String)
713
- "clearCheckFilter" -> input.clearCheckFilter()
714
- "checkFilters" -> {
715
- input.clearCheckFilter()
716
- (v as JSONObject).forEach { key, value ->
717
- input.setCheckFilter(key, filterObjectFromJSON(value as JSONObject))
718
- }
719
- }
720
700
  }
721
701
  }
722
702
 
@@ -750,16 +730,6 @@ fun setLivenessParams(input: LivenessParams, opts: JSONObject) = opts.forEach {
750
730
  "checkBlackAndWhiteCopy" -> input.checkBlackAndWhiteCopy = v as Boolean
751
731
  "checkDynaprint" -> input.checkDynaprint = v as Boolean
752
732
  "checkGeometry" -> input.checkGeometry = v as Boolean
753
-
754
- "setCheckFilter" -> input.setCheckFilter((v as JSONObject).getString("checkType"), filterObjectFromJSON(v.getJSONObject("filterObject")))
755
- "removeCheckFilter" -> input.removeCheckFilter(v as String)
756
- "clearCheckFilter" -> input.clearCheckFilter()
757
- "checkFilters" -> {
758
- input.clearCheckFilter()
759
- (v as JSONObject).forEach { key, value ->
760
- input.setCheckFilter(key, filterObjectFromJSON(value as JSONObject))
761
- }
762
- }
763
733
  }
764
734
  }
765
735
 
@@ -27,8 +27,6 @@ import com.regula.documentreader.api.params.BackendProcessingConfig
27
27
  import com.regula.documentreader.api.params.BleDeviceConfig
28
28
  import com.regula.documentreader.api.params.DocReaderConfig
29
29
  import com.regula.documentreader.api.params.FaceApiParams
30
- import com.regula.documentreader.api.params.FilterObject
31
- import com.regula.documentreader.api.params.FilterObjectType
32
30
  import com.regula.documentreader.api.params.Functionality
33
31
  import com.regula.documentreader.api.params.ImageInputData
34
32
  import com.regula.documentreader.api.params.ImageQA
@@ -1798,28 +1796,3 @@ fun generateMatrix(input: Matrix?) = input?.let {
1798
1796
  for (f in floats) result.put(java.lang.Float.valueOf(f))
1799
1797
  result
1800
1798
  }
1801
-
1802
- fun filterObjectFromJSON(it: JSONObject): FilterObject {
1803
- val result = FilterObject()
1804
-
1805
- result.docIDsFilter = filterObjectTypeIntFromJSON(it.getJSONObjectOrNull("docIDsFilter"))
1806
- result.docFormatsFilter = filterObjectTypeIntFromJSON(it.getJSONObjectOrNull("docFormatsFilter"))
1807
- result.docCategoriesFilter = filterObjectTypeIntFromJSON(it.getJSONObjectOrNull("docCategoriesFilter"))
1808
- result.docCountriesFilter = filterObjectTypeStringFromJSON(it.getJSONObjectOrNull("docCountriesFilter"))
1809
-
1810
- return result
1811
- }
1812
-
1813
- fun filterObjectTypeIntFromJSON(input: JSONObject?): FilterObjectType<Int>? = input?.let {
1814
- val array = it.getJSONArray("list").toIntArray()!!.toTypedArray()
1815
- if (it.getBoolean("isInclude"))
1816
- return FilterObjectType.createIncludeList(array)
1817
- return FilterObjectType.createExcludeList(array)
1818
- }
1819
-
1820
- fun filterObjectTypeStringFromJSON(input: JSONObject?): FilterObjectType<String>? = input?.let {
1821
- val array = it.getJSONArray("list").toArray<String>()!!
1822
- if (it.getBoolean("isInclude"))
1823
- return FilterObjectType.createIncludeList(array)
1824
- return FilterObjectType.createExcludeList(array)
1825
- }
@@ -122,16 +122,6 @@ fun methodCall(method: String, callback: (Any?) -> Unit): Any? = when (method) {
122
122
  "finalizePackage" -> finalizePackage(callback)
123
123
  "endBackendTransaction" -> endBackendTransaction()
124
124
  "getTranslation" -> getTranslation(callback, args(0), args(1))
125
- // remove after finishing old dr support
126
- "processParamsSetCheckFilter" -> processParamsSetCheckFilter(args(0), args(1))
127
- "processParamsRemoveCheckFilter" -> processParamsRemoveCheckFilter(args(0))
128
- "processParamsClearCheckFilter" -> processParamsClearCheckFilter()
129
- "authenticityParamsSetCheckFilter" -> authenticityParamsSetCheckFilter(args(0), args(1))
130
- "authenticityParamsRemoveCheckFilter" -> authenticityParamsRemoveCheckFilter(args(0))
131
- "authenticityParamsClearCheckFilter" -> authenticityParamsClearCheckFilter()
132
- "livenessParamsSetCheckFilter" -> livenessParamsSetCheckFilter(args(0), args(1))
133
- "livenessParamsRemoveCheckFilter" -> livenessParamsRemoveCheckFilter(args(0))
134
- "livenessParamsClearCheckFilter" -> livenessParamsClearCheckFilter()
135
125
  else -> Unit
136
126
  }
137
127
 
@@ -462,19 +452,6 @@ fun getTranslation(callback: Callback, className: String, value: Int) = when (cl
462
452
  else -> Unit
463
453
  }
464
454
 
465
- // remove after finishing old dr support
466
- fun processParamsSetCheckFilter(checkType: String, filter: JSONObject) = Instance().processParams().setCheckFilter(checkType, filterObjectFromJSON(filter))
467
- fun processParamsRemoveCheckFilter(checkType: String) = Instance().processParams().removeCheckFilter(checkType)
468
- fun processParamsClearCheckFilter() = Instance().processParams().clearCheckFilter()
469
-
470
- fun authenticityParamsSetCheckFilter(checkType: String, filter: JSONObject) = Instance().processParams().authenticityParams?.setCheckFilter(checkType, filterObjectFromJSON(filter))
471
- fun authenticityParamsRemoveCheckFilter(checkType: String) = Instance().processParams().authenticityParams?.removeCheckFilter(checkType)
472
- fun authenticityParamsClearCheckFilter() = Instance().processParams().authenticityParams?.clearCheckFilter()
473
-
474
- fun livenessParamsSetCheckFilter(checkType: String, filter: JSONObject) = Instance().processParams().authenticityParams?.livenessParams?.setCheckFilter(checkType, filterObjectFromJSON(filter))
475
- fun livenessParamsRemoveCheckFilter(checkType: String) = Instance().processParams().authenticityParams?.livenessParams?.removeCheckFilter(checkType)
476
- fun livenessParamsClearCheckFilter() = Instance().processParams().authenticityParams?.livenessParams?.clearCheckFilter()
477
-
478
455
  // --------------------------------------------------------------------------------------------------------------------------
479
456
 
480
457
  val completion = { action: Int, results: DocumentReaderResults?, error: DocumentReaderException? ->
@@ -6,7 +6,7 @@
6
6
  "android": "scripts/android.sh"
7
7
  },
8
8
  "dependencies": {
9
- "@regulaforensics/document-reader": "7.2.423-rc",
9
+ "@regulaforensics/document-reader": "7.2.424-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",
@@ -6067,10 +6067,10 @@
6067
6067
  "license": "ISC"
6068
6068
  },
6069
6069
  "node_modules/cacache/node_modules/tar": {
6070
- "version": "7.5.1",
6071
- "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.1.tgz",
6072
- "integrity": "sha512-nlGpxf+hv0v7GkWBK2V9spgactGOp0qvfWRxUMjqHyzrt3SgwE48DIv/FhqPHJYLHpgW1opq3nERbz5Anq7n1g==",
6073
- "license": "ISC",
6070
+ "version": "7.5.2",
6071
+ "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.2.tgz",
6072
+ "integrity": "sha512-7NyxrTE4Anh8km8iEy7o0QYPs+0JKBTj5ZaqHg6B39erLg0qYXN3BijtShwbsNSvQ+LN75+KV+C4QR/f6Gwnpg==",
6073
+ "license": "BlueOak-1.0.0",
6074
6074
  "dependencies": {
6075
6075
  "@isaacs/fs-minipass": "^4.0.0",
6076
6076
  "chownr": "^3.0.0",
@@ -9788,10 +9788,10 @@
9788
9788
  }
9789
9789
  },
9790
9790
  "node_modules/node-gyp/node_modules/tar": {
9791
- "version": "7.5.1",
9792
- "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.1.tgz",
9793
- "integrity": "sha512-nlGpxf+hv0v7GkWBK2V9spgactGOp0qvfWRxUMjqHyzrt3SgwE48DIv/FhqPHJYLHpgW1opq3nERbz5Anq7n1g==",
9794
- "license": "ISC",
9791
+ "version": "7.5.2",
9792
+ "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.2.tgz",
9793
+ "integrity": "sha512-7NyxrTE4Anh8km8iEy7o0QYPs+0JKBTj5ZaqHg6B39erLg0qYXN3BijtShwbsNSvQ+LN75+KV+C4QR/f6Gwnpg==",
9794
+ "license": "BlueOak-1.0.0",
9795
9795
  "dependencies": {
9796
9796
  "@isaacs/fs-minipass": "^4.0.0",
9797
9797
  "chownr": "^3.0.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.423-rc",
21
+ "@regulaforensics/document-reader": "7.2.424-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",
@@ -8116,10 +8116,10 @@
8116
8116
  }
8117
8117
  },
8118
8118
  "node_modules/tar": {
8119
- "version": "7.5.1",
8120
- "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.1.tgz",
8121
- "integrity": "sha512-nlGpxf+hv0v7GkWBK2V9spgactGOp0qvfWRxUMjqHyzrt3SgwE48DIv/FhqPHJYLHpgW1opq3nERbz5Anq7n1g==",
8122
- "license": "ISC",
8119
+ "version": "7.5.2",
8120
+ "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.2.tgz",
8121
+ "integrity": "sha512-7NyxrTE4Anh8km8iEy7o0QYPs+0JKBTj5ZaqHg6B39erLg0qYXN3BijtShwbsNSvQ+LN75+KV+C4QR/f6Gwnpg==",
8122
+ "license": "BlueOak-1.0.0",
8123
8123
  "dependencies": {
8124
8124
  "@isaacs/fs-minipass": "^4.0.0",
8125
8125
  "chownr": "^3.0.0",
@@ -8,7 +8,7 @@
8
8
  "start": "expo start"
9
9
  },
10
10
  "dependencies": {
11
- "@regulaforensics/document-reader": "7.2.423-rc",
11
+ "@regulaforensics/document-reader": "7.2.424-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
@@ -273,16 +273,6 @@
273
273
  if(processParams.authenticityParams == nil) processParams.authenticityParams = [RGLAuthenticityParams defaultParams];
274
274
  [self setAuthenticityParams:processParams.authenticityParams input:[options valueForKey:@"authenticityParams"]];
275
275
  }
276
-
277
- if (options[@"setCheckFilter"]) [processParams
278
- addFilter:[RGLWJSONConstructor filterObjectFromJson: options[@"setCheckFilter"][@"filterObject"]] forCheckType:options[@"setCheckFilter"][@"checkType"]];
279
- if (options[@"removeCheckFilter"]) [processParams removeFilterForCheckType: options[@"removeCheckFilter"]];
280
- if (options[@"clearCheckFilter"]) [processParams clearCheckFilter];
281
- if (options[@"checkFilters"]) {
282
- [processParams clearCheckFilter];
283
- for (NSString* key in options[@"checkFilters"])
284
- [processParams addFilter:[RGLWJSONConstructor filterObjectFromJson: options[@"checkFilters"][key]] forCheckType: key];
285
- }
286
276
  }
287
277
 
288
278
  +(NSDictionary*)getProcessParams:(RGLProcessParams*)processParams {
@@ -1019,16 +1009,6 @@
1019
1009
  if([input valueForKey:@"checkLetterScreen"] != nil)
1020
1010
  result.checkLetterScreen = [input valueForKey:@"checkLetterScreen"];
1021
1011
  if(input[@"checkSecurityText"]) result.checkSecurityText = input[@"checkSecurityText"];
1022
-
1023
- if (input[@"setCheckFilter"]) [result
1024
- addFilter:[RGLWJSONConstructor filterObjectFromJson: input[@"setCheckFilter"][@"filterObject"]] forCheckType:input[@"setCheckFilter"][@"checkType"]];
1025
- if (input[@"removeCheckFilter"]) [result removeFilterForCheckType: input[@"removeCheckFilter"]];
1026
- if (input[@"clearCheckFilter"]) [result clearCheckFilter];
1027
- if (input[@"checkFilters"]) {
1028
- [result clearCheckFilter];
1029
- for (NSString* key in input[@"checkFilters"])
1030
- [result addFilter:[RGLWJSONConstructor filterObjectFromJson: input[@"checkFilters"][key]] forCheckType: key];
1031
- }
1032
1012
  }
1033
1013
 
1034
1014
  +(NSDictionary*)getAuthenticityParams:(RGLAuthenticityParams*)input {
@@ -1067,16 +1047,6 @@
1067
1047
  if(input[@"checkBlackAndWhiteCopy"]) result.checkBlackAndWhiteCopy = input[@"checkBlackAndWhiteCopy"];
1068
1048
  if(input[@"checkDynaprint"]) result.checkDynaprint = input[@"checkDynaprint"];
1069
1049
  if(input[@"checkGeometry"]) result.checkGeometry = input[@"checkGeometry"];
1070
-
1071
- if (input[@"setCheckFilter"]) [result
1072
- addFilter:[RGLWJSONConstructor filterObjectFromJson: input[@"setCheckFilter"][@"filterObject"]] forCheckType:input[@"setCheckFilter"][@"checkType"]];
1073
- if (input[@"removeCheckFilter"]) [result removeFilterForCheckType: input[@"removeCheckFilter"]];
1074
- if (input[@"clearCheckFilter"]) [result clearCheckFilter];
1075
- if (input[@"checkFilters"]) {
1076
- [result clearCheckFilter];
1077
- for (NSString* key in input[@"checkFilters"])
1078
- [result addFilter:[RGLWJSONConstructor filterObjectFromJson: input[@"checkFilters"][key]] forCheckType: key];
1079
- }
1080
1050
  }
1081
1051
 
1082
1052
  +(NSDictionary*)getLivenessParams:(RGLLivenessParams*)input {
@@ -175,7 +175,6 @@
175
175
  +(NSDictionary* _Nullable)generateTCCParams:(RGLTCCParams* _Nullable)input;
176
176
  +(RGLTransactionInfo* _Nullable)transactionInfoFromJson:(NSDictionary* _Nullable)input;
177
177
  +(NSDictionary* _Nullable)generateTransactionInfo:(RGLTransactionInfo* _Nullable)input;
178
- +(RGLFilterObject* _Nonnull)filterObjectFromJson:(NSDictionary* _Nonnull)input;
179
178
 
180
179
  @end
181
180
 
@@ -2350,24 +2350,6 @@ static NSMutableArray* weakReferencesHolder;
2350
2350
  return result;
2351
2351
  }
2352
2352
 
2353
- +(RGLFilterObject*)filterObjectFromJson:(NSDictionary*)input {
2354
- RGLFilterObject* result = [RGLFilterObject new];
2355
-
2356
- result.docIDsFilter = [self filterObjectTypeFromJSON: input[@"docIDsFilter"]];
2357
- result.docFormatsFilter = [self filterObjectTypeFromJSON: input[@"docFormatsFilter"]];
2358
- result.docCategoriesFilter = [self filterObjectTypeFromJSON: input[@"docCategoriesFilter"]];
2359
- result.docCountriesFilter = [self filterObjectTypeFromJSON: input[@"docCountriesFilter"]];
2360
-
2361
- return result;
2362
- }
2363
-
2364
- +(RGLFilterObjectType*)filterObjectTypeFromJSON:(NSDictionary*)input {
2365
- NSArray* array = input[@"list"];
2366
- if ([input[@"isInclude"] boolValue])
2367
- return [RGLFilterObjectType createIncludeList:array];
2368
- return [RGLFilterObjectType createExcludeList:array];
2369
- }
2370
-
2371
2353
  +(NSDictionary*)generateDictionary:(NSDictionary<NSNumber*, NSNumber*>*)input {
2372
2354
  if(input == nil) return nil;
2373
2355
  NSMutableDictionary* result = [NSMutableDictionary new];
package/ios/RGLWMain.m CHANGED
@@ -83,16 +83,6 @@
83
83
  @"containers": ^{ [self containers :args[0] :args[1] :callback]; },
84
84
  @"encryptedContainers": ^{ [self encryptedContainers :args[0] :callback]; },
85
85
  @"getTranslation": ^{ [self getTranslation :args[0] :args[1] :callback]; },
86
- // remove after finishing old dr support
87
- @"processParamsSetCheckFilter": ^{ [self processParamsSetCheckFilter :args[0] :args[1]]; },
88
- @"processParamsRemoveCheckFilter": ^{ [self processParamsRemoveCheckFilter :args[0]]; },
89
- @"processParamsClearCheckFilter": ^{ [self processParamsClearCheckFilter]; },
90
- @"authenticityParamsSetCheckFilter": ^{ [self authenticityParamsSetCheckFilter :args[0] :args[1]]; },
91
- @"authenticityParamsRemoveCheckFilter": ^{ [self authenticityParamsRemoveCheckFilter :args[0]]; },
92
- @"authenticityParamsClearCheckFilter": ^{ [self authenticityParamsClearCheckFilter]; },
93
- @"livenessParamsSetCheckFilter": ^{ [self livenessParamsSetCheckFilter :args[0] :args[1]]; },
94
- @"livenessParamsRemoveCheckFilter": ^{ [self livenessParamsRemoveCheckFilter :args[0]]; },
95
- @"livenessParamsClearCheckFilter": ^{ [self livenessParamsClearCheckFilter]; },
96
86
  };
97
87
  ((void(^)(void))Switch[method])();
98
88
  }
@@ -530,42 +520,6 @@ RGLWCallback savedCallbackForBluetoothResult;
530
520
  callback([RGLDocumentReaderTextField lcidName:[value intValue]]);
531
521
  }
532
522
 
533
- + (void)processParamsSetCheckFilter:(NSString*)checkType :(NSDictionary*)filter {
534
- [RGLDocReader.shared.processParams addFilter:[RGLWJSONConstructor filterObjectFromJson:filter] forCheckType:checkType];
535
- }
536
-
537
- + (void)processParamsRemoveCheckFilter:(NSString*)checkType {
538
- [RGLDocReader.shared.processParams removeFilterForCheckType:checkType];
539
- }
540
-
541
- + (void)processParamsClearCheckFilter {
542
- [RGLDocReader.shared.processParams clearCheckFilter];
543
- }
544
-
545
- + (void)authenticityParamsSetCheckFilter:(NSString*)checkType :(NSDictionary*)filter {
546
- [RGLDocReader.shared.processParams.authenticityParams addFilter:[RGLWJSONConstructor filterObjectFromJson:filter] forCheckType:checkType];
547
- }
548
-
549
- + (void)authenticityParamsRemoveCheckFilter:(NSString*)checkType {
550
- [RGLDocReader.shared.processParams.authenticityParams removeFilterForCheckType:checkType];
551
- }
552
-
553
- + (void)authenticityParamsClearCheckFilter {
554
- [RGLDocReader.shared.processParams.authenticityParams clearCheckFilter];
555
- }
556
-
557
- + (void)livenessParamsSetCheckFilter:(NSString*)checkType :(NSDictionary*)filter {
558
- [RGLDocReader.shared.processParams.authenticityParams.livenessParams addFilter:[RGLWJSONConstructor filterObjectFromJson:filter] forCheckType:checkType];
559
- }
560
-
561
- + (void)livenessParamsRemoveCheckFilter:(NSString*)checkType {
562
- [RGLDocReader.shared.processParams.authenticityParams.livenessParams removeFilterForCheckType:checkType];
563
- }
564
-
565
- + (void)livenessParamsClearCheckFilter {
566
- [RGLDocReader.shared.processParams.authenticityParams.livenessParams clearCheckFilter];
567
- }
568
-
569
523
  +(RGLDocumentReaderCompletion _Nonnull)completion {
570
524
  return ^(RGLDocReaderAction action, RGLDocumentReaderResults * _Nullable results, NSError * _Nullable error) {
571
525
  sendEvent(completionEvent, [RGLWJSONConstructor generateCompletion:[RGLWConfig generateDocReaderAction: action] :results :error]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/document-reader",
3
- "version": "7.2.423-rc",
3
+ "version": "7.2.424-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.423-rc" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/document-reader" version="7.2.424-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="DocumentReaderStage" spec="8.4.5414" />
32
+ <pod name="DocumentReaderNightly" spec="8.4.5427" />
33
33
  </pods>
34
34
  </podspec>
35
35
  </platform>
package/test/json.tsx CHANGED
@@ -17,24 +17,6 @@ export var faceApiParams = {
17
17
  "proxyType": 3,
18
18
  "searchParams": faceApiSearchParams,
19
19
  }
20
- export var filterObject = {
21
- "docIDsFilter": {
22
- "list": [1, 2, 3],
23
- "isInclude": true
24
- },
25
- "docFormatsFilter": {
26
- "list": [4, 5, 6],
27
- "isInclude": false
28
- },
29
- "docCategoriesFilter": {
30
- "list": [7, 8, 9],
31
- "isInclude": true
32
- },
33
- "docCountriesFilter": {
34
- "list": ["test1", "test2", "test3"],
35
- "isInclude": false
36
- },
37
- }
38
20
  export var livenessParams = {
39
21
  "checkOVI": true,
40
22
  "checkMLI": false,
@@ -43,11 +25,6 @@ export var livenessParams = {
43
25
  "checkBlackAndWhiteCopy": true,
44
26
  "checkDynaprint": false,
45
27
  "checkGeometry": true,
46
- "checkFilters": {
47
- "checkOVI": filterObject,
48
- "checkMLI": filterObject,
49
- "checkHolo": filterObject
50
- },
51
28
  }
52
29
  export var authenticityParams = {
53
30
  "useLivenessCheck": true,
@@ -66,11 +43,6 @@ export var authenticityParams = {
66
43
  "checkLetterScreen": false,
67
44
  "checkSecurityText": true,
68
45
  "livenessParams": livenessParams,
69
- "checkFilters": {
70
- "checkImagePatterns": filterObject,
71
- "checkFibers": filterObject,
72
- "checkExtMRZ": filterObject
73
- },
74
46
  }
75
47
  export var glaresCheckParams = { "imgMarginPart": 0.5, "maxGlaringPart": 1.5 }
76
48
  export var imageQA = {
@@ -173,7 +145,6 @@ export var processParams = {
173
145
  "backendProcessingConfig": backendProcessingConfig,
174
146
  "authenticityParams": authenticityParams,
175
147
  "customParams": { "test1": true, "test2": 1, "test3": "test" },
176
- "checkFilters": { "checkAuth": filterObject },
177
148
  }
178
149
  export var font1 = { "name": "AppleSDGothicNeo-Thin", "size": 10, "style": 2 }
179
150
  export var font2 = { "name": "Copperplate-Light", "size": 20, "style": 1 }
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "..": {
15
15
  "name": "@regulaforensics/document-reader",
16
- "version": "7.2.423-rc",
16
+ "version": "7.2.424-nightly",
17
17
  "dev": true,
18
18
  "license": "commercial"
19
19
  },
package/test/test.tsx CHANGED
@@ -1,6 +1,6 @@
1
1
  import { compare } from './utils'
2
- import { AccessControlProcedureType, Application, Attribute, AuthenticityCheck, AuthenticityElement, AuthenticityParams, AuthenticityResult, Authority, BackendProcessingConfig, BarcodeField, BarcodeResult, BytesData, CardProperties, CertificateChain, CertificateData, Comparison, Coordinate, Customization, CustomizationColors, CustomizationFonts, CustomizationImages, DataField, DocReaderException, DocReaderScenario, DocReaderVersion, DocumentsDatabase, DocumentType, EDLDataGroups, EIDDataGroups, DTCDataGroup, EPassportDataGroups, Extension, FaceApiParams, FaceApiSearchParams, File, FileData, Functionality, GlaresCheckParams, RFIDParams, GraphicField, GraphicResult, ImageInputData, ImageQA, ImageQuality, ImageQualityGroup, InitConfig, License, LivenessParams, OnlineProcessingConfig, OpticalStatus, PAAttribute, PAResourcesIssuer, PDF417Info, PKDCertificate, Position, PrepareProgress, FilterObject, ProcessParams, RecognizeConfig, Rect, Results, ResultsStatus, RFIDException, RFIDNotification, RFIDOrigin, RFIDScenario, RFIDSessionData, RFIDStatus, RFIDValidity, RFIDValue, ScannerConfig, SecurityObject, SecurityObjectCertificates, SignerInfo, Symbol, TAChallenge, TccParams, TextField, TextResult, TextSource, TransactionInfo, Validity, Value, VDSNCData } from '@regulaforensics/document-reader/www/capacitor'
3
- import { accessControlProcedureType, application, attribute, authenticityCheck, authenticityElement, authenticityParams, authenticityResult, authority, backendProcessingConfig, barcodeField, barcodeResult, bytesData, cardProperties, certificateChain, certificateData, comparison, coordinate, customization, customizationColors, customizationFonts, customizationImages, dataField, docReaderException, docReaderScenario, docReaderVersion, documentsDatabase, documentType, eDLDataGroups, eIDDataGroups, dtcDataGroup, ePassportDataGroups, extension, faceApiParams, faceApiSearchParams, file, fileData, functionality, glaresCheckParams, rfidParams, graphicField, graphicResult, imageInputData, imageQA, imageQuality, imageQualityGroup, initConfig, license, livenessParams, onlineProcessingConfig, opticalStatus, paAttribute, paResourcesIssuer, pdf417Info, pkdCertificate, position, prepareProgress, filterObject, processParams, recognizeConfig, recognizeConfig2, rect, results, resultsStatus, rfidException, rfidNotification, rfidOrigin, rfidScenario, rfidSessionData, rfidStatus, rfidValidity, rfidValue, scannerConfig, securityObject, securityObjectCertificates, signerInfo, symbol, taChallenge, tccParams, textField, textResult, textSource, transactionInfo, validity, value, vdsncData } from './json'
2
+ import { AccessControlProcedureType, Application, Attribute, AuthenticityCheck, AuthenticityElement, AuthenticityParams, AuthenticityResult, Authority, BackendProcessingConfig, BarcodeField, BarcodeResult, BytesData, CardProperties, CertificateChain, CertificateData, Comparison, Coordinate, Customization, CustomizationColors, CustomizationFonts, CustomizationImages, DataField, DocReaderException, DocReaderScenario, DocReaderVersion, DocumentsDatabase, DocumentType, EDLDataGroups, EIDDataGroups, DTCDataGroup, EPassportDataGroups, Extension, FaceApiParams, FaceApiSearchParams, File, FileData, Functionality, GlaresCheckParams, RFIDParams, GraphicField, GraphicResult, ImageInputData, ImageQA, ImageQuality, ImageQualityGroup, InitConfig, License, LivenessParams, OnlineProcessingConfig, OpticalStatus, PAAttribute, PAResourcesIssuer, PDF417Info, PKDCertificate, Position, PrepareProgress, ProcessParams, RecognizeConfig, Rect, Results, ResultsStatus, RFIDException, RFIDNotification, RFIDOrigin, RFIDScenario, RFIDSessionData, RFIDStatus, RFIDValidity, RFIDValue, ScannerConfig, SecurityObject, SecurityObjectCertificates, SignerInfo, Symbol, TAChallenge, TccParams, TextField, TextResult, TextSource, TransactionInfo, Validity, Value, VDSNCData } from '@regulaforensics/document-reader/www/capacitor'
3
+ import { accessControlProcedureType, application, attribute, authenticityCheck, authenticityElement, authenticityParams, authenticityResult, authority, backendProcessingConfig, barcodeField, barcodeResult, bytesData, cardProperties, certificateChain, certificateData, comparison, coordinate, customization, customizationColors, customizationFonts, customizationImages, dataField, docReaderException, docReaderScenario, docReaderVersion, documentsDatabase, documentType, eDLDataGroups, eIDDataGroups, dtcDataGroup, ePassportDataGroups, extension, faceApiParams, faceApiSearchParams, file, fileData, functionality, glaresCheckParams, rfidParams, graphicField, graphicResult, imageInputData, imageQA, imageQuality, imageQualityGroup, initConfig, license, livenessParams, onlineProcessingConfig, opticalStatus, paAttribute, paResourcesIssuer, pdf417Info, pkdCertificate, position, prepareProgress, processParams, recognizeConfig, recognizeConfig2, rect, results, resultsStatus, rfidException, rfidNotification, rfidOrigin, rfidScenario, rfidSessionData, rfidStatus, rfidValidity, rfidValue, scannerConfig, securityObject, securityObjectCertificates, signerInfo, symbol, taChallenge, tccParams, textField, textResult, textSource, transactionInfo, validity, value, vdsncData } from './json'
4
4
 
5
5
  compare('initConfig', initConfig, InitConfig.fromJson)
6
6
  compare('onlineProcessingConfig', onlineProcessingConfig, OnlineProcessingConfig.fromJson)
@@ -18,7 +18,6 @@ compare('glaresCheckParams', glaresCheckParams, GlaresCheckParams.fromJson)
18
18
  compare('rfidParams', rfidParams, RFIDParams.fromJson)
19
19
  compare('imageQA', imageQA, ImageQA.fromJson)
20
20
  compare('backendProcessingConfig', backendProcessingConfig, BackendProcessingConfig.fromJson)
21
- compare('filterObject', filterObject, FilterObject.fromJson)
22
21
  compare('processParams', processParams, ProcessParams.fromJson, ['logs'])
23
22
  compare('eDLDataGroups', eDLDataGroups, EDLDataGroups.fromJson)
24
23
  compare('ePassportDataGroups', ePassportDataGroups, EPassportDataGroups.fromJson)
@@ -94,17 +94,16 @@ import { Extension } from './results/rfid/Extension';
94
94
  import { AccessControlProcedureType } from './results/rfid/AccessControlProcedureType';
95
95
  export { SecurityObject, CardProperties, DataField, Attribute, SignerInfo, SecurityObjectCertificates, CertificateChain, Authority, File, RFIDValue, RFIDValidity, RFIDDataFileType, CertificateData, FileData, RFIDCertificateType, RFIDSessionData, Application, RFIDApplicationType, RFIDAccessControlProcedureType, Extension, AccessControlProcedureType };
96
96
 
97
- import { FilterObject, FilterObjectType } from './params/process_params/FilterObject';
98
- import { LivenessParams, LivenessCheckType } from './params/process_params/LivenessParams';
99
- import { ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes, FilterCheckType } from './params/process_params/ProcessParams';
97
+ import { LivenessParams } from './params/process_params/LivenessParams';
98
+ import { ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes } from './params/process_params/ProcessParams';
100
99
  import { GlaresCheckParams } from './params/process_params/GlaresCheckParams';
101
100
  import { FaceApiParams } from './params/process_params/FaceApiParams';
102
101
  import { RFIDParams } from './params/process_params/RFIDParams';
103
102
  import { ImageQA } from './params/process_params/ImageQA';
104
- import { AuthenticityParams, AuthenticityCheckType } from './params/process_params/AuthenticityParams';
103
+ import { AuthenticityParams } from './params/process_params/AuthenticityParams';
105
104
  import { BackendProcessingConfig } from './params/process_params/BackendProcessingConfig';
106
105
  import { FaceApiSearchParams } from './params/process_params/FaceApiSearchParams';
107
- export { FilterObject, FilterObjectType, LivenessParams, LivenessCheckType, ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes, FilterCheckType, GlaresCheckParams, FaceApiParams, RFIDParams, ImageQA, AuthenticityParams, AuthenticityCheckType, BackendProcessingConfig, FaceApiSearchParams };
106
+ export { LivenessParams, ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes, GlaresCheckParams, FaceApiParams, RFIDParams, ImageQA, AuthenticityParams, BackendProcessingConfig, FaceApiSearchParams };
108
107
 
109
108
  import { Functionality, CameraPosition, CaptureMode, CameraMode, CaptureSessionPreset, DocReaderFrame, CameraSize } from './params/Functionality';
110
109
  export { Functionality, CameraPosition, CaptureMode, CameraMode, CaptureSessionPreset, DocReaderFrame, CameraSize };
@@ -1,6 +1,5 @@
1
1
  import { DocumentReader } from '../../index';
2
2
  import { LivenessParams } from './LivenessParams';
3
- import { FilterObject } from './FilterObject';
4
3
 
5
4
  export class AuthenticityParams {
6
5
  get useLivenessCheck() { return this._useLivenessCheck; }
@@ -96,28 +95,6 @@ export class AuthenticityParams {
96
95
  this._set({ "checkSecurityText": val });
97
96
  }
98
97
 
99
- _checkFilters = {};
100
-
101
- setCheckFilter(checkType, filter) {
102
- this._checkFilters[checkType] = filter;
103
- this._set({
104
- "setCheckFilter": {
105
- "checkType": checkType,
106
- "filterObject": filter.toJson(),
107
- },
108
- });
109
- }
110
-
111
- removeCheckFilter(checkType) {
112
- delete this._checkFilters[checkType];
113
- this._set({ "removeCheckFilter": checkType });
114
- }
115
-
116
- clearCheckFilter() {
117
- this._checkFilters = {};
118
- this._set({ "clearCheckFilter": '' });
119
- }
120
-
121
98
  static fromJson(jsonObject) {
122
99
  if (jsonObject == null) return new AuthenticityParams();
123
100
 
@@ -139,8 +116,6 @@ export class AuthenticityParams {
139
116
  result._checkPhotoComparison = jsonObject["checkPhotoComparison"];
140
117
  result._checkLetterScreen = jsonObject["checkLetterScreen"];
141
118
  result._checkSecurityText = jsonObject["checkSecurityText"];
142
- result._checkFilters = Object.fromEntries(Object.entries(jsonObject["checkFilters"] ?? {})
143
- .map(([k, v]) => [k, FilterObject.fromJson(v)]));
144
119
 
145
120
  return result;
146
121
  }
@@ -170,25 +145,6 @@ export class AuthenticityParams {
170
145
  "checkPhotoComparison": this.checkPhotoComparison,
171
146
  "checkLetterScreen": this.checkLetterScreen,
172
147
  "checkSecurityText": this.checkSecurityText,
173
- "checkFilters": Object.fromEntries(Object.entries(this._checkFilters).map(([k, v]) => [k, v.toJson()])),
174
148
  }
175
149
  }
176
150
  }
177
-
178
- export const AuthenticityCheckType = {
179
- USE_LIVENESS: "checkLiveness",
180
- UV_LUMINISCENCE: "checkUVLuminiscence",
181
- IR_B900: "checkIRB900",
182
- IMAGE_PATTERNS: "checkImagePatterns",
183
- FIBERS: "checkFibers",
184
- EXT_MRZ: "checkExtMRZ",
185
- EXT_OCR: "checkExtOCR",
186
- AXIAL: "checkAxial",
187
- BARCODE_FORMAT: "checkBarcodeFormat",
188
- IR_VISIBILITY: "checkIRVisibility",
189
- IPI: "checkIPI",
190
- PHOTO_EMBEDDING: "checkPhotoEmbedding",
191
- PHOTO_COMPARISON: "checkPhotoComparison",
192
- LETTER_SCREEN: "checkLetterScreen",
193
- SECURITY_TEXT: "checkSecurityText",
194
- };