accurascan_kyc 1.1.1 → 1.1.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.
package/accurascan-kyc.podspec
CHANGED
|
@@ -20,7 +20,7 @@ Pod::Spec.new do |s|
|
|
|
20
20
|
|
|
21
21
|
s.dependency "React-Core"
|
|
22
22
|
s.static_framework = true
|
|
23
|
-
s.dependency "AccuraKYC_Sim","3.2.
|
|
23
|
+
s.dependency "AccuraKYC_Sim","3.2.5"
|
|
24
24
|
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
25
25
|
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
26
26
|
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
|
package/android/build.gradle
CHANGED
|
@@ -104,7 +104,7 @@ dependencies {
|
|
|
104
104
|
// For Accura Face match
|
|
105
105
|
implementation 'com.github.accurascan:AccuraFaceMatch:3.2.0'
|
|
106
106
|
// for liveness
|
|
107
|
-
implementation 'com.github.accurascan:Liveness-Android:3.
|
|
107
|
+
implementation 'com.github.accurascan:Liveness-Android:3.3.0'
|
|
108
108
|
implementation 'com.squareup.picasso:picasso:2.71828'
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -372,6 +372,15 @@ public class OcrResultActivity extends Activity implements FaceCallback {
|
|
|
372
372
|
}else {
|
|
373
373
|
livenessCustomization.setLowLightTolerence(-1/*lowLightTolerence*/);
|
|
374
374
|
}
|
|
375
|
+
if (livenessConfig.has("setApiKey")){
|
|
376
|
+
try {
|
|
377
|
+
livenessCustomization.setApiKey(livenessConfig.getString("setApiKey"));
|
|
378
|
+
} catch (JSONException e) {
|
|
379
|
+
e.printStackTrace();
|
|
380
|
+
}
|
|
381
|
+
}else {
|
|
382
|
+
livenessCustomization.setApiKey("");
|
|
383
|
+
}
|
|
375
384
|
if (livenessConfig.has("setfeedbackDialogMessage")){
|
|
376
385
|
try {
|
|
377
386
|
livenessCustomization.feedbackDialogMessage = livenessConfig.getString("setfeedbackDialogMessage");
|
package/ios/LVController.swift
CHANGED
|
@@ -33,10 +33,25 @@ class LVController: UIViewController,LivenessData,FacematchData
|
|
|
33
33
|
super.viewWillAppear(animated)
|
|
34
34
|
|
|
35
35
|
if isLiveness{
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
if livenessConfig["backGroundColor"] != nil{
|
|
37
|
+
liveness.setBackGroundColor(livenessConfig["backGroundColor"] as! String)
|
|
38
|
+
}
|
|
39
|
+
if livenessConfig["closeIconColor"] != nil{
|
|
40
|
+
liveness.setCloseIconColor(livenessConfig["closeIconColor"] as! String)
|
|
41
|
+
}
|
|
42
|
+
if livenessConfig["feedbackBackGroundColor"] != nil{
|
|
43
|
+
liveness.setFeedbackBackGroundColor(livenessConfig["feedbackBackGroundColor"] as! String)
|
|
44
|
+
}
|
|
45
|
+
if livenessConfig["feedbackTextColor"] != nil{
|
|
46
|
+
liveness.setFeedbackTextColor(livenessConfig["feedbackTextColor"] as! String)
|
|
47
|
+
}
|
|
48
|
+
if livenessConfig["setApiKey"] != nil {
|
|
49
|
+
// print("\(livenessConfig["setLivenessURL"])")
|
|
50
|
+
liveness.setApiKey(livenessConfig["setApiKey"] as! String)
|
|
51
|
+
}else{
|
|
52
|
+
liveness.setApiKey("")
|
|
53
|
+
|
|
54
|
+
}
|
|
40
55
|
if livenessConfig["setLivenessURL"] != nil {
|
|
41
56
|
// print("\(livenessConfig["setLivenessURL"])")
|
|
42
57
|
liveness.setLivenessURL(livenessConfig["setLivenessURL"] as! String)
|
|
@@ -127,10 +142,22 @@ class LVController: UIViewController,LivenessData,FacematchData
|
|
|
127
142
|
closeMe()
|
|
128
143
|
}
|
|
129
144
|
}else if isfacematch{
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
145
|
+
if faceArgs["backGroundColor"] != nil {
|
|
146
|
+
facematch.setBackGroundColor(faceArgs["backGroundColor"] as! String)
|
|
147
|
+
|
|
148
|
+
}
|
|
149
|
+
if faceArgs["closeIconColor"] != nil {
|
|
150
|
+
facematch.setCloseIconColor(faceArgs["closeIconColor"] as! String)
|
|
151
|
+
|
|
152
|
+
}
|
|
153
|
+
if faceArgs["feedbackBackGroundColor"] != nil {
|
|
154
|
+
facematch.setFeedbackBackGroundColor(faceArgs["feedbackBackGroundColor"] as! String)
|
|
155
|
+
|
|
156
|
+
}
|
|
157
|
+
if faceArgs["feedbackTextColor"] != nil {
|
|
158
|
+
facematch.setFeedbackTextColor(faceArgs["feedbackTextColor"] as! String)
|
|
159
|
+
|
|
160
|
+
}
|
|
134
161
|
|
|
135
162
|
if faceArgs["setFeedbackTextSize"] != nil {
|
|
136
163
|
facematch.setFeedbackTextSize((faceArgs["setFeedbackTextSize"] as? Float)!)
|