@regulaforensics/react-native-document-reader-api 9.3.473-rc → 9.3.478-beta

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/ios/RGLWConfig.m CHANGED
@@ -194,7 +194,10 @@
194
194
  if (options[@"strictSecurityChecks"]) processParams.strictSecurityChecks = options[@"strictSecurityChecks"];
195
195
  if (options[@"returnTransliteratedFields"]) processParams.returnTransliteratedFields = options[@"returnTransliteratedFields"];
196
196
  if (options[@"checkCaptureProcessIntegrity"]) processParams.checkCaptureProcessIntegrity = options[@"checkCaptureProcessIntegrity"];
197
-
197
+ if (options[@"strictExpiryDate"]) processParams.strictExpiryDate = options[@"strictExpiryDate"];
198
+ if (options[@"debugSaveBinarySession"]) processParams.debugSaveBinarySession = options[@"debugSaveBinarySession"];
199
+ if (options[@"checkVDS"]) processParams.checkVDS = options[@"checkVDS"];
200
+
198
201
  // Int
199
202
  if([options valueForKey:@"measureSystem"] != nil)
200
203
  processParams.measureSystem = [[options valueForKey:@"measureSystem"] integerValue];
@@ -225,7 +228,7 @@
225
228
  if(options[@"logLevel"]) processParams.logLevel = options[@"logLevel"];
226
229
  if(options[@"mrzDetectMode"]) processParams.mrzDetectMode = options[@"mrzDetectMode"];
227
230
  if(options[@"pdfPagesLimit"]) processParams.pdfPagesLimit = options[@"pdfPagesLimit"];
228
-
231
+
229
232
  // String
230
233
  if([options valueForKey:@"dateFormat"] != nil)
231
234
  processParams.dateFormat = [options valueForKey:@"dateFormat"];
@@ -233,7 +236,7 @@
233
236
  processParams.scenario = [options valueForKey:@"scenario"];
234
237
  if([options valueForKey:@"captureButtonScenario"] != nil)
235
238
  processParams.captureButtonScenario = [options valueForKey:@"captureButtonScenario"];
236
-
239
+
237
240
  // Double
238
241
  if([options valueForKey:@"timeout"] != nil)
239
242
  processParams.timeout = [options valueForKey:@"timeout"];
@@ -245,7 +248,7 @@
245
248
  processParams.documentAreaMin = [options valueForKey:@"documentAreaMin"];
246
249
  if([options valueForKey:@"timeoutLiveness"] != nil)
247
250
  processParams.timeoutLiveness = [options valueForKey:@"timeoutLiveness"];
248
-
251
+
249
252
  // JSONArray
250
253
  if([options valueForKey:@"documentIDList"] != nil)
251
254
  processParams.documentIDList = [options valueForKey:@"documentIDList"];
@@ -263,7 +266,7 @@
263
266
  processParams.lcidIgnoreFilter = [options mutableArrayValueForKey:@"lcidIgnoreFilter"];
264
267
  if (options[@"lcidFilter"]) processParams.lcidFilter = options[@"lcidFilter"];
265
268
  if (options[@"fieldTypesIgnoreFilter"]) processParams.fieldTypesIgnoreFilter = options[@"fieldTypesIgnoreFilter"];
266
-
269
+
267
270
  // JSONObject
268
271
  if (options[@"customParams"]) processParams.customParams = options[@"customParams"];
269
272
  if ([options valueForKey:@"imageQA"] != nil)
@@ -283,7 +286,7 @@
283
286
 
284
287
  +(NSDictionary*)getProcessParams:(RGLProcessParams*)processParams {
285
288
  NSMutableDictionary *result = [NSMutableDictionary new];
286
-
289
+
287
290
  // Boolean
288
291
  result[@"multipageProcessing"] = processParams.multipageProcessing;
289
292
  result[@"logs"] = processParams.logs;
@@ -326,6 +329,9 @@
326
329
  result[@"strictSecurityChecks"] = processParams.strictSecurityChecks;
327
330
  result[@"returnTransliteratedFields"] = processParams.returnTransliteratedFields;
328
331
  result[@"checkCaptureProcessIntegrity"] = processParams.checkCaptureProcessIntegrity;
332
+ result[@"strictExpiryDate"] = processParams.strictExpiryDate;
333
+ result[@"debugSaveBinarySession"] = processParams.debugSaveBinarySession;
334
+ result[@"checkVDS"] = processParams.checkVDS;
329
335
 
330
336
  // Int
331
337
  result[@"measureSystem"] = [NSNumber numberWithInteger:processParams.measureSystem];
@@ -518,13 +524,12 @@
518
524
  customization.livenessAnimationImageContentMode = [self viewContentModeWithNumber:[options valueForKey:@"livenessAnimationImageContentMode"]];
519
525
  if([options valueForKey:@"borderBackgroundImageContentMode"] != nil)
520
526
  customization.borderBackgroundImageContentMode = [self viewContentModeWithNumber:[options valueForKey:@"borderBackgroundImageContentMode"]];
521
-
522
- if([options valueForKey:@"colors"] != nil)
523
- [self setColors:[customization.uiConfiguration valueForKey:@"colors"] input:[options valueForKey:@"colors"]];
524
- if([options valueForKey:@"fonts"] != nil)
525
- [self setFonts:[customization.uiConfiguration valueForKey:@"fonts"] input:[options valueForKey:@"fonts"]];
526
- if([options valueForKey:@"images"] != nil)
527
- [self setImages:[customization.uiConfiguration valueForKey:@"images"] input:[options valueForKey:@"images"]];
527
+
528
+ if(options[@"colors"]) [self setColors:[customization.uiConfiguration valueForKey:@"colors"] input:options[@"colors"]];
529
+ if(options[@"fonts"]) [self setFonts:[customization.uiConfiguration valueForKey:@"fonts"] input:options[@"fonts"]];
530
+ if(options[@"images"]) [self setImages:[customization.uiConfiguration valueForKey:@"images"] input:options[@"images"]];
531
+ if(options[@"timings"]) [self setTimings:[customization.uiConfiguration valueForKey:@"timings"] input:options[@"timings"]];
532
+ if(options[@"contentModes"]) [self setContentModes:[customization.uiConfiguration valueForKey:@"contentModes"] input:options[@"contentModes"]];
528
533
  }
529
534
 
530
535
  +(NSDictionary*)getCustomization:(RGLCustomization*)customization {
@@ -615,6 +620,8 @@
615
620
  result[@"colors"] = [self getColors: [customization.uiConfiguration valueForKey:@"colors"]];
616
621
  result[@"fonts"] = [self getFonts: [customization.uiConfiguration valueForKey:@"fonts"]];
617
622
  result[@"images"] = [self getImages: [customization.uiConfiguration valueForKey:@"images"]];
623
+ result[@"timings"] = [self getTimings: [customization.uiConfiguration valueForKey:@"timings"]];
624
+ result[@"contentModes"] = [self getContentModes: [customization.uiConfiguration valueForKey:@"contentModes"]];
618
625
 
619
626
  return result;
620
627
  }
@@ -1097,25 +1104,35 @@
1097
1104
  if(input[@"mdlProcessingScreenProgressLabelText"]) result[@(MDLProcessingScreenProgressLabelText)] = [self colorWithInt:input[@"mdlProcessingScreenProgressLabelText"]];
1098
1105
  if(input[@"mdlProcessingScreenResultLabelText"]) result[@(MDLProcessingScreenResultLabelText)] = [self colorWithInt:input[@"mdlProcessingScreenResultLabelText"]];
1099
1106
  if(input[@"mdlProcessingScreenLoadingBar"]) result[@(MDLProcessingScreenLoadingBar)] = [self colorWithInt:input[@"mdlProcessingScreenLoadingBar"]];
1107
+ if(input[@"nextPageIdCardFront"]) result[@(RGLCustomizationColorNextPageIdCardFront)] = [self colorWithInt:input[@"nextPageIdCardFront"]];
1108
+ if(input[@"nextPageIdCardBack"]) result[@(RGLCustomizationColorNextPageIdCardBack)] = [self colorWithInt:input[@"nextPageIdCardBack"]];
1109
+ if(input[@"nextPagePassportShift"]) result[@(RGLCustomizationColorNextPagePassportShift)] = [self colorWithInt:input[@"nextPagePassportShift"]];
1110
+ if(input[@"nextPagePassportFlip"]) result[@(RGLCustomizationColorNextPagePassportFlip)] = [self colorWithInt:input[@"nextPagePassportFlip"]];
1100
1111
  }
1101
1112
 
1102
1113
  +(NSDictionary*)getColors:(NSDictionary*)input {
1103
- return @{
1104
- @"rfidProcessingScreenBackground": [self intWithColor:input[@(RFIDProcessingScreenBackground)]],
1105
- @"rfidProcessingScreenHintLabelText": [self intWithColor:input[@(RFIDProcessingScreenHintLabelText)]],
1106
- @"rfidProcessingScreenHintLabelBackground": [self intWithColor:input[@(RFIDProcessingScreenHintLabelBackground)]],
1107
- @"rfidProcessingScreenProgressLabelText": [self intWithColor:input[@(RFIDProcessingScreenProgressLabelText)]],
1108
- @"rfidProcessingScreenProgressBar": [self intWithColor:input[@(RFIDProcessingScreenProgressBar)]],
1109
- @"rfidProcessingScreenProgressBarBackground": [self intWithColor:input[@(RFIDProcessingScreenProgressBarBackground)]],
1110
- @"rfidProcessingScreenResultLabelText": [self intWithColor:input[@(RFIDProcessingScreenResultLabelText)]],
1111
- @"rfidProcessingScreenLoadingBar": [self intWithColor:input[@(RFIDProcessingScreenLoadingBar)]],
1112
- @"mdlProcessingScreenBackground": [self intWithColor:input[@(MDLProcessingScreenBackground)]],
1113
- @"mdlProcessingScreenHintLabelText": [self intWithColor:input[@(MDLProcessingScreenHintLabelText)]],
1114
- @"mdlProcessingScreenHintLabelBackground": [self intWithColor:input[@(MDLProcessingScreenHintLabelBackground)]],
1115
- @"mdlProcessingScreenProgressLabelText": [self intWithColor:input[@(MDLProcessingScreenProgressLabelText)]],
1116
- @"mdlProcessingScreenResultLabelText": [self intWithColor:input[@(MDLProcessingScreenResultLabelText)]],
1117
- @"mdlProcessingScreenLoadingBar": [self intWithColor:input[@(MDLProcessingScreenLoadingBar)]],
1118
- };
1114
+ id result = @{}.mutableCopy;
1115
+
1116
+ if(input[@(RFIDProcessingScreenBackground)]) result[@"rfidProcessingScreenBackground"] = [self intWithColor:input[@(RFIDProcessingScreenBackground)]];
1117
+ if(input[@(RFIDProcessingScreenHintLabelText)]) result[@"rfidProcessingScreenHintLabelText"] = [self intWithColor:input[@(RFIDProcessingScreenHintLabelText)]];
1118
+ if(input[@(RFIDProcessingScreenHintLabelBackground)]) result[@"rfidProcessingScreenHintLabelBackground"] = [self intWithColor:input[@(RFIDProcessingScreenHintLabelBackground)]];
1119
+ if(input[@(RFIDProcessingScreenProgressLabelText)]) result[@"rfidProcessingScreenProgressLabelText"] = [self intWithColor:input[@(RFIDProcessingScreenProgressLabelText)]];
1120
+ if(input[@(RFIDProcessingScreenProgressBar)]) result[@"rfidProcessingScreenProgressBar"] = [self intWithColor:input[@(RFIDProcessingScreenProgressBar)]];
1121
+ if(input[@(RFIDProcessingScreenProgressBarBackground)]) result[@"rfidProcessingScreenProgressBarBackground"] = [self intWithColor:input[@(RFIDProcessingScreenProgressBarBackground)]];
1122
+ if(input[@(RFIDProcessingScreenResultLabelText)]) result[@"rfidProcessingScreenResultLabelText"] = [self intWithColor:input[@(RFIDProcessingScreenResultLabelText)]];
1123
+ if(input[@(RFIDProcessingScreenLoadingBar)]) result[@"rfidProcessingScreenLoadingBar"] = [self intWithColor:input[@(RFIDProcessingScreenLoadingBar)]];
1124
+ if(input[@(MDLProcessingScreenBackground)]) result[@"mdlProcessingScreenBackground"] = [self intWithColor:input[@(MDLProcessingScreenBackground)]];
1125
+ if(input[@(MDLProcessingScreenHintLabelText)]) result[@"mdlProcessingScreenHintLabelText"] = [self intWithColor:input[@(MDLProcessingScreenHintLabelText)]];
1126
+ if(input[@(MDLProcessingScreenHintLabelBackground)]) result[@"mdlProcessingScreenHintLabelBackground"] = [self intWithColor:input[@(MDLProcessingScreenHintLabelBackground)]];
1127
+ if(input[@(MDLProcessingScreenProgressLabelText)]) result[@"mdlProcessingScreenProgressLabelText"] = [self intWithColor:input[@(MDLProcessingScreenProgressLabelText)]];
1128
+ if(input[@(MDLProcessingScreenResultLabelText)]) result[@"mdlProcessingScreenResultLabelText"] = [self intWithColor:input[@(MDLProcessingScreenResultLabelText)]];
1129
+ if(input[@(MDLProcessingScreenLoadingBar)]) result[@"mdlProcessingScreenLoadingBar"] = [self intWithColor:input[@(MDLProcessingScreenLoadingBar)]];
1130
+ if(input[@(RGLCustomizationColorNextPageIdCardFront)]) result[@"nextPageIdCardFront"] = [self intWithColor:input[@(RGLCustomizationColorNextPageIdCardFront)]];
1131
+ if(input[@(RGLCustomizationColorNextPageIdCardBack)]) result[@"nextPageIdCardBack"] = [self intWithColor:input[@(RGLCustomizationColorNextPageIdCardBack)]];
1132
+ if(input[@(RGLCustomizationColorNextPagePassportShift)]) result[@"nextPagePassportShift"] = [self intWithColor:input[@(RGLCustomizationColorNextPagePassportShift)]];
1133
+ if(input[@(RGLCustomizationColorNextPagePassportFlip)]) result[@"nextPagePassportFlip"] = [self intWithColor:input[@(RGLCustomizationColorNextPagePassportFlip)]];
1134
+
1135
+ return result;
1119
1136
  }
1120
1137
 
1121
1138
  +(void)setFonts:(NSMutableDictionary*)result input:(NSDictionary*)input {
@@ -1130,25 +1147,119 @@
1130
1147
  }
1131
1148
 
1132
1149
  +(NSDictionary*)getFonts:(NSDictionary*)input {
1133
- return @{
1134
- @"rfidProcessingScreenHintLabel": [self generateUIFont:input[@(RFIDProcessingScreenHintLabel)]],
1135
- @"rfidProcessingScreenProgressLabel": [self generateUIFont:input[@(RFIDProcessingScreenProgressLabel)]],
1136
- @"rfidProcessingScreenResultLabel": [self generateUIFont:input[@(RFIDProcessingScreenResultLabel)]],
1137
- @"mdlProcessingScreenHintLabel": [self generateUIFont:input[@(MDLProcessingScreenHintLabel)]],
1138
- @"mdlProcessingScreenProgressLabel": [self generateUIFont:input[@(MDLProcessingScreenProgressLabel)]],
1139
- @"mdlProcessingScreenResultLabel": [self generateUIFont:input[@(MDLProcessingScreenResultLabel)]],
1150
+ return @{
1151
+ @"rfidProcessingScreenHintLabel": [self generateUIFont:input[@(RFIDProcessingScreenHintLabel)]],
1152
+ @"rfidProcessingScreenProgressLabel": [self generateUIFont:input[@(RFIDProcessingScreenProgressLabel)]],
1153
+ @"rfidProcessingScreenResultLabel": [self generateUIFont:input[@(RFIDProcessingScreenResultLabel)]],
1154
+ @"mdlProcessingScreenHintLabel": [self generateUIFont:input[@(MDLProcessingScreenHintLabel)]],
1155
+ @"mdlProcessingScreenProgressLabel": [self generateUIFont:input[@(MDLProcessingScreenProgressLabel)]],
1156
+ @"mdlProcessingScreenResultLabel": [self generateUIFont:input[@(MDLProcessingScreenResultLabel)]],
1140
1157
  };
1141
1158
  }
1142
1159
 
1143
1160
  +(void)setImages:(NSMutableDictionary*)result input:(NSDictionary*)input {
1144
- if(input[@"rfidProcessingScreenFailureImage"]) result[@(RFIDProcessingScreenFailureImage)] = [RGLWJSONConstructor imageWithBase64:input[@"rfidProcessingScreenFailureImage"]];
1145
- if(input[@"mdlProcessingScreenFailureImage"]) result[@(MDLProcessingScreenFailureImage)] = [RGLWJSONConstructor imageWithBase64:input[@"mdlProcessingScreenFailureImage"]];
1161
+ if(input[@"helpAnimation"]) result[RGLCustomizationImageHelpAnimation] = [RGLWJSONConstructor imageWithBase64:input[@"helpAnimation"]];
1162
+ if(input[@"livenessAnimation"]) result[RGLCustomizationImageLivenessAnimation] = [RGLWJSONConstructor imageWithBase64:input[@"livenessAnimation"]];
1163
+ if(input[@"borderBackground"]) result[RGLCustomizationImageBorderBackground] = [RGLWJSONConstructor imageWithBase64:input[@"borderBackground"]];
1164
+ if(input[@"torchButtonOn"]) result[RGLCustomizationImageTorchButtonOn] = [RGLWJSONConstructor imageWithBase64:input[@"torchButtonOn"]];
1165
+ if(input[@"torchButtonOff"]) result[RGLCustomizationImageTorchButtonOff] = [RGLWJSONConstructor imageWithBase64:input[@"torchButtonOff"]];
1166
+ if(input[@"captureButton"]) result[RGLCustomizationImageCaptureButton] = [RGLWJSONConstructor imageWithBase64:input[@"captureButton"]];
1167
+ if(input[@"switchButton"]) result[RGLCustomizationImageSwitchButton] = [RGLWJSONConstructor imageWithBase64:input[@"switchButton"]];
1168
+ if(input[@"closeButton"]) result[RGLCustomizationImageCloseButton] = [RGLWJSONConstructor imageWithBase64:input[@"closeButton"]];
1169
+ if(input[@"multipageButton"]) result[RGLCustomizationImageMultipageButton] = [RGLWJSONConstructor imageWithBase64:input[@"multipageButton"]];
1170
+ if(input[@"rfidProcessingScreenFailureImage"]) result[RGLCustomizationImageRFIDProcessingScreenFailure] = [RGLWJSONConstructor imageWithBase64:input[@"rfidProcessingScreenFailureImage"]];
1171
+ if(input[@"mdlProcessingScreenFailureImage"]) result[RGLCustomizationImageMDLProcessingScreenFailure] = [RGLWJSONConstructor imageWithBase64:input[@"mdlProcessingScreenFailureImage"]];
1172
+ if(input[@"nextPageIdCardFront"]) result[RGLCustomizationImageNextPageIdCardFront] = [RGLWJSONConstructor imageWithBase64:input[@"nextPageIdCardFront"]];
1173
+ if(input[@"nextPageIdCardBack"]) result[RGLCustomizationImageNextPageIdCardBack] = [RGLWJSONConstructor imageWithBase64:input[@"nextPageIdCardBack"]];
1174
+ if(input[@"nextPagePassportShift"]) result[RGLCustomizationImageNextPagePassportShift] = [RGLWJSONConstructor imageWithBase64:input[@"nextPagePassportShift"]];
1175
+ if(input[@"nextPagePassportFlipStart"]) result[RGLCustomizationImageNextPagePassportFlipStart] = [RGLWJSONConstructor imageWithBase64:input[@"nextPagePassportFlipStart"]];
1176
+ if(input[@"nextPagePassportFlipClean"]) result[RGLCustomizationImageNextPagePassportFlipClean] = [RGLWJSONConstructor imageWithBase64:input[@"nextPagePassportFlipClean"]];
1177
+ if(input[@"nextPagePassportFlipTop"]) result[RGLCustomizationImageNextPagePassportFlipTop] = [RGLWJSONConstructor imageWithBase64:input[@"nextPagePassportFlipTop"]];
1178
+ if(input[@"nextPagePassportFlipBottom"]) result[RGLCustomizationImageNextPagePassportFlipBottom] = [RGLWJSONConstructor imageWithBase64:input[@"nextPagePassportFlipBottom"]];
1146
1179
  }
1147
1180
 
1148
1181
  +(NSDictionary*)getImages:(NSDictionary*)input {
1149
- return @{
1150
- @"rfidProcessingScreenFailureImage": [RGLWJSONConstructor base64WithImage:input[@(RFIDProcessingScreenFailureImage)]],
1151
- @"mdlProcessingScreenFailureImage": [RGLWJSONConstructor base64WithImage:input[@(MDLProcessingScreenFailureImage)]],
1182
+ id result = @{}.mutableCopy;
1183
+ id i;
1184
+
1185
+ i = RGLCustomizationImageHelpAnimation;
1186
+ if(input[i]) result[@"helpAnimation"] = [RGLWJSONConstructor base64WithImage:input[i]];
1187
+ i = RGLCustomizationImageLivenessAnimation;
1188
+ if(input[i]) result[@"livenessAnimation"] = [RGLWJSONConstructor base64WithImage:input[i]];
1189
+ i = RGLCustomizationImageBorderBackground;
1190
+ if(input[i]) result[@"borderBackground"] = [RGLWJSONConstructor base64WithImage:input[i]];
1191
+ i = RGLCustomizationImageTorchButtonOn;
1192
+ if(input[i]) result[@"torchButtonOn"] = [RGLWJSONConstructor base64WithImage:input[i]];
1193
+ i = RGLCustomizationImageTorchButtonOff;
1194
+ if(input[i]) result[@"torchButtonOff"] = [RGLWJSONConstructor base64WithImage:input[i]];
1195
+ i = RGLCustomizationImageCaptureButton;
1196
+ if(input[i]) result[@"captureButton"] = [RGLWJSONConstructor base64WithImage:input[i]];
1197
+ i = RGLCustomizationImageSwitchButton;
1198
+ if(input[i]) result[@"switchButton"] = [RGLWJSONConstructor base64WithImage:input[i]];
1199
+ i = RGLCustomizationImageCloseButton;
1200
+ if(input[i]) result[@"closeButton"] = [RGLWJSONConstructor base64WithImage:input[i]];
1201
+ i = RGLCustomizationImageMultipageButton;
1202
+ if(input[i]) result[@"multipageButton"] = [RGLWJSONConstructor base64WithImage:input[i]];
1203
+ i = RGLCustomizationImageRFIDProcessingScreenFailure;
1204
+ if(input[i]) result[@"rfidProcessingScreenFailureImage"] = [RGLWJSONConstructor base64WithImage:input[i]];
1205
+ i = RGLCustomizationImageMDLProcessingScreenFailure;
1206
+ if(input[i]) result[@"mdlProcessingScreenFailureImage"] = [RGLWJSONConstructor base64WithImage:input[i]];
1207
+ i = RGLCustomizationImageNextPageIdCardFront;
1208
+ if(input[i]) result[@"nextPageIdCardFront"] = [RGLWJSONConstructor base64WithImage:input[i]];
1209
+ i = RGLCustomizationImageNextPageIdCardBack;
1210
+ if(input[i]) result[@"nextPageIdCardBack"] = [RGLWJSONConstructor base64WithImage:input[i]];
1211
+ i = RGLCustomizationImageNextPagePassportShift;
1212
+ if(input[i]) result[@"nextPagePassportShift"] = [RGLWJSONConstructor base64WithImage:input[i]];
1213
+ i = RGLCustomizationImageNextPagePassportFlipStart;
1214
+ if(input[i]) result[@"nextPagePassportFlipStart"] = [RGLWJSONConstructor base64WithImage:input[i]];
1215
+ i = RGLCustomizationImageNextPagePassportFlipClean;
1216
+ if(input[i]) result[@"nextPagePassportFlipClean"] = [RGLWJSONConstructor base64WithImage:input[i]];
1217
+ i = RGLCustomizationImageNextPagePassportFlipTop;
1218
+ if(input[i]) result[@"nextPagePassportFlipTop"] = [RGLWJSONConstructor base64WithImage:input[i]];
1219
+ i = RGLCustomizationImageNextPagePassportFlipBottom;
1220
+ if(input[i]) result[@"nextPagePassportFlipBottom"] = [RGLWJSONConstructor base64WithImage:input[i]];
1221
+
1222
+ return result;
1223
+ }
1224
+
1225
+ +(void)setTimings:(NSMutableDictionary*)result input:(NSDictionary*)input {
1226
+ if(input[@"nextPageIdCardStartDelay"]) result[@(RGLCustomizationTimingNextPageIdCardStartDelay)] = input[@"nextPageIdCardStartDelay"];
1227
+ if(input[@"nextPageIdCardEndDelay"]) result[@(RGLCustomizationTimingNextPageIdCardEndDelay)] = input[@"nextPageIdCardEndDelay"];
1228
+ if(input[@"nextPagePassportShiftStartDelay"]) result[@(RGLCustomizationTimingNextPagePassportShiftStartDelay)] = input[@"nextPagePassportShiftStartDelay"];
1229
+ if(input[@"nextPagePassportShiftEndDelay"]) result[@(RGLCustomizationTimingNextPagePassportShiftEndDelay)] = input[@"nextPagePassportShiftEndDelay"];
1230
+ if(input[@"nextPagePassportFlipStartDelay"]) result[@(RGLCustomizationTimingNextPagePassportFlipStartDelay)] = input[@"nextPagePassportFlipStartDelay"];
1231
+ if(input[@"nextPagePassportFlipEndDelay"]) result[@(RGLCustomizationTimingNextPagePassportFlipEndDelay)] = input[@"nextPagePassportFlipEndDelay"];
1232
+ }
1233
+
1234
+ +(NSDictionary*)getTimings:(NSDictionary*)input {
1235
+ id result = @{}.mutableCopy;
1236
+ id i;
1237
+
1238
+ i = @(RGLCustomizationTimingNextPageIdCardStartDelay);
1239
+ if(input[i]) result[@"nextPageIdCardStartDelay"] = input[i];
1240
+ i = @(RGLCustomizationTimingNextPageIdCardEndDelay);
1241
+ if(input[i]) result[@"nextPageIdCardEndDelay"] = input[i];
1242
+ i = @(RGLCustomizationTimingNextPagePassportShiftStartDelay);
1243
+ if(input[i]) result[@"nextPagePassportShiftStartDelay"] = input[i];
1244
+ i = @(RGLCustomizationTimingNextPagePassportShiftEndDelay);
1245
+ if(input[i]) result[@"nextPagePassportShiftEndDelay"] = input[i];
1246
+ i = @(RGLCustomizationTimingNextPagePassportFlipStartDelay);
1247
+ if(input[i]) result[@"nextPagePassportFlipStartDelay"] = input[i];
1248
+ i = @(RGLCustomizationTimingNextPagePassportFlipEndDelay);
1249
+ if(input[i]) result[@"nextPagePassportFlipEndDelay"] = input[i];
1250
+
1251
+ return result;
1252
+ }
1253
+
1254
+ +(void)setContentModes:(NSMutableDictionary*)result input:(NSDictionary*)input {
1255
+ if(input[@"nextPageIdCardFront"]) result[@(RGLCustomizationContentModeNextPageIdCardFront)] = input[@"nextPageIdCardFront"];
1256
+ if(input[@"nextPageIdCardBack"]) result[@(RGLCustomizationContentModeNextPageIdCardBack)] = input[@"nextPageIdCardBack"];
1257
+ }
1258
+
1259
+ +(NSDictionary*)getContentModes:(NSDictionary*)input {
1260
+ return @{
1261
+ @"nextPageIdCardFront": input[@(RGLCustomizationContentModeNextPageIdCardFront)],
1262
+ @"nextPageIdCardBack": input[@(RGLCustomizationContentModeNextPageIdCardBack)],
1152
1263
  };
1153
1264
  }
1154
1265
 
@@ -286,6 +286,8 @@ static NSMutableArray* weakReferencesHolder;
286
286
  result.httpHeaders = [input valueForKey:@"httpHeaders"];
287
287
  if([input valueForKey:@"rfidServerSideChipVerification"] != nil)
288
288
  result.rfidServerSideChipVerification = [input valueForKey:@"rfidServerSideChipVerification"];
289
+ if([input valueForKey:@"mdlVerification"] != nil)
290
+ result.mDLVerification = [input valueForKey:@"mdlVerification"];
289
291
  if (input[@"timeoutConnection"]) result.timeoutConnection = input[@"timeoutConnection"];
290
292
 
291
293
  return result;
@@ -298,6 +300,7 @@ static NSMutableArray* weakReferencesHolder;
298
300
  result[@"url"] = input.url;
299
301
  result[@"httpHeaders"] = input.httpHeaders;
300
302
  result[@"rfidServerSideChipVerification"] = input.rfidServerSideChipVerification;
303
+ result[@"mdlVerification"] = input.mDLVerification;
301
304
  result[@"timeoutConnection"] = input.timeoutConnection;
302
305
 
303
306
  return result;
@@ -2628,6 +2631,7 @@ static NSMutableArray* weakReferencesHolder;
2628
2631
  if (input[@"rawImages"]) result.rawImages = [input[@"rawImages"] boolValue];
2629
2632
  if (input[@"video"]) result.video = [input[@"video"] boolValue];
2630
2633
  if (input[@"rfidSession"]) result.rfidSession = [input[@"rfidSession"] boolValue];
2634
+ if (input[@"mdlSession"]) result.mdlSession = [input[@"mdlSession"] boolValue];
2631
2635
 
2632
2636
  return result;
2633
2637
  }
@@ -2639,6 +2643,7 @@ static NSMutableArray* weakReferencesHolder;
2639
2643
  result[@"rawImages"] = @(input.rawImages);
2640
2644
  result[@"video"] = @(input.video);
2641
2645
  result[@"rfidSession"] = @(input.rfidSession);
2646
+ result[@"mdlSession"] = @(input.mdlSession);
2642
2647
 
2643
2648
  return result;
2644
2649
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/react-native-document-reader-api",
3
- "version": "9.3.473-rc",
3
+ "version": "9.3.478-beta",
4
4
  "description": "React Native module for reading and validation of identification documents (API framework)",
5
5
  "main": "index.js",
6
6
  "scripts": {