accurascan_kyc 1.0.6 → 1.0.8

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.
@@ -1,5 +1,6 @@
1
1
  package com.accurascankyc;
2
2
 
3
+ import android.app.Activity;
3
4
  import android.app.Dialog;
4
5
  import android.content.Intent;
5
6
  import android.content.pm.ActivityInfo;
@@ -86,6 +87,7 @@ public class OcrActivity extends SensorsActivity implements OcrCallback {
86
87
  public static JSONObject accuraTitleMsg;
87
88
  public static int barcodeFormat;
88
89
  private Bitmap frame;
90
+ private static Activity appActivity = null;
89
91
 
90
92
  private static class MyHandler extends Handler {
91
93
 
@@ -138,7 +140,14 @@ public class OcrActivity extends SensorsActivity implements OcrCallback {
138
140
  public void onCreate(Bundle savedInstanceState) {
139
141
  if (cameraView != null) cameraView.startOcrScan(false);
140
142
 
141
-
143
+ try{
144
+ if(accuraErrorConfg.getInt("enableLogs") == 1){
145
+ AccuraLog.enableLogs(true); // make sure to disable logs in release mode
146
+ AccuraLog.refreshLogfile(appActivity);
147
+ }
148
+ } catch (JSONException e) {
149
+ e.printStackTrace();
150
+ }
142
151
 
143
152
  int orientation = getResources().getConfiguration().orientation;
144
153
  if (orientation == 1) {
@@ -35,7 +35,7 @@ class AccurascanKyc: NSObject {
35
35
 
36
36
  var actualAccuraConfigs:NSDictionary = [
37
37
  "flipImage":"",
38
- "Disable_Card_Name":false
38
+ "Disable_Card_Name":false,
39
39
  "enableLogs": 1,
40
40
  "setCameraFacing": 0,
41
41
  "isShowLogo": 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "accurascan_kyc",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "test",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",