@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.
- package/README.md +1 -1
- package/RNDocumentReader.podspec +2 -2
- package/android/build.gradle +2 -2
- package/android/cordova.gradle +2 -2
- package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +11 -31
- package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +338 -59
- package/android/src/main/java/com/regula/plugin/documentreader/Main.kt +69 -35
- package/android/src/main/java/com/regula/plugin/documentreader/Utils.kt +62 -0
- package/examples/capacitor/ios/App/App/Info.plist +2 -0
- package/examples/capacitor/package-lock.json +9 -9
- package/examples/capacitor/package.json +3 -3
- package/examples/ionic/config.xml +2 -0
- package/examples/ionic/package-lock.json +5262 -2655
- package/examples/ionic/package.json +12 -12
- package/examples/react_native/app.config.ts +3 -1
- package/examples/react_native/package-lock.json +37 -37
- package/examples/react_native/package.json +3 -3
- package/ios/RGLWConfig.m +11 -32
- package/ios/RGLWJSONConstructor.h +19 -1
- package/ios/RGLWJSONConstructor.m +349 -18
- package/ios/RGLWMain.m +49 -46
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/json.tsx +201 -124
- package/test/package-lock.json +1 -1
- package/test/test.tsx +12 -3
- package/www/capacitor/engagement/DataRetrieval.js +55 -0
- package/www/capacitor/engagement/DeviceEngagement.js +30 -0
- package/www/capacitor/engagement/DeviceRetrievalMethod.js +41 -0
- package/www/capacitor/engagement/DocumentRequestMDL.js +212 -0
- package/www/capacitor/engagement/NameSpaceMDL.js +33 -0
- package/www/capacitor/index.js +58 -7
- package/www/capacitor/info/DocReaderException.js +2 -0
- package/www/capacitor/params/Functionality.js +16 -0
- package/www/capacitor/params/customization/Customization.js +8 -0
- package/www/capacitor/params/process_params/AuthenticityParams.js +1 -44
- package/www/capacitor/params/process_params/LivenessParams.js +0 -36
- package/www/capacitor/params/process_params/ProcessParams.js +26 -30
- package/www/capacitor/results/Results.js +8 -1
- package/www/capacitor/results/status/AgeStatus.js +35 -0
- package/www/capacitor/results/status/ResultsStatus.js +13 -0
- package/www/capacitor/results/visible_digital_seals/DocFeature.js +23 -0
- package/www/capacitor/results/visible_digital_seals/VDSData.js +75 -0
- package/www/capacitor/results/visual_results/FieldType.js +3 -0
- package/www/capacitor/rfid/PKDCertificate.js +3 -0
- package/www/cordova.js +1276 -683
- package/www/react-native/engagement/DataRetrieval.js +55 -0
- package/www/react-native/engagement/DeviceEngagement.js +30 -0
- package/www/react-native/engagement/DeviceRetrievalMethod.js +41 -0
- package/www/react-native/engagement/DocumentRequestMDL.js +212 -0
- package/www/react-native/engagement/NameSpaceMDL.js +33 -0
- package/www/react-native/index.js +58 -7
- package/www/react-native/info/DocReaderException.js +2 -0
- package/www/react-native/params/Functionality.js +16 -0
- package/www/react-native/params/customization/Customization.js +8 -0
- package/www/react-native/params/process_params/AuthenticityParams.js +1 -44
- package/www/react-native/params/process_params/LivenessParams.js +0 -36
- package/www/react-native/params/process_params/ProcessParams.js +26 -30
- package/www/react-native/results/Results.js +8 -1
- package/www/react-native/results/status/AgeStatus.js +35 -0
- package/www/react-native/results/status/ResultsStatus.js +13 -0
- package/www/react-native/results/visible_digital_seals/DocFeature.js +23 -0
- package/www/react-native/results/visible_digital_seals/VDSData.js +75 -0
- package/www/react-native/results/visual_results/FieldType.js +3 -0
- package/www/react-native/rfid/PKDCertificate.js +3 -0
- package/www/types/engagement/DataRetrieval.d.ts +28 -0
- package/www/types/engagement/DeviceEngagement.d.ts +16 -0
- package/www/types/engagement/DeviceRetrievalMethod.d.ts +18 -0
- package/www/types/engagement/DocumentRequestMDL.d.ts +61 -0
- package/www/types/engagement/NameSpaceMDL.d.ts +16 -0
- package/www/types/index.d.ts +40 -8
- package/www/types/info/DocReaderException.d.ts +2 -0
- package/www/types/params/Functionality.d.ts +7 -0
- package/www/types/params/customization/Customization.d.ts +5 -0
- package/www/types/params/process_params/AuthenticityParams.d.ts +0 -25
- package/www/types/params/process_params/LivenessParams.d.ts +0 -18
- package/www/types/params/process_params/ProcessParams.d.ts +18 -11
- package/www/types/results/Results.d.ts +9 -1
- package/www/types/results/status/AgeStatus.d.ts +14 -0
- package/www/types/results/status/ResultsStatus.d.ts +9 -0
- package/www/types/results/visible_digital_seals/DocFeature.d.ts +9 -0
- package/www/types/results/visible_digital_seals/VDSData.d.ts +32 -0
- package/www/types/results/visible_digital_seals/VDSNCData.d.ts +1 -1
- package/www/types/results/visual_results/FieldType.d.ts +6 -0
- package/www/types/rfid/PKDCertificate.d.ts +7 -1
- package/www/capacitor/params/process_params/FilterObject.js +0 -60
- package/www/react-native/params/process_params/FilterObject.js +0 -60
- 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/
|
|
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
|
|
package/RNDocumentReader.podspec
CHANGED
|
@@ -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.
|
|
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 '
|
|
19
|
+
s.dependency 'DocumentReaderStage', '9.1.5701'
|
|
20
20
|
s.dependency 'React'
|
|
21
21
|
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/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.
|
|
32
|
+
implementation('com.regula.documentreader:api:8.4.12252'){
|
|
33
33
|
transitive = true
|
|
34
34
|
}
|
|
35
35
|
}
|
package/android/cordova.gradle
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
repositories {
|
|
2
2
|
maven {
|
|
3
|
-
url "https://maven.regulaforensics.com/RegulaDocumentReader/
|
|
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.
|
|
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.
|
|
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
|
|