@regulaforensics/document-reader 8.4.401-beta → 8.4.507-rc

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 (88) hide show
  1. package/README.md +1 -1
  2. package/RNDocumentReader.podspec +2 -2
  3. package/android/build.gradle +2 -2
  4. package/android/cordova.gradle +2 -2
  5. package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +11 -31
  6. package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +338 -59
  7. package/android/src/main/java/com/regula/plugin/documentreader/Main.kt +69 -35
  8. package/android/src/main/java/com/regula/plugin/documentreader/Utils.kt +62 -0
  9. package/examples/capacitor/ios/App/App/Info.plist +2 -0
  10. package/examples/capacitor/package-lock.json +9 -9
  11. package/examples/capacitor/package.json +3 -3
  12. package/examples/ionic/config.xml +2 -0
  13. package/examples/ionic/package-lock.json +5262 -2655
  14. package/examples/ionic/package.json +12 -12
  15. package/examples/react_native/app.config.ts +3 -1
  16. package/examples/react_native/package-lock.json +37 -37
  17. package/examples/react_native/package.json +3 -3
  18. package/ios/RGLWConfig.m +11 -32
  19. package/ios/RGLWJSONConstructor.h +19 -1
  20. package/ios/RGLWJSONConstructor.m +349 -18
  21. package/ios/RGLWMain.m +49 -46
  22. package/package.json +1 -1
  23. package/plugin.xml +2 -2
  24. package/test/json.tsx +201 -124
  25. package/test/package-lock.json +1 -1
  26. package/test/test.tsx +12 -3
  27. package/www/capacitor/engagement/DataRetrieval.js +55 -0
  28. package/www/capacitor/engagement/DeviceEngagement.js +30 -0
  29. package/www/capacitor/engagement/DeviceRetrievalMethod.js +41 -0
  30. package/www/capacitor/engagement/DocumentRequestMDL.js +212 -0
  31. package/www/capacitor/engagement/NameSpaceMDL.js +33 -0
  32. package/www/capacitor/index.js +58 -7
  33. package/www/capacitor/info/DocReaderException.js +2 -0
  34. package/www/capacitor/params/Functionality.js +16 -0
  35. package/www/capacitor/params/customization/Customization.js +8 -0
  36. package/www/capacitor/params/process_params/AuthenticityParams.js +1 -44
  37. package/www/capacitor/params/process_params/LivenessParams.js +0 -36
  38. package/www/capacitor/params/process_params/ProcessParams.js +26 -30
  39. package/www/capacitor/results/Results.js +8 -1
  40. package/www/capacitor/results/status/AgeStatus.js +35 -0
  41. package/www/capacitor/results/status/ResultsStatus.js +13 -0
  42. package/www/capacitor/results/visible_digital_seals/DocFeature.js +23 -0
  43. package/www/capacitor/results/visible_digital_seals/VDSData.js +75 -0
  44. package/www/capacitor/results/visual_results/FieldType.js +3 -0
  45. package/www/capacitor/rfid/PKDCertificate.js +3 -0
  46. package/www/cordova.js +1276 -683
  47. package/www/react-native/engagement/DataRetrieval.js +55 -0
  48. package/www/react-native/engagement/DeviceEngagement.js +30 -0
  49. package/www/react-native/engagement/DeviceRetrievalMethod.js +41 -0
  50. package/www/react-native/engagement/DocumentRequestMDL.js +212 -0
  51. package/www/react-native/engagement/NameSpaceMDL.js +33 -0
  52. package/www/react-native/index.js +58 -7
  53. package/www/react-native/info/DocReaderException.js +2 -0
  54. package/www/react-native/params/Functionality.js +16 -0
  55. package/www/react-native/params/customization/Customization.js +8 -0
  56. package/www/react-native/params/process_params/AuthenticityParams.js +1 -44
  57. package/www/react-native/params/process_params/LivenessParams.js +0 -36
  58. package/www/react-native/params/process_params/ProcessParams.js +26 -30
  59. package/www/react-native/results/Results.js +8 -1
  60. package/www/react-native/results/status/AgeStatus.js +35 -0
  61. package/www/react-native/results/status/ResultsStatus.js +13 -0
  62. package/www/react-native/results/visible_digital_seals/DocFeature.js +23 -0
  63. package/www/react-native/results/visible_digital_seals/VDSData.js +75 -0
  64. package/www/react-native/results/visual_results/FieldType.js +3 -0
  65. package/www/react-native/rfid/PKDCertificate.js +3 -0
  66. package/www/types/engagement/DataRetrieval.d.ts +28 -0
  67. package/www/types/engagement/DeviceEngagement.d.ts +16 -0
  68. package/www/types/engagement/DeviceRetrievalMethod.d.ts +18 -0
  69. package/www/types/engagement/DocumentRequestMDL.d.ts +61 -0
  70. package/www/types/engagement/NameSpaceMDL.d.ts +16 -0
  71. package/www/types/index.d.ts +40 -8
  72. package/www/types/info/DocReaderException.d.ts +2 -0
  73. package/www/types/params/Functionality.d.ts +7 -0
  74. package/www/types/params/customization/Customization.d.ts +5 -0
  75. package/www/types/params/process_params/AuthenticityParams.d.ts +0 -25
  76. package/www/types/params/process_params/LivenessParams.d.ts +0 -18
  77. package/www/types/params/process_params/ProcessParams.d.ts +18 -11
  78. package/www/types/results/Results.d.ts +9 -1
  79. package/www/types/results/status/AgeStatus.d.ts +14 -0
  80. package/www/types/results/status/ResultsStatus.d.ts +9 -0
  81. package/www/types/results/visible_digital_seals/DocFeature.d.ts +9 -0
  82. package/www/types/results/visible_digital_seals/VDSData.d.ts +32 -0
  83. package/www/types/results/visible_digital_seals/VDSNCData.d.ts +1 -1
  84. package/www/types/results/visual_results/FieldType.d.ts +6 -0
  85. package/www/types/rfid/PKDCertificate.d.ts +7 -1
  86. package/www/capacitor/params/process_params/FilterObject.js +0 -60
  87. package/www/react-native/params/process_params/FilterObject.js +0 -60
  88. package/www/types/params/process_params/FilterObject.d.ts +0 -32
package/README.md CHANGED
@@ -3,7 +3,7 @@ Document Reader allows you to read various kinds of identification documents, pa
3
3
 
4
4
  ## Demo applications
5
5
  In the [examples](examples/) folder you can find 3 demo applications:
6
- * [React-native](examples/react-native)
6
+ * [React-native](examples/react_native)
7
7
  * [Ionic(ionic app with cordova, angular)](examples/ionic)
8
8
  * [Capacitor(ionic app with capacitor, react)](examples/capacitor)
9
9
 
@@ -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 = '8.4.401-beta'
8
+ s.version = '8.4.507-rc'
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 'DocumentReaderBeta', '8.4.5314'
19
+ s.dependency 'DocumentReaderStage', '9.1.5701'
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/Beta"
23
+ url "https://maven.regulaforensics.com/RegulaDocumentReader/Stage"
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.11989'){
32
+ implementation('com.regula.documentreader:api:8.4.12252'){
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/Beta"
3
+ url "https://maven.regulaforensics.com/RegulaDocumentReader/Stage"
4
4
  }
5
5
  }
6
6
 
7
7
  dependencies {
8
8
  //noinspection GradleDependency
9
- implementation('com.regula.documentreader:api:8.4.11989'){
9
+ implementation('com.regula.documentreader:api:8.4.12252'){
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
@@ -60,6 +60,7 @@ fun setFunctionality(config: Functionality, input: JSONObject) = input.forEach {
60
60
  "zoomFactor" -> editor.setZoomFactor(v.toFloat())
61
61
  "exposure" -> editor.setExposure(v.toFloat())
62
62
  "videoRecordingSizeDownscaleFactor" -> editor.setVideoRecordingSizeDownscaleFactor(v.toFloat())
63
+ "mdlTimeout" -> editor.setMDLTimeout(v.toDouble())
63
64
  "excludedCamera2Models" -> editor.setExcludedCamera2Models((v as JSONArray).toList())
64
65
  "cameraSize" -> editor.setCameraSize(cameraSizeFromJSON(v as JSONObject).first, cameraSizeFromJSON(v).second)
65
66
  }
@@ -96,6 +97,7 @@ fun getFunctionality(input: Functionality) = mapOf(
96
97
  "zoomFactor" to input.zoomFactor,
97
98
  "exposure" to input.exposure,
98
99
  "videoRecordingSizeDownscaleFactor" to input.videoRecordingSizeDownscaleFactor,
100
+ "mdlTimeout" to input.mdlTimeout,
99
101
  "excludedCamera2Models" to input.excludedCamera2Models.toJson(),
100
102
  "cameraSize" to generateCameraSize(input.cameraWidth, input.cameraHeight)
101
103
  ).toJson()
@@ -143,6 +145,8 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
143
145
  "generateAlpha2Codes" -> processParams.generateAlpha2Codes = v as Boolean
144
146
  "disableAuthResolutionFilter" -> processParams.disableAuthResolutionFilter = v as Boolean
145
147
  "strictSecurityChecks" -> processParams.strictSecurityChecks = v as Boolean
148
+ "returnTransliteratedFields" -> processParams.returnTransliteratedFields = v as Boolean
149
+ "checkCaptureProcessIntegrity" -> processParams.checkCaptureProcessIntegrity = v as Boolean
146
150
  "measureSystem" -> processParams.measureSystem = v.toInt()
147
151
  "barcodeParserType" -> processParams.barcodeParserType = v.toInt()
148
152
  "perspectiveAngle" -> processParams.perspectiveAngle = v.toInt()
@@ -173,6 +177,7 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
173
177
  "documentGroupFilter" -> processParams.documentGroupFilter = v.toIntArray()
174
178
  "lcidIgnoreFilter" -> processParams.lcidIgnoreFilter = v.toIntArray()
175
179
  "lcidFilter" -> processParams.lcidFilter = v.toIntArray()
180
+ "fieldTypesIgnoreFilter" -> processParams.fieldTypesIgnoreFilter = v.toIntArray()
176
181
  "barcodeTypes" -> processParams.doBarcodes = barcodeTypeArrayFromJson(v as JSONArray)
177
182
  "mrzFormatsFilter" -> processParams.mrzFormatsFilter = (v as JSONArray).toArray()
178
183
  "customParams" -> processParams.customParams = v as JSONObject
@@ -184,16 +189,6 @@ fun setProcessParams(processParams: ProcessParam, opts: JSONObject) = opts.forEa
184
189
  if (processParams.authenticityParams == null) processParams.authenticityParams = AuthenticityParams.defaultParams()
185
190
  setAuthenticityParams(processParams.authenticityParams!!, v as JSONObject)
186
191
  }
187
-
188
- "setCheckFilter" -> processParams.setCheckFilter((v as JSONObject).getString("checkType"), filterObjectFromJSON(v.getJSONObject("filterObject")))
189
- "removeCheckFilter" -> processParams.removeCheckFilter(v as String)
190
- "clearCheckFilter" -> processParams.clearCheckFilter()
191
- "checkFilters" -> {
192
- processParams.clearCheckFilter()
193
- (v as JSONObject).forEach { key, value ->
194
- processParams.setCheckFilter(key, filterObjectFromJSON(value as JSONObject))
195
- }
196
- }
197
192
  }
198
193
  }
199
194
 
@@ -239,6 +234,8 @@ fun getProcessParams(processParams: ProcessParam) = mapOf(
239
234
  "generateAlpha2Codes" to processParams.generateAlpha2Codes,
240
235
  "disableAuthResolutionFilter" to processParams.disableAuthResolutionFilter,
241
236
  "strictSecurityChecks" to processParams.strictSecurityChecks,
237
+ "returnTransliteratedFields" to processParams.returnTransliteratedFields,
238
+ "checkCaptureProcessIntegrity" to processParams.checkCaptureProcessIntegrity,
242
239
  "measureSystem" to processParams.measureSystem,
243
240
  "barcodeParserType" to processParams.barcodeParserType,
244
241
  "perspectiveAngle" to processParams.perspectiveAngle,
@@ -268,6 +265,7 @@ fun getProcessParams(processParams: ProcessParam) = mapOf(
268
265
  "documentGroupFilter" to processParams.documentGroupFilter.toJson(),
269
266
  "lcidIgnoreFilter" to processParams.lcidIgnoreFilter.toJson(),
270
267
  "lcidFilter" to processParams.lcidFilter.toJson(),
268
+ "fieldTypesIgnoreFilter" to processParams.fieldTypesIgnoreFilter.toJson(),
271
269
  "resultTypeOutput" to processParams.resultTypeOutput.toJson(),
272
270
  "mrzFormatsFilter" to processParams.mrzFormatsFilter.toJson(),
273
271
  "barcodeTypes" to generateBarcodeTypeArray(processParams.doBarcodes),
@@ -322,6 +320,7 @@ fun setCustomization(customization: ParamsCustomization, opts: JSONObject) = opt
322
320
  "activityIndicatorPortraitPositionMultiplier" -> editor.setActivityIndicatorPortraitPositionMultiplier(v.toFloat())
323
321
  "activityIndicatorLandscapePositionMultiplier" -> editor.setActivityIndicatorLandscapePositionMultiplier(v.toFloat())
324
322
  "cameraPreviewVerticalPositionMultiplier" -> editor.setCameraPreviewVerticalPositionMultiplier(v.toFloat())
323
+ "multipageButtonPositionMultiplier" -> editor.setMultipageButtonPositionMultiplier(v.toFloat())
325
324
  "multipageAnimationFrontImage" -> editor.setMultipageAnimationFrontImage(v.toDrawable())
326
325
  "multipageAnimationBackImage" -> editor.setMultipageAnimationBackImage(v.toDrawable())
327
326
  "borderBackgroundImage" -> editor.setBorderBackgroundImage(v.toDrawable())
@@ -408,6 +407,7 @@ fun getCustomization(customization: ParamsCustomization) = mapOf(
408
407
  "activityIndicatorPortraitPositionMultiplier" to customization.activityIndicatorPortraitPositionMultiplier,
409
408
  "activityIndicatorLandscapePositionMultiplier" to customization.activityIndicatorLandscapePositionMultiplier,
410
409
  "cameraPreviewVerticalPositionMultiplier" to customization.cameraPreviewVerticalPositionMultiplier,
410
+ "multipageButtonPositionMultiplier" to customization.multipageButtonPositionMultiplier,
411
411
  "multipageAnimationFrontImage" to customization.multipageAnimationFrontImage.toBase64(),
412
412
  "multipageAnimationBackImage" to customization.multipageAnimationBackImage.toBase64(),
413
413
  "borderBackgroundImage" to customization.borderBackgroundImage.toBase64(),
@@ -705,16 +705,6 @@ fun setAuthenticityParams(input: AuthenticityParams, opts: JSONObject) = opts.fo
705
705
  if (input.livenessParams == null) input.livenessParams = LivenessParams.defaultParams()
706
706
  setLivenessParams(input.livenessParams!!, v as JSONObject)
707
707
  }
708
-
709
- "setCheckFilter" -> input.setCheckFilter((v as JSONObject).getString("checkType"), filterObjectFromJSON(v.getJSONObject("filterObject")))
710
- "removeCheckFilter" -> input.removeCheckFilter(v as String)
711
- "clearCheckFilter" -> input.clearCheckFilter()
712
- "checkFilters" -> {
713
- input.clearCheckFilter()
714
- (v as JSONObject).forEach { key, value ->
715
- input.setCheckFilter(key, filterObjectFromJSON(value as JSONObject))
716
- }
717
- }
718
708
  }
719
709
  }
720
710
 
@@ -748,16 +738,6 @@ fun setLivenessParams(input: LivenessParams, opts: JSONObject) = opts.forEach {
748
738
  "checkBlackAndWhiteCopy" -> input.checkBlackAndWhiteCopy = v as Boolean
749
739
  "checkDynaprint" -> input.checkDynaprint = v as Boolean
750
740
  "checkGeometry" -> input.checkGeometry = v as Boolean
751
-
752
- "setCheckFilter" -> input.setCheckFilter((v as JSONObject).getString("checkType"), filterObjectFromJSON(v.getJSONObject("filterObject")))
753
- "removeCheckFilter" -> input.removeCheckFilter(v as String)
754
- "clearCheckFilter" -> input.clearCheckFilter()
755
- "checkFilters" -> {
756
- input.clearCheckFilter()
757
- (v as JSONObject).forEach { key, value ->
758
- input.setCheckFilter(key, filterObjectFromJSON(value as JSONObject))
759
- }
760
- }
761
741
  }
762
742
  }
763
743