accurascan_kyc 1.0.1 → 1.0.3

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.
@@ -364,7 +364,13 @@ public class ActivityFaceMatch extends Activity implements FaceCallback {
364
364
  this.finish();
365
365
  return;
366
366
  }
367
- helper.setInputImage(uri);
367
+ try {
368
+ Bitmap trying = MediaStore.Images.Media.getBitmap(this.getContentResolver() , uri);
369
+ helper.setInputImage(trying);
370
+
371
+ } catch (IOException e) {
372
+ e.printStackTrace();
373
+ }
368
374
 
369
375
  }else if(ind == 2) {
370
376
  try {
@@ -377,7 +383,14 @@ public class ActivityFaceMatch extends Activity implements FaceCallback {
377
383
  this.finish();
378
384
  return;
379
385
  }
380
- helper.setMatchImage(uri);
386
+ try {
387
+ Bitmap trying = MediaStore.Images.Media.getBitmap(this.getContentResolver() , uri);
388
+ helper.setMatchImage(trying);
389
+
390
+ } catch (IOException e) {
391
+ e.printStackTrace();
392
+ }
393
+ // helper.setMatchImage(uri);
381
394
 
382
395
  }
383
396
 
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "accurascan_kyc",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "test",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -41,13 +41,13 @@
41
41
  "ios",
42
42
  "android"
43
43
  ],
44
- "repository": "https://github.com/Anaslokhandwala/react_native_accurascan_kyc.git/accurascan_kyc",
45
- "author": "Accura Scan <lokhandwalaanas1@gmail.com> (https://github.com/Anaslokhandwala/react_native_accurascan_kyc.git)",
44
+ "repository": "https://github.com/Anaslokhandwala/Accurascan_KYC.git",
45
+ "author": "Accura Scan <lokhandwalaanas1@gmail.com> (https://github.com/Anaslokhandwala/Accurascan_KYC.git)",
46
46
  "license": "MIT",
47
47
  "bugs": {
48
- "url": "https://github.com/Anaslokhandwala/react_native_accurascan_kyc.git/accurascan_kyc/issues"
48
+ "url": "https://github.com/Anaslokhandwala/Accurascan_KYC.git/issues"
49
49
  },
50
- "homepage": "https://github.com/Anaslokhandwala/react_native_accurascan_kyc.git/accurascan_kyc#readme",
50
+ "homepage": "https://github.com/Anaslokhandwala/Accurascan_KYC.git#readme",
51
51
  "publishConfig": {
52
52
  "registry": "https://registry.npmjs.org/"
53
53
  },