accurascan_kyc 1.0.0 → 1.0.2

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.
@@ -21,6 +21,7 @@ Pod::Spec.new do |s|
21
21
  s.dependency "React-Core"
22
22
  s.static_framework = true
23
23
  s.dependency "AccuraKYC_Sim","3.2.2"
24
+ s.dependency "SVProgressHUD"
24
25
  # Don't install the dependencies when we run `pod install` in the old architecture.
25
26
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
26
27
  s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "accurascan_kyc",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "test",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",