@regulaforensics/react-native-document-reader-api 9.8.754-rc → 9.8.756-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.
- package/RNDocumentReaderApi.podspec +1 -1
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +2 -0
- package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +13 -0
- package/example/package.json +2 -2
- package/index.d.ts +38 -2
- package/index.js +35 -2
- package/ios/RGLWConfig.m +3 -0
- package/ios/RGLWJSONConstructor.h +2 -0
- package/ios/RGLWJSONConstructor.m +19 -0
- package/ios/RGLWMain.h +1 -2
- package/ios/RGLWMain.m +1 -1
- 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 '
|
|
17
|
+
s.dependency 'DocumentReaderNightly', '9.8.6895'
|
|
18
18
|
s.dependency 'React'
|
|
19
19
|
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/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:9.8.
|
|
32
|
+
implementation('com.regula.documentreader:api:9.8.13294') {
|
|
33
33
|
transitive = true
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -685,6 +685,7 @@ fun setImageQA(input: ImageQA, opts: JSONObject) = opts.forEach { k, v ->
|
|
|
685
685
|
"expectedPass" -> input.expectedPass = v.toIntArray()
|
|
686
686
|
"glaresCheckParams" -> input.glaresCheckParams = glaresCheckParamsFromJSON(v as JSONObject)
|
|
687
687
|
"occlusionCheck" -> input.occlusionCheck = v as Boolean
|
|
688
|
+
"occlusionCheckParams" -> input.occlusionCheckParams = occlusionCheckParamsFromJSON(v as JSONObject)
|
|
688
689
|
}
|
|
689
690
|
}
|
|
690
691
|
|
|
@@ -700,6 +701,7 @@ fun getImageQA(input: ImageQA) = mapOf(
|
|
|
700
701
|
"expectedPass" to input.expectedPass.toJson(),
|
|
701
702
|
"glaresCheckParams" to generateGlaresCheckParams(input.glaresCheckParams),
|
|
702
703
|
"occlusionCheck" to input.occlusionCheck,
|
|
704
|
+
"occlusionCheckParams" to generateOcclusionCheckParams(input.occlusionCheckParams),
|
|
703
705
|
).toJson()
|
|
704
706
|
|
|
705
707
|
fun setAuthenticityParams(input: AuthenticityParams, opts: JSONObject) = opts.forEach { k, v ->
|
|
@@ -38,6 +38,7 @@ import com.regula.documentreader.api.params.ImageInputData
|
|
|
38
38
|
import com.regula.documentreader.api.params.ImageQA
|
|
39
39
|
import com.regula.documentreader.api.params.ImageQA.GlaresCheckParams
|
|
40
40
|
import com.regula.documentreader.api.params.LivenessParams
|
|
41
|
+
import com.regula.documentreader.api.params.OcclusionCheckParams
|
|
41
42
|
import com.regula.documentreader.api.params.OnlineProcessingConfig
|
|
42
43
|
import com.regula.documentreader.api.params.ParamsCustomization
|
|
43
44
|
import com.regula.documentreader.api.params.ProcessParam
|
|
@@ -545,6 +546,18 @@ fun generateGlaresCheckParams(input: GlaresCheckParams?) = input?.let {
|
|
|
545
546
|
).toJson()
|
|
546
547
|
}
|
|
547
548
|
|
|
549
|
+
fun occlusionCheckParamsFromJSON(input: JSONObject?) = input?.let {
|
|
550
|
+
val result = OcclusionCheckParams()
|
|
551
|
+
if (it.has("maxOcclusionPart")) result.maxOcclusionPart = it.getDouble("maxOcclusionPart")
|
|
552
|
+
result
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
fun generateOcclusionCheckParams(input: OcclusionCheckParams?) = input?.let {
|
|
556
|
+
mapOf(
|
|
557
|
+
"maxOcclusionPart" to it.maxOcclusionPart,
|
|
558
|
+
).toJson()
|
|
559
|
+
}
|
|
560
|
+
|
|
548
561
|
@SuppressLint("DiscouragedApi")
|
|
549
562
|
fun typefaceFromJSON(it: JSONObject): Pair<Typeface?, Int?> {
|
|
550
563
|
val font = try {
|
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": "9.8.
|
|
14
|
-
"@regulaforensics/react-native-document-reader-core-fullauthrfid": "9.8.
|
|
13
|
+
"@regulaforensics/react-native-document-reader-api": "9.8.756-nightly",
|
|
14
|
+
"@regulaforensics/react-native-document-reader-core-fullauthrfid": "9.8.3240-nightly",
|
|
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
|
@@ -2028,12 +2028,26 @@ export class GlaresCheckParams {
|
|
|
2028
2028
|
}
|
|
2029
2029
|
}
|
|
2030
2030
|
|
|
2031
|
+
export class OcclusionCheckParams {
|
|
2032
|
+
maxOcclusionPart?: number
|
|
2033
|
+
|
|
2034
|
+
static fromJson(jsonObject?: any): OcclusionCheckParams | undefined {
|
|
2035
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
2036
|
+
const result = new OcclusionCheckParams
|
|
2037
|
+
|
|
2038
|
+
result.maxOcclusionPart = jsonObject["maxOcclusionPart"]
|
|
2039
|
+
|
|
2040
|
+
return result
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2031
2044
|
export class ImageQA {
|
|
2032
2045
|
dpiThreshold?: number
|
|
2033
2046
|
angleThreshold?: number
|
|
2034
2047
|
focusCheck?: boolean
|
|
2035
2048
|
glaresCheck?: boolean
|
|
2036
2049
|
glaresCheckParams?: GlaresCheckParams
|
|
2050
|
+
occlusionCheckParams?: OcclusionCheckParams
|
|
2037
2051
|
colornessCheck?: boolean
|
|
2038
2052
|
screenCapture?: boolean
|
|
2039
2053
|
expectedPass?: number[]
|
|
@@ -2050,6 +2064,7 @@ export class ImageQA {
|
|
|
2050
2064
|
result.focusCheck = jsonObject["focusCheck"]
|
|
2051
2065
|
result.glaresCheck = jsonObject["glaresCheck"]
|
|
2052
2066
|
result.glaresCheckParams = GlaresCheckParams.fromJson(jsonObject["glaresCheckParams"])
|
|
2067
|
+
result.occlusionCheckParams = OcclusionCheckParams.fromJson(jsonObject["occlusionCheckParams"])
|
|
2053
2068
|
result.colornessCheck = jsonObject["colornessCheck"]
|
|
2054
2069
|
result.screenCapture = jsonObject["screenCapture"]
|
|
2055
2070
|
result.expectedPass = []
|
|
@@ -3869,6 +3884,11 @@ export const eRPRM_ResultType = {
|
|
|
3869
3884
|
RPRM_RESULT_TYPE_BSI_XML_V2: 73,
|
|
3870
3885
|
}
|
|
3871
3886
|
|
|
3887
|
+
export const CameraTypes = {
|
|
3888
|
+
FRONT: "front",
|
|
3889
|
+
BACK: "back",
|
|
3890
|
+
}
|
|
3891
|
+
|
|
3872
3892
|
export const FrameShapeType = {
|
|
3873
3893
|
LINE: 0,
|
|
3874
3894
|
CORNER: 1,
|
|
@@ -3889,6 +3909,9 @@ export const eRFID_BaudRate = {
|
|
|
3889
3909
|
rfbr_212: 2,
|
|
3890
3910
|
rfbr_424: 4,
|
|
3891
3911
|
rfbr_848: 8,
|
|
3912
|
+
rfbr_1695: 0x10,
|
|
3913
|
+
rfbr_3390: 0x20,
|
|
3914
|
+
rfbr_6780: 0x40,
|
|
3892
3915
|
}
|
|
3893
3916
|
|
|
3894
3917
|
export const LineCap = {
|
|
@@ -3914,7 +3937,6 @@ export const DocReaderAction = {
|
|
|
3914
3937
|
PROCESS_WHITE_FLASHLIGHT: 5,
|
|
3915
3938
|
TIMEOUT: 6,
|
|
3916
3939
|
PROCESSING_ON_SERVICE: 7,
|
|
3917
|
-
NOTIFICATION: 101,
|
|
3918
3940
|
PROCESS_WHITE_UV_IMAGES: 102,
|
|
3919
3941
|
PROCESS_IR_FRAME: 103,
|
|
3920
3942
|
}
|
|
@@ -3937,8 +3959,8 @@ export const eProcessGLCommands = {
|
|
|
3937
3959
|
}
|
|
3938
3960
|
|
|
3939
3961
|
export const eRFIDReadingBufferSize = {
|
|
3940
|
-
STANDARD_LENGTH: 0,
|
|
3941
3962
|
EXTENDED_LENGTH: -1,
|
|
3963
|
+
STANDARD_LENGTH: 0,
|
|
3942
3964
|
}
|
|
3943
3965
|
|
|
3944
3966
|
export const PKDResourceType = {
|
|
@@ -3985,6 +4007,13 @@ export const eRFID_AuthenticationProcedureType = {
|
|
|
3985
4007
|
aptGeneral: 3,
|
|
3986
4008
|
}
|
|
3987
4009
|
|
|
4010
|
+
export const eRFID_AccessControl = {
|
|
4011
|
+
acDefault : 0,
|
|
4012
|
+
acChipAccess_BAC : 1,
|
|
4013
|
+
acChipAccess_PACE : 2,
|
|
4014
|
+
acLocal_PIN : 3,
|
|
4015
|
+
}
|
|
4016
|
+
|
|
3988
4017
|
export const DocumentReaderErrorCodes = {
|
|
3989
4018
|
INITIALIZATION_CORE_ABSENT: 0,
|
|
3990
4019
|
INITIALIZATION_FAILED: 1,
|
|
@@ -4122,6 +4151,7 @@ export const eRFID_Password_Type = {
|
|
|
4122
4151
|
PPT_PIN_ESIGN: 5,
|
|
4123
4152
|
PPT_SAI: 6,
|
|
4124
4153
|
PPT_MRZ_HASH: 7,
|
|
4154
|
+
PPT_PIN_LOCAL: 8,
|
|
4125
4155
|
}
|
|
4126
4156
|
|
|
4127
4157
|
export const ViewContentMode = {
|
|
@@ -4176,6 +4206,8 @@ export const BarcodeResult = {
|
|
|
4176
4206
|
}
|
|
4177
4207
|
|
|
4178
4208
|
export const eRFID_Application_Type = {
|
|
4209
|
+
AT_UNSPECIFIED: 0,
|
|
4210
|
+
AT_ROOT_FILES: AT_UNSPECIFIED,
|
|
4179
4211
|
ePASSPORT: 1,
|
|
4180
4212
|
eID: 2,
|
|
4181
4213
|
eSIGN: 3,
|
|
@@ -4184,6 +4216,8 @@ export const eRFID_Application_Type = {
|
|
|
4184
4216
|
LDS2_VISA_RECORDS: 6,
|
|
4185
4217
|
LDS2_ADD_BIOMETRICS: 7,
|
|
4186
4218
|
eDTC_PC: 8,
|
|
4219
|
+
AT_APPLET_ROOT: 50,
|
|
4220
|
+
AT_USER_DEFINED: 100,
|
|
4187
4221
|
}
|
|
4188
4222
|
|
|
4189
4223
|
export const eSignManagementAction = {
|
|
@@ -6137,6 +6171,7 @@ export const Enum = {
|
|
|
6137
6171
|
eRFID_CertificateType,
|
|
6138
6172
|
RGLMeasureSystem,
|
|
6139
6173
|
eRPRM_ResultType,
|
|
6174
|
+
CameraTypes,
|
|
6140
6175
|
FrameShapeType,
|
|
6141
6176
|
eMDLDeviceRetrieval,
|
|
6142
6177
|
CustomizationTheme,
|
|
@@ -6148,6 +6183,7 @@ export const Enum = {
|
|
|
6148
6183
|
eRFIDReadingBufferSize,
|
|
6149
6184
|
PKDResourceType,
|
|
6150
6185
|
eRFID_AuthenticationProcedureType,
|
|
6186
|
+
eRFID_AccessControl,
|
|
6151
6187
|
DocumentReaderErrorCodes,
|
|
6152
6188
|
ScenarioIdentifier,
|
|
6153
6189
|
eRFID_AccessControl_ProcedureType,
|
package/index.js
CHANGED
|
@@ -1368,6 +1368,17 @@ export class GlaresCheckParams {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
}
|
|
1370
1370
|
|
|
1371
|
+
export class OcclusionCheckParams {
|
|
1372
|
+
static fromJson(jsonObject) {
|
|
1373
|
+
if (jsonObject == null) return null
|
|
1374
|
+
const result = new OcclusionCheckParams()
|
|
1375
|
+
|
|
1376
|
+
result.maxOcclusionPart = jsonObject["maxOcclusionPart"]
|
|
1377
|
+
|
|
1378
|
+
return result
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1371
1382
|
export class ImageQA {
|
|
1372
1383
|
static fromJson(jsonObject) {
|
|
1373
1384
|
if (jsonObject == null) return null
|
|
@@ -1378,6 +1389,7 @@ export class ImageQA {
|
|
|
1378
1389
|
result.focusCheck = jsonObject["focusCheck"]
|
|
1379
1390
|
result.glaresCheck = jsonObject["glaresCheck"]
|
|
1380
1391
|
result.glaresCheckParams = GlaresCheckParams.fromJson(jsonObject["glaresCheckParams"])
|
|
1392
|
+
result.occlusionCheckParams = OcclusionCheckParams.fromJson(jsonObject["occlusionCheckParams"])
|
|
1381
1393
|
result.colornessCheck = jsonObject["colornessCheck"]
|
|
1382
1394
|
result.screenCapture = jsonObject["screenCapture"]
|
|
1383
1395
|
result.expectedPass = []
|
|
@@ -2652,6 +2664,11 @@ export const eRPRM_ResultType = {
|
|
|
2652
2664
|
RPRM_RESULT_TYPE_BSI_XML_V2: 73,
|
|
2653
2665
|
}
|
|
2654
2666
|
|
|
2667
|
+
export const CameraTypes = {
|
|
2668
|
+
FRONT: "front",
|
|
2669
|
+
BACK: "back",
|
|
2670
|
+
}
|
|
2671
|
+
|
|
2655
2672
|
export const FrameShapeType = {
|
|
2656
2673
|
LINE: 0,
|
|
2657
2674
|
CORNER: 1,
|
|
@@ -2672,6 +2689,9 @@ export const eRFID_BaudRate = {
|
|
|
2672
2689
|
rfbr_212: 2,
|
|
2673
2690
|
rfbr_424: 4,
|
|
2674
2691
|
rfbr_848: 8,
|
|
2692
|
+
rfbr_1695: 0x10,
|
|
2693
|
+
rfbr_3390: 0x20,
|
|
2694
|
+
rfbr_6780: 0x40,
|
|
2675
2695
|
}
|
|
2676
2696
|
|
|
2677
2697
|
export const LineCap = {
|
|
@@ -2697,7 +2717,6 @@ export const DocReaderAction = {
|
|
|
2697
2717
|
PROCESS_WHITE_FLASHLIGHT: 5,
|
|
2698
2718
|
TIMEOUT: 6,
|
|
2699
2719
|
PROCESSING_ON_SERVICE: 7,
|
|
2700
|
-
NOTIFICATION: 101,
|
|
2701
2720
|
PROCESS_WHITE_UV_IMAGES: 102,
|
|
2702
2721
|
PROCESS_IR_FRAME: 103,
|
|
2703
2722
|
}
|
|
@@ -2720,8 +2739,8 @@ export const eProcessGLCommands = {
|
|
|
2720
2739
|
}
|
|
2721
2740
|
|
|
2722
2741
|
export const eRFIDReadingBufferSize = {
|
|
2723
|
-
STANDARD_LENGTH: 0,
|
|
2724
2742
|
EXTENDED_LENGTH: -1,
|
|
2743
|
+
STANDARD_LENGTH: 0,
|
|
2725
2744
|
}
|
|
2726
2745
|
|
|
2727
2746
|
export const PKDResourceType = {
|
|
@@ -2768,6 +2787,13 @@ export const eRFID_AuthenticationProcedureType = {
|
|
|
2768
2787
|
aptGeneral: 3,
|
|
2769
2788
|
}
|
|
2770
2789
|
|
|
2790
|
+
export const eRFID_AccessControl = {
|
|
2791
|
+
acDefault : 0,
|
|
2792
|
+
acChipAccess_BAC : 1,
|
|
2793
|
+
acChipAccess_PACE : 2,
|
|
2794
|
+
acLocal_PIN : 3,
|
|
2795
|
+
}
|
|
2796
|
+
|
|
2771
2797
|
export const DocumentReaderErrorCodes = {
|
|
2772
2798
|
INITIALIZATION_CORE_ABSENT: 0,
|
|
2773
2799
|
INITIALIZATION_FAILED: 1,
|
|
@@ -2905,6 +2931,7 @@ export const eRFID_Password_Type = {
|
|
|
2905
2931
|
PPT_PIN_ESIGN: 5,
|
|
2906
2932
|
PPT_SAI: 6,
|
|
2907
2933
|
PPT_MRZ_HASH: 7,
|
|
2934
|
+
PPT_PIN_LOCAL: 8,
|
|
2908
2935
|
}
|
|
2909
2936
|
|
|
2910
2937
|
export const ViewContentMode = {
|
|
@@ -2959,6 +2986,8 @@ export const BarcodeResult = {
|
|
|
2959
2986
|
}
|
|
2960
2987
|
|
|
2961
2988
|
export const eRFID_Application_Type = {
|
|
2989
|
+
AT_UNSPECIFIED: 0,
|
|
2990
|
+
AT_ROOT_FILES: AT_UNSPECIFIED,
|
|
2962
2991
|
ePASSPORT: 1,
|
|
2963
2992
|
eID: 2,
|
|
2964
2993
|
eSIGN: 3,
|
|
@@ -2967,6 +2996,8 @@ export const eRFID_Application_Type = {
|
|
|
2967
2996
|
LDS2_VISA_RECORDS: 6,
|
|
2968
2997
|
LDS2_ADD_BIOMETRICS: 7,
|
|
2969
2998
|
eDTC_PC: 8,
|
|
2999
|
+
AT_APPLET_ROOT: 50,
|
|
3000
|
+
AT_USER_DEFINED: 100,
|
|
2970
3001
|
}
|
|
2971
3002
|
|
|
2972
3003
|
export const eSignManagementAction = {
|
|
@@ -4920,6 +4951,7 @@ export const Enum = {
|
|
|
4920
4951
|
eRFID_CertificateType,
|
|
4921
4952
|
RGLMeasureSystem,
|
|
4922
4953
|
eRPRM_ResultType,
|
|
4954
|
+
CameraTypes,
|
|
4923
4955
|
FrameShapeType,
|
|
4924
4956
|
eMDLDeviceRetrieval,
|
|
4925
4957
|
CustomizationTheme,
|
|
@@ -4931,6 +4963,7 @@ export const Enum = {
|
|
|
4931
4963
|
eRFIDReadingBufferSize,
|
|
4932
4964
|
PKDResourceType,
|
|
4933
4965
|
eRFID_AuthenticationProcedureType,
|
|
4966
|
+
eRFID_AccessControl,
|
|
4934
4967
|
DocumentReaderErrorCodes,
|
|
4935
4968
|
ScenarioIdentifier,
|
|
4936
4969
|
eRFID_AccessControl_ProcedureType,
|
package/ios/RGLWConfig.m
CHANGED
|
@@ -971,6 +971,8 @@
|
|
|
971
971
|
if([input valueForKey:@"brightnessThreshold"] != nil)
|
|
972
972
|
result.brightnessThreshold = [input valueForKey:@"brightnessThreshold"];
|
|
973
973
|
if(input[@"occlusionCheck"]) result.occlusionCheck = input[@"occlusionCheck"];
|
|
974
|
+
if([input valueForKey:@"occlusionCheckParams"] != nil)
|
|
975
|
+
result.occlusionCheckParams = [RGLWJSONConstructor occlusionCheckParamsFromJson:[input valueForKey:@"occlusionCheckParams"]];
|
|
974
976
|
}
|
|
975
977
|
|
|
976
978
|
+(NSDictionary*)getImageQA:(RGLImageQA*)input {
|
|
@@ -991,6 +993,7 @@
|
|
|
991
993
|
result[@"glaresCheckParams"] = [RGLWJSONConstructor generateGlaresCheckParams:input.glaresCheckParams];
|
|
992
994
|
result[@"brightnessThreshold"] = input.brightnessThreshold;
|
|
993
995
|
result[@"occlusionCheck"] = input.occlusionCheck;
|
|
996
|
+
result[@"occlusionCheckParams"] = [RGLWJSONConstructor generateOcclusionCheckParams:input.occlusionCheckParams];
|
|
994
997
|
|
|
995
998
|
return result;
|
|
996
999
|
}
|
|
@@ -45,6 +45,8 @@
|
|
|
45
45
|
+(NSDictionary* _Nullable)generateAuthenticityPropertiesParams:(RGLAuthenticityPropertiesParams* _Nullable)input;
|
|
46
46
|
+(RGLGlaresCheckParams* _Nullable)glaresCheckParamsFromJson:(NSDictionary* _Nullable)input;
|
|
47
47
|
+(NSDictionary* _Nullable)generateGlaresCheckParams:(RGLGlaresCheckParams* _Nullable)input;
|
|
48
|
+
+(RGLOcclusionCheckParams* _Nullable)occlusionCheckParamsFromJson:(NSDictionary* _Nullable)input;
|
|
49
|
+
+(NSDictionary* _Nullable)generateOcclusionCheckParams:(RGLOcclusionCheckParams* _Nullable)input;
|
|
48
50
|
+(RGLImageQA* _Nullable)imageQAFromJson:(NSDictionary* _Nullable)input;
|
|
49
51
|
+(NSDictionary* _Nullable)generateImageQA:(RGLImageQA* _Nullable)input;
|
|
50
52
|
+(RGLRFIDParams* _Nullable)rfidParamsFromJson:(NSDictionary* _Nullable)input;
|
|
@@ -507,6 +507,25 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
507
507
|
return result;
|
|
508
508
|
}
|
|
509
509
|
|
|
510
|
+
+(RGLOcclusionCheckParams*)occlusionCheckParamsFromJson:(NSDictionary*)input {
|
|
511
|
+
if(input == nil) return nil;
|
|
512
|
+
RGLOcclusionCheckParams *result = [RGLOcclusionCheckParams new];
|
|
513
|
+
|
|
514
|
+
if([input valueForKey:@"maxOcclusionPart"] != nil)
|
|
515
|
+
result.maxOcclusionPart = [input valueForKey:@"maxOcclusionPart"];
|
|
516
|
+
|
|
517
|
+
return result;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
+(NSDictionary*)generateOcclusionCheckParams:(RGLOcclusionCheckParams*)input {
|
|
521
|
+
if(input == nil) return nil;
|
|
522
|
+
NSMutableDictionary* result = [NSMutableDictionary new];
|
|
523
|
+
|
|
524
|
+
result[@"maxOcclusionPart"] = input.maxOcclusionPart;
|
|
525
|
+
|
|
526
|
+
return result;
|
|
527
|
+
}
|
|
528
|
+
|
|
510
529
|
+(RGLImageInput*)imageInputFromJson:(NSDictionary*)input {
|
|
511
530
|
if(input == nil) return nil;
|
|
512
531
|
|
package/ios/RGLWMain.h
CHANGED
|
@@ -10,8 +10,7 @@ extern UIViewController*_Nonnull(^ _Nonnull RGLWRootViewController)(void);
|
|
|
10
10
|
@interface RGLWMain: NSObject<RGLRecordScanningProcessDelegate,
|
|
11
11
|
RGLDocReaderRFIDDelegate,
|
|
12
12
|
RGLCustomizationActionDelegate,
|
|
13
|
-
RGLDocReaderDatabaseFetchDelegate
|
|
14
|
-
RGLBluetoothDelegate>
|
|
13
|
+
RGLDocReaderDatabaseFetchDelegate>
|
|
15
14
|
|
|
16
15
|
+(void)methodCall:(NSString* _Nonnull)method
|
|
17
16
|
:(NSArray* _Nonnull)args
|
package/ios/RGLWMain.m
CHANGED
|
@@ -328,7 +328,7 @@ RGLWCallback savedCallbackForBluetoothResult;
|
|
|
328
328
|
// start searching devices
|
|
329
329
|
if (!bluetooth) {
|
|
330
330
|
bluetooth = [RGLBluetooth new];
|
|
331
|
-
bluetooth.delegate = this;
|
|
331
|
+
bluetooth.delegate = (id<RGLBluetoothDelegate>)this;
|
|
332
332
|
}
|
|
333
333
|
savedCallbackForBluetoothResult = callback;
|
|
334
334
|
[bluetooth connectWithDeviceName:deviceName];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/react-native-document-reader-api",
|
|
3
|
-
"version": "9.8.
|
|
3
|
+
"version": "9.8.756-nightly",
|
|
4
4
|
"description": "React Native module for reading and validation of identification documents (API framework)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|