@regulaforensics/react-native-document-reader-api 8.4.324-rc → 8.4.326-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/RNDocumentReaderApi.podspec +1 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +1 -31
- package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +0 -27
- package/android/src/main/java/com/regula/plugin/documentreader/Main.kt +0 -23
- package/example/package.json +2 -2
- package/index.d.ts +0 -83
- package/index.js +0 -73
- package/ios/RGLWConfig.m +0 -30
- package/ios/RGLWJSONConstructor.h +0 -1
- package/ios/RGLWJSONConstructor.m +0 -18
- package/ios/RGLWMain.m +0 -46
- 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 'DocumentReaderStage', '8.4.
|
|
17
|
+
s.dependency 'DocumentReaderStage', '8.4.5428'
|
|
18
18
|
s.dependency 'React'
|
|
19
19
|
end
|
package/android/build.gradle
CHANGED
|
@@ -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.12040') {
|
|
33
33
|
transitive = true
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -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
|
|
@@ -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? ->
|
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": "8.4.
|
|
14
|
-
"@regulaforensics/react-native-document-reader-core-fullauthrfid": "8.4.
|
|
13
|
+
"@regulaforensics/react-native-document-reader-api": "8.4.326-rc",
|
|
14
|
+
"@regulaforensics/react-native-document-reader-core-fullauthrfid": "8.4.1154-rc",
|
|
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
|
@@ -2884,45 +2884,6 @@ export class PrepareProgress {
|
|
|
2884
2884
|
}
|
|
2885
2885
|
}
|
|
2886
2886
|
|
|
2887
|
-
export class FilterObjectType {
|
|
2888
|
-
list?: any[]
|
|
2889
|
-
isInclude?: boolean
|
|
2890
|
-
|
|
2891
|
-
static fromJson(jsonObject?: any): FilterObjectType | undefined {
|
|
2892
|
-
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
2893
|
-
const result = new FilterObjectType
|
|
2894
|
-
|
|
2895
|
-
result.list = []
|
|
2896
|
-
if (jsonObject["list"] != null) {
|
|
2897
|
-
for (const i in jsonObject["list"]) {
|
|
2898
|
-
result.list.push(jsonObject["list"][i])
|
|
2899
|
-
}
|
|
2900
|
-
}
|
|
2901
|
-
result.isInclude = jsonObject["isInclude"]
|
|
2902
|
-
|
|
2903
|
-
return result
|
|
2904
|
-
}
|
|
2905
|
-
}
|
|
2906
|
-
|
|
2907
|
-
export class FilterObject {
|
|
2908
|
-
docIDsFilter?: FilterObjectType
|
|
2909
|
-
docFormatsFilter?: FilterObjectType
|
|
2910
|
-
docCategoriesFilter?: FilterObjectType
|
|
2911
|
-
docCountriesFilter?: FilterObjectType
|
|
2912
|
-
|
|
2913
|
-
static fromJson(jsonObject?: any): FilterObject | undefined {
|
|
2914
|
-
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
2915
|
-
const result = new FilterObject
|
|
2916
|
-
|
|
2917
|
-
result.docIDsFilter = FilterObjectType.fromJson(jsonObject["docIDsFilter"])
|
|
2918
|
-
result.docFormatsFilter = FilterObjectType.fromJson(jsonObject["docFormatsFilter"])
|
|
2919
|
-
result.docCategoriesFilter = FilterObjectType.fromJson(jsonObject["docCategoriesFilter"])
|
|
2920
|
-
result.docCountriesFilter = FilterObjectType.fromJson(jsonObject["docCountriesFilter"])
|
|
2921
|
-
|
|
2922
|
-
return result
|
|
2923
|
-
}
|
|
2924
|
-
}
|
|
2925
|
-
|
|
2926
2887
|
export const FontStyle = {
|
|
2927
2888
|
NORMAL: 0,
|
|
2928
2889
|
BOLD: 1,
|
|
@@ -3086,16 +3047,6 @@ export const eRFID_ErrorCodes = {
|
|
|
3086
3047
|
RFID_ERROR_LAYER34_SAM_ACKNOWLEDGE: 0x840F0000,
|
|
3087
3048
|
}
|
|
3088
3049
|
|
|
3089
|
-
export const LivenessCheckType = {
|
|
3090
|
-
OVI: "checkOVI",
|
|
3091
|
-
MLI: "checkMLI",
|
|
3092
|
-
HOLO: "checkHolo",
|
|
3093
|
-
ED: "checkED",
|
|
3094
|
-
BLACK_AND_WHITE_COPY: "checkBlackAndWhiteCopy",
|
|
3095
|
-
DYNAPRINT: "checkDynaprint",
|
|
3096
|
-
GEOMETRY: "checkGeometry",
|
|
3097
|
-
}
|
|
3098
|
-
|
|
3099
3050
|
export const eLDS_ParsingErrorCodes = {
|
|
3100
3051
|
ERR_LDS_OK: 0x00000001,
|
|
3101
3052
|
ERR_LDS_ASN_INCORRECT_DATA: 0x80000001,
|
|
@@ -3310,10 +3261,6 @@ export const LineCap = {
|
|
|
3310
3261
|
SQUARE: 2,
|
|
3311
3262
|
}
|
|
3312
3263
|
|
|
3313
|
-
export const FilterCheckType = {
|
|
3314
|
-
CHECK_AUTH: "checkAuth",
|
|
3315
|
-
}
|
|
3316
|
-
|
|
3317
3264
|
export const eRPRM_FieldVerificationResult = {
|
|
3318
3265
|
RCF_DISABLED: 0,
|
|
3319
3266
|
RCF_VERIFIED: 1,
|
|
@@ -4142,24 +4089,6 @@ export const eRFID_SDK_ProfilerType = {
|
|
|
4142
4089
|
SPT_DOC_9303_LDS_PKI_MAINTENANCE: 0x00000002,
|
|
4143
4090
|
}
|
|
4144
4091
|
|
|
4145
|
-
export const AuthenticityCheckType = {
|
|
4146
|
-
USE_LIVENESS: "checkLiveness",
|
|
4147
|
-
UV_LUMINISCENCE: "checkUVLuminiscence",
|
|
4148
|
-
IR_B900: "checkIRB900",
|
|
4149
|
-
IMAGE_PATTERNS: "checkImagePatterns",
|
|
4150
|
-
FIBERS: "checkFibers",
|
|
4151
|
-
EXT_MRZ: "checkExtMRZ",
|
|
4152
|
-
EXT_OCR: "checkExtOCR",
|
|
4153
|
-
AXIAL: "checkAxial",
|
|
4154
|
-
BARCODE_FORMAT: "checkBarcodeFormat",
|
|
4155
|
-
IR_VISIBILITY: "checkIRVisibility",
|
|
4156
|
-
IPI: "checkIPI",
|
|
4157
|
-
PHOTO_EMBEDDING: "checkPhotoEmbedding",
|
|
4158
|
-
PHOTO_COMPARISON: "checkPhotoComparison",
|
|
4159
|
-
LETTER_SCREEN: "checkLetterScreen++",
|
|
4160
|
-
SECURITY_TEXT: "checkSecurityText",
|
|
4161
|
-
}
|
|
4162
|
-
|
|
4163
4092
|
export const diDocType = {
|
|
4164
4093
|
dtNotDefined: 0,
|
|
4165
4094
|
dtPassport: 11,
|
|
@@ -5466,7 +5395,6 @@ export const Enum = {
|
|
|
5466
5395
|
eRPRM_Authenticity,
|
|
5467
5396
|
CustomizationColor,
|
|
5468
5397
|
eRFID_ErrorCodes,
|
|
5469
|
-
LivenessCheckType,
|
|
5470
5398
|
eLDS_ParsingErrorCodes,
|
|
5471
5399
|
eRFID_CertificateType,
|
|
5472
5400
|
RGLMeasureSystem,
|
|
@@ -5474,7 +5402,6 @@ export const Enum = {
|
|
|
5474
5402
|
FrameShapeType,
|
|
5475
5403
|
eRFID_BaudRate,
|
|
5476
5404
|
LineCap,
|
|
5477
|
-
FilterCheckType,
|
|
5478
5405
|
eRPRM_FieldVerificationResult,
|
|
5479
5406
|
DocReaderAction,
|
|
5480
5407
|
eProcessGLCommands,
|
|
@@ -5505,7 +5432,6 @@ export const Enum = {
|
|
|
5505
5432
|
eRPRM_SecurityFeatureType,
|
|
5506
5433
|
OnlineMode,
|
|
5507
5434
|
eRFID_SDK_ProfilerType,
|
|
5508
|
-
AuthenticityCheckType,
|
|
5509
5435
|
diDocType,
|
|
5510
5436
|
ButtonTag,
|
|
5511
5437
|
HoloAnimationType,
|
|
@@ -5589,13 +5515,4 @@ export default class DocumentReader {
|
|
|
5589
5515
|
static finalizePackage(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5590
5516
|
static endBackendTransaction(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5591
5517
|
static getTranslation(className: string, value: number, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5592
|
-
static processParamsSetCheckFilter(checkType: string, filter: FilterObject, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5593
|
-
static processParamsRemoveCheckFilter(checkType: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5594
|
-
static processParamsClearCheckFilter(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5595
|
-
static authenticityParamsSetCheckFilter(checkType: string, filter: FilterObject, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5596
|
-
static authenticityParamsRemoveCheckFilter(checkType: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5597
|
-
static authenticityParamsClearCheckFilter(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5598
|
-
static livenessParamsSetCheckFilter(checkType: string, filter: FilterObject, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5599
|
-
static livenessParamsRemoveCheckFilter(checkType: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5600
|
-
static livenessParamsClearCheckFilter(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
|
|
5601
5518
|
}
|
package/index.js
CHANGED
|
@@ -1876,35 +1876,6 @@ export class PrepareProgress {
|
|
|
1876
1876
|
}
|
|
1877
1877
|
}
|
|
1878
1878
|
|
|
1879
|
-
export class FilterObjectType {
|
|
1880
|
-
static fromJson(jsonObject) {
|
|
1881
|
-
if (jsonObject == null) return null
|
|
1882
|
-
const result = new FilterObjectType()
|
|
1883
|
-
|
|
1884
|
-
result.list = []
|
|
1885
|
-
if (jsonObject["list"] != null)
|
|
1886
|
-
for (const i in jsonObject["list"])
|
|
1887
|
-
result.list.push(jsonObject["list"][i])
|
|
1888
|
-
result.isInclude = jsonObject["isInclude"]
|
|
1889
|
-
|
|
1890
|
-
return result
|
|
1891
|
-
}
|
|
1892
|
-
}
|
|
1893
|
-
|
|
1894
|
-
export class FilterObject {
|
|
1895
|
-
static fromJson(jsonObject) {
|
|
1896
|
-
if (jsonObject == null) return null
|
|
1897
|
-
const result = new FilterObject()
|
|
1898
|
-
|
|
1899
|
-
result.docIDsFilter = FilterObjectType.fromJson(jsonObject["docIDsFilter"])
|
|
1900
|
-
result.docFormatsFilter = FilterObjectType.fromJson(jsonObject["docFormatsFilter"])
|
|
1901
|
-
result.docCategoriesFilter = FilterObjectType.fromJson(jsonObject["docCategoriesFilter"])
|
|
1902
|
-
result.docCountriesFilter = FilterObjectType.fromJson(jsonObject["docCountriesFilter"])
|
|
1903
|
-
|
|
1904
|
-
return result
|
|
1905
|
-
}
|
|
1906
|
-
}
|
|
1907
|
-
|
|
1908
1879
|
// Enum
|
|
1909
1880
|
|
|
1910
1881
|
export const FontStyle = {
|
|
@@ -2070,16 +2041,6 @@ export const eRFID_ErrorCodes = {
|
|
|
2070
2041
|
RFID_ERROR_LAYER34_SAM_ACKNOWLEDGE: 0x840F0000,
|
|
2071
2042
|
}
|
|
2072
2043
|
|
|
2073
|
-
export const LivenessCheckType = {
|
|
2074
|
-
OVI: "checkOVI",
|
|
2075
|
-
MLI: "checkMLI",
|
|
2076
|
-
HOLO: "checkHolo",
|
|
2077
|
-
ED: "checkED",
|
|
2078
|
-
BLACK_AND_WHITE_COPY: "checkBlackAndWhiteCopy",
|
|
2079
|
-
DYNAPRINT: "checkDynaprint",
|
|
2080
|
-
GEOMETRY: "checkGeometry",
|
|
2081
|
-
}
|
|
2082
|
-
|
|
2083
2044
|
export const eLDS_ParsingErrorCodes = {
|
|
2084
2045
|
ERR_LDS_OK: 0x00000001,
|
|
2085
2046
|
ERR_LDS_ASN_INCORRECT_DATA: 0x80000001,
|
|
@@ -2294,10 +2255,6 @@ export const LineCap = {
|
|
|
2294
2255
|
SQUARE: 2,
|
|
2295
2256
|
}
|
|
2296
2257
|
|
|
2297
|
-
export const FilterCheckType = {
|
|
2298
|
-
CHECK_AUTH: "checkAuth",
|
|
2299
|
-
}
|
|
2300
|
-
|
|
2301
2258
|
export const eRPRM_FieldVerificationResult = {
|
|
2302
2259
|
RCF_DISABLED: 0,
|
|
2303
2260
|
RCF_VERIFIED: 1,
|
|
@@ -3126,24 +3083,6 @@ export const eRFID_SDK_ProfilerType = {
|
|
|
3126
3083
|
SPT_DOC_9303_LDS_PKI_MAINTENANCE: 0x00000002,
|
|
3127
3084
|
}
|
|
3128
3085
|
|
|
3129
|
-
export const AuthenticityCheckType = {
|
|
3130
|
-
USE_LIVENESS: "checkLiveness",
|
|
3131
|
-
UV_LUMINISCENCE: "checkUVLuminiscence",
|
|
3132
|
-
IR_B900: "checkIRB900",
|
|
3133
|
-
IMAGE_PATTERNS: "checkImagePatterns",
|
|
3134
|
-
FIBERS: "checkFibers",
|
|
3135
|
-
EXT_MRZ: "checkExtMRZ",
|
|
3136
|
-
EXT_OCR: "checkExtOCR",
|
|
3137
|
-
AXIAL: "checkAxial",
|
|
3138
|
-
BARCODE_FORMAT: "checkBarcodeFormat",
|
|
3139
|
-
IR_VISIBILITY: "checkIRVisibility",
|
|
3140
|
-
IPI: "checkIPI",
|
|
3141
|
-
PHOTO_EMBEDDING: "checkPhotoEmbedding",
|
|
3142
|
-
PHOTO_COMPARISON: "checkPhotoComparison",
|
|
3143
|
-
LETTER_SCREEN: "checkLetterScreen++",
|
|
3144
|
-
SECURITY_TEXT: "checkSecurityText",
|
|
3145
|
-
}
|
|
3146
|
-
|
|
3147
3086
|
export const diDocType = {
|
|
3148
3087
|
dtNotDefined: 0,
|
|
3149
3088
|
dtPassport: 11,
|
|
@@ -4450,7 +4389,6 @@ export const Enum = {
|
|
|
4450
4389
|
eRPRM_Authenticity,
|
|
4451
4390
|
CustomizationColor,
|
|
4452
4391
|
eRFID_ErrorCodes,
|
|
4453
|
-
LivenessCheckType,
|
|
4454
4392
|
eLDS_ParsingErrorCodes,
|
|
4455
4393
|
eRFID_CertificateType,
|
|
4456
4394
|
RGLMeasureSystem,
|
|
@@ -4458,7 +4396,6 @@ export const Enum = {
|
|
|
4458
4396
|
FrameShapeType,
|
|
4459
4397
|
eRFID_BaudRate,
|
|
4460
4398
|
LineCap,
|
|
4461
|
-
FilterCheckType,
|
|
4462
4399
|
eRPRM_FieldVerificationResult,
|
|
4463
4400
|
DocReaderAction,
|
|
4464
4401
|
eProcessGLCommands,
|
|
@@ -4489,7 +4426,6 @@ export const Enum = {
|
|
|
4489
4426
|
eRPRM_SecurityFeatureType,
|
|
4490
4427
|
OnlineMode,
|
|
4491
4428
|
eRFID_SDK_ProfilerType,
|
|
4492
|
-
AuthenticityCheckType,
|
|
4493
4429
|
diDocType,
|
|
4494
4430
|
ButtonTag,
|
|
4495
4431
|
HoloAnimationType,
|
|
@@ -4574,14 +4510,5 @@ DocumentReader.getDocReaderDocumentsDatabase = (successCallback, errorCallback)
|
|
|
4574
4510
|
DocumentReader.finalizePackage = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "finalizePackage", [], successCallback, errorCallback)
|
|
4575
4511
|
DocumentReader.endBackendTransaction = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "endBackendTransaction", [], successCallback, errorCallback)
|
|
4576
4512
|
DocumentReader.getTranslation = (className, value, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getTranslation", [className, value], successCallback, errorCallback)
|
|
4577
|
-
DocumentReader.processParamsSetCheckFilter = (checkType, filter, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "processParamsSetCheckFilter", [checkType, filter], successCallback, errorCallback)
|
|
4578
|
-
DocumentReader.processParamsRemoveCheckFilter = (checkType, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "processParamsRemoveCheckFilter", [checkType], successCallback, errorCallback)
|
|
4579
|
-
DocumentReader.processParamsClearCheckFilter = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "processParamsClearCheckFilter", [], successCallback, errorCallback)
|
|
4580
|
-
DocumentReader.authenticityParamsSetCheckFilter = (checkType, filter, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "authenticityParamsSetCheckFilter", [checkType, filter], successCallback, errorCallback)
|
|
4581
|
-
DocumentReader.authenticityParamsRemoveCheckFilter = (checkType, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "authenticityParamsRemoveCheckFilter", [checkType], successCallback, errorCallback)
|
|
4582
|
-
DocumentReader.authenticityParamsClearCheckFilter = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "authenticityParamsClearCheckFilter", [], successCallback, errorCallback)
|
|
4583
|
-
DocumentReader.livenessParamsSetCheckFilter = (checkType, filter, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "livenessParamsSetCheckFilter", [checkType, filter], successCallback, errorCallback)
|
|
4584
|
-
DocumentReader.livenessParamsRemoveCheckFilter = (checkType, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "livenessParamsRemoveCheckFilter", [checkType], successCallback, errorCallback)
|
|
4585
|
-
DocumentReader.livenessParamsClearCheckFilter = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "livenessParamsClearCheckFilter", [], successCallback, errorCallback)
|
|
4586
4513
|
|
|
4587
4514
|
export default DocumentReader
|
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