accurascan_kyc 1.2.9 → 1.3.1
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/accurascan-kyc.podspec
CHANGED
|
@@ -23,7 +23,7 @@ Pod::Spec.new do |s|
|
|
|
23
23
|
s.static_framework = true
|
|
24
24
|
# s.dependency "AccuraKYC","4.0.2"
|
|
25
25
|
# s.dependency "AccuraKYC","4.0.4"
|
|
26
|
-
s.dependency 'AccuraKYC_Sim', '4.0
|
|
26
|
+
s.dependency 'AccuraKYC_Sim', '4.1.0'
|
|
27
27
|
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
28
28
|
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
29
29
|
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
|
package/android/build.gradle
CHANGED
|
@@ -104,7 +104,7 @@ dependencies {
|
|
|
104
104
|
// FaceMatch has no issue
|
|
105
105
|
implementation 'com.github.accurascan:AccuraFaceMatch:3.2.5'
|
|
106
106
|
// Update Liveness
|
|
107
|
-
implementation 'com.github.accurascan:Liveness-Android:3.
|
|
107
|
+
implementation 'com.github.accurascan:Liveness-Android:3.4.1'
|
|
108
108
|
implementation 'com.squareup.picasso:picasso:2.71828'
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -632,6 +632,8 @@ public class AccurascanKycModule extends ReactContextBaseJavaModule {
|
|
|
632
632
|
String uri = uriL.getString("face_uri");
|
|
633
633
|
OcrResultActivity.face1 = BitmapFactory.decodeFile(uri.replace("file://",""));
|
|
634
634
|
OcrResultActivity.which = 1;
|
|
635
|
+
OcrResultActivity.isDynamic = isDynamic;
|
|
636
|
+
OcrResultActivity.faceLicensePath = FaceLicenseAbsolutePath;
|
|
635
637
|
OcrResultActivity.livenessConfig = arg.getJSONObject(1);
|
|
636
638
|
Intent intent = new Intent(getCurrentActivity(),OcrResultActivity.class);
|
|
637
639
|
getCurrentActivity().startActivity(intent);
|
|
@@ -407,15 +407,15 @@ public class OcrResultActivity extends Activity implements FaceCallback {
|
|
|
407
407
|
}else {
|
|
408
408
|
livenessCustomization.setLowLightTolerence(-1/*lowLightTolerence*/);
|
|
409
409
|
}
|
|
410
|
-
if (livenessConfig.has("setApiKey")){
|
|
411
|
-
try {
|
|
412
|
-
livenessCustomization.setApiKey(livenessConfig.getString("setApiKey"));
|
|
413
|
-
} catch (JSONException e) {
|
|
414
|
-
e.printStackTrace();
|
|
415
|
-
}
|
|
416
|
-
}else {
|
|
417
|
-
livenessCustomization.setApiKey("");
|
|
418
|
-
}
|
|
410
|
+
// if (livenessConfig.has("setApiKey")){
|
|
411
|
+
//// try {
|
|
412
|
+
//// livenessCustomization.setApiKey(livenessConfig.getString("setApiKey"));
|
|
413
|
+
//// } catch (JSONException e) {
|
|
414
|
+
//// e.printStackTrace();
|
|
415
|
+
//// }
|
|
416
|
+
//// }else {
|
|
417
|
+
//// livenessCustomization.setApiKey("");
|
|
418
|
+
//// }
|
|
419
419
|
if (livenessConfig.has("setfeedbackDialogMessage")){
|
|
420
420
|
try {
|
|
421
421
|
livenessCustomization.feedbackDialogMessage = livenessConfig.getString("setfeedbackDialogMessage");
|
package/ios/ViewController.swift
CHANGED
|
@@ -317,7 +317,7 @@ class ViewController: UIViewController {
|
|
|
317
317
|
shortTap.numberOfTouchesRequired = 1
|
|
318
318
|
self.view.addGestureRecognizer(shortTap)
|
|
319
319
|
} else if status == .denied {
|
|
320
|
-
let alert = UIAlertController(title: "
|
|
320
|
+
let alert = UIAlertController(title: "Alert!", message: "It looks like your privacy settings are preventing us from accessing your camera.", preferredStyle: .alert)
|
|
321
321
|
let yesButton = UIAlertAction(title: "OK", style: .default) { _ in
|
|
322
322
|
if #available(iOS 10.0, *) {
|
|
323
323
|
UIApplication.shared.open(URL(string: UIApplication.openSettingsURLString)!, options: [:], completionHandler: nil)
|
|
@@ -326,7 +326,7 @@ class ViewController: UIViewController {
|
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
alert.addAction(yesButton)
|
|
329
|
-
self.present(alert, animated: true, completion: nil)
|
|
329
|
+
self.getTopMostViewController()?.present(alert, animated: true, completion: nil)
|
|
330
330
|
} else if status == .restricted {
|
|
331
331
|
} else if status == .notDetermined {
|
|
332
332
|
AVCaptureDevice.requestAccess(for: .video) { granted in
|
|
@@ -485,6 +485,16 @@ class ViewController: UIViewController {
|
|
|
485
485
|
self.dismiss(animated: true)
|
|
486
486
|
}
|
|
487
487
|
|
|
488
|
+
func getTopMostViewController() -> UIViewController? {
|
|
489
|
+
var topMostViewController = UIApplication.shared.keyWindow?.rootViewController
|
|
490
|
+
|
|
491
|
+
while let presentedViewController = topMostViewController?.presentedViewController {
|
|
492
|
+
topMostViewController = presentedViewController
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
return topMostViewController
|
|
496
|
+
}
|
|
497
|
+
|
|
488
498
|
@objc private func ChangedOrientation() {
|
|
489
499
|
var width: CGFloat = 0.0
|
|
490
500
|
var height: CGFloat = 0.0
|