accurascan_kyc 1.0.5 → 1.0.7

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.
@@ -213,6 +213,7 @@ public class AccurascanKycModule extends ReactContextBaseJavaModule {
213
213
  actualAccuraTitleMsg.put("SCAN_TITLE_BANKCARD","Scan BankCard");
214
214
 
215
215
  //Error messages, Camera Screen Confige
216
+ actualAccuraErrorConfg.put("Disable_Card_Name",false);
216
217
  actualAccuraErrorConfg.put("flipImage","");
217
218
  actualAccuraErrorConfg.put("setCameraFacing",0);
218
219
  actualAccuraErrorConfg.put("enableLogs",1);
@@ -828,6 +828,13 @@ public class OcrActivity extends SensorsActivity implements OcrCallback {
828
828
  }
829
829
 
830
830
  private String getTitleMessage(int titleCode) {
831
+ try {
832
+ if (accuraErrorConfg.getBoolean("Disable_Card_Name")){
833
+ cardName = "";
834
+ }
835
+ } catch (JSONException e) {
836
+ e.printStackTrace();
837
+ }
831
838
  if (titleCode < 0) return null;
832
839
  switch (titleCode){
833
840
  case RecogEngine.SCAN_TITLE_OCR_FRONT:// for front side ocr;
@@ -35,6 +35,7 @@ class AccurascanKyc: NSObject {
35
35
 
36
36
  var actualAccuraConfigs:NSDictionary = [
37
37
  "flipImage":"",
38
+ "Disable_Card_Name":false,
38
39
  "enableLogs": 1,
39
40
  "setCameraFacing": 0,
40
41
  "isShowLogo": 1,
@@ -2430,6 +2430,9 @@ extension ViewController: VideoCameraWrapperDelegate {
2430
2430
 
2431
2431
  func reco_titleMessage(_ messageCode: Int32) {
2432
2432
  print("msgcode:- ",messageCode)
2433
+ if accuraErrorCode["Disable_Card_Name"] as? Bool == true{
2434
+ docName = ""
2435
+ }
2433
2436
  switch messageCode {
2434
2437
  case SCAN_TITLE_OCR_FRONT:
2435
2438
  if accuraTitleMsg["SCAN_TITLE_OCR_FRONT"] != nil {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "accurascan_kyc",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "test",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -157,8 +157,5 @@
157
157
  }
158
158
  ]
159
159
  ]
160
- },
161
- "dependencies": {
162
- "@react-native-material/core": "^1.3.7"
163
160
  }
164
161
  }