assentify-sdk-react-native 1.0.0-Beta.1 → 1.0.0-Beta.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/README.md +5 -0
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/assentifysdk/AssentifySdkModule.kt +5 -11
- package/android/src/main/java/com/assentifysdk/FlowActivity.kt +2 -3
- package/assentify-sdk.podspec +1 -1
- package/ios/NativeAssentifySdk.mm +1 -2
- package/ios/NativeAssentifySdk.swift +29 -32
- package/lib/commonjs/AssentifyWrapper.js +2 -2
- package/lib/commonjs/AssentifyWrapper.js.map +1 -1
- package/lib/module/AssentifyWrapper.js +2 -2
- package/lib/module/AssentifyWrapper.js.map +1 -1
- package/lib/typescript/example/src/Home.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts +1 -1
- package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts.map +1 -1
- package/lib/typescript/lib/module/AssentifyWrapper.d.ts +1 -1
- package/lib/typescript/lib/module/AssentifyWrapper.d.ts.map +1 -1
- package/lib/typescript/lib/module/index.d.ts +1 -1
- package/lib/typescript/src/AssentifyWrapper.d.ts +1 -1
- package/lib/typescript/src/AssentifyWrapper.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/AssentifyWrapper.ts +2 -4
package/README.md
CHANGED
|
@@ -93,6 +93,11 @@ yarn add assentify-sdk-react-native
|
|
|
93
93
|
|
|
94
94
|
## Versions
|
|
95
95
|
|
|
96
|
+
**1.0.0-Beta.2**
|
|
97
|
+
1. *Support SDK initialization from local configuration file*+
|
|
98
|
+
2. *Support email and phone number OTP verification on the signing step*
|
|
99
|
+
|
|
100
|
+
|
|
96
101
|
**1.0.0-Beta.1**
|
|
97
102
|
1. **Support filters for Assisted Data Entry**
|
|
98
103
|
2. **Support events on step completion**
|
package/android/build.gradle
CHANGED
|
@@ -101,7 +101,7 @@ dependencies {
|
|
|
101
101
|
compileOnly("com.facebook.react:react-android")
|
|
102
102
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
103
103
|
|
|
104
|
-
implementation 'com.github.AssentifyLTD:Assentify.SDK.Android:1.0.0-Beta.
|
|
104
|
+
implementation 'com.github.AssentifyLTD:Assentify.SDK.Android:1.0.0-Beta.13'
|
|
105
105
|
|
|
106
106
|
implementation 'com.google.code.gson:gson:2.13.2'
|
|
107
107
|
implementation 'androidx.navigation:navigation-fragment-ktx:2.9.7'
|
|
@@ -57,8 +57,7 @@ class AssentifySdkModule(context: ReactApplicationContext) :
|
|
|
57
57
|
@ReactMethod
|
|
58
58
|
fun initialize(
|
|
59
59
|
apiKey: String,
|
|
60
|
-
|
|
61
|
-
instanceHash: String,
|
|
60
|
+
configFileName: String,
|
|
62
61
|
performLivenessFace: Boolean? = null,
|
|
63
62
|
ENV_CustomColor: String? = null,
|
|
64
63
|
enableDetect: Boolean = true,
|
|
@@ -83,10 +82,9 @@ class AssentifySdkModule(context: ReactApplicationContext) :
|
|
|
83
82
|
) {
|
|
84
83
|
try {
|
|
85
84
|
if (apiKey.isNullOrBlank() ||
|
|
86
|
-
|
|
87
|
-
instanceHash.isNullOrBlank()
|
|
85
|
+
configFileName.isNullOrBlank()
|
|
88
86
|
) {
|
|
89
|
-
Log.e(NAME, "apiKey,
|
|
87
|
+
Log.e(NAME, "apiKey, configFileName are mandatory parameters")
|
|
90
88
|
return
|
|
91
89
|
}
|
|
92
90
|
|
|
@@ -97,8 +95,7 @@ class AssentifySdkModule(context: ReactApplicationContext) :
|
|
|
97
95
|
println("$tag ==============================================")
|
|
98
96
|
println("$tag Assentify SDK Initialized")
|
|
99
97
|
println("$tag apiKey: $apiKey")
|
|
100
|
-
println("$tag
|
|
101
|
-
println("$tag instanceHash: $instanceHash")
|
|
98
|
+
println("$tag configFileName: $configFileName")
|
|
102
99
|
println("$tag performLivenessFace: $performLivenessFace")
|
|
103
100
|
println("$tag ENV_CustomColor: $ENV_CustomColor")
|
|
104
101
|
println("$tag enableDetect: $enableDetect")
|
|
@@ -152,14 +149,12 @@ class AssentifySdkModule(context: ReactApplicationContext) :
|
|
|
152
149
|
val sharedPreferences =
|
|
153
150
|
reactApplicationContext.getSharedPreferences("BlockLoaders", Context.MODE_PRIVATE)
|
|
154
151
|
val editor = sharedPreferences.edit()
|
|
155
|
-
editor.putString("instanceHash", instanceHash)
|
|
156
152
|
editor.apply()
|
|
157
153
|
|
|
158
154
|
assentifySdk =
|
|
159
155
|
AssentifySdk(
|
|
160
156
|
apiKey,
|
|
161
|
-
|
|
162
|
-
instanceHash,
|
|
157
|
+
configFileName,
|
|
163
158
|
environmentalConditions,
|
|
164
159
|
this,
|
|
165
160
|
performActiveLivenessFace = performLivenessFace,
|
|
@@ -336,7 +331,6 @@ class AssentifySdkModule(context: ReactApplicationContext) :
|
|
|
336
331
|
|
|
337
332
|
val sharedDefinitions =
|
|
338
333
|
reactApplicationContext.getSharedPreferences("BlockLoaders", Context.MODE_PRIVATE)
|
|
339
|
-
val instanceHashStr = sharedDefinitions.getString("instanceHash", "")!!
|
|
340
334
|
|
|
341
335
|
|
|
342
336
|
var wrapUp: SubmitRequestModel? = null
|
|
@@ -76,7 +76,6 @@ class FlowActivity : AppCompatActivity() , FlowCallBack {
|
|
|
76
76
|
enableNfc = intent.getBooleanExtra("enableNfc", false)
|
|
77
77
|
enableQr = intent.getBooleanExtra("enableQr", false)
|
|
78
78
|
val clear = intent.getBooleanExtra("clear", false)
|
|
79
|
-
|
|
80
79
|
// ========= 3) Receive & parse JSON for blockLoaderCustomProperties =========
|
|
81
80
|
val jsonBlockLoaderCustomProperties =
|
|
82
81
|
intent.getStringExtra("jsonBlockLoaderCustomProperties")!!
|
|
@@ -139,11 +138,11 @@ class FlowActivity : AppCompatActivity() , FlowCallBack {
|
|
|
139
138
|
}
|
|
140
139
|
|
|
141
140
|
|
|
142
|
-
|
|
143
|
-
|
|
144
141
|
if (clear) {
|
|
145
142
|
assentifySdk.clearFlow(this@FlowActivity);
|
|
146
143
|
}
|
|
144
|
+
|
|
145
|
+
|
|
147
146
|
val flowEnvironmentalConditions = FlowEnvironmentalConditions(
|
|
148
147
|
logoUrl = logoUrl!!,
|
|
149
148
|
svgBackgroundImageUrl = svgBackgroundImageUrl!!,
|
package/assentify-sdk.podspec
CHANGED
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
@interface RCT_EXTERN_MODULE(NativeAssentifySdk, RCTEventEmitter)
|
|
5
5
|
|
|
6
6
|
RCT_EXTERN_METHOD(initialize: (NSString *)apiKey
|
|
7
|
-
|
|
8
|
-
instanceHash:(NSString *)interaction
|
|
7
|
+
configFileName:(NSString *)configFileName
|
|
9
8
|
performLivenessFace:(BOOL *)performLivenessFace
|
|
10
9
|
ENV_CustomColor:(NSString *)ENV_CustomColor
|
|
11
10
|
enableDetect:(BOOL *)enableDetect
|
|
@@ -6,7 +6,7 @@ import AssentifySdk
|
|
|
6
6
|
@objc(NativeAssentifySdk)
|
|
7
7
|
class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDelegate,FlowDelegate{
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -27,8 +27,7 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
27
27
|
@objc
|
|
28
28
|
func initialize(_
|
|
29
29
|
apiKey: String,
|
|
30
|
-
|
|
31
|
-
instanceHash: String,
|
|
30
|
+
configFileName: String,
|
|
32
31
|
performLivenessFace: Bool = false,
|
|
33
32
|
ENV_CustomColor: String = "#f5a103",
|
|
34
33
|
enableDetect: Bool = true,
|
|
@@ -50,8 +49,8 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
50
49
|
countDownNumbersColor: String = "#f5a103",
|
|
51
50
|
) -> Void {
|
|
52
51
|
|
|
53
|
-
if(apiKey.isEmpty ||
|
|
54
|
-
print("apiKey,
|
|
52
|
+
if(apiKey.isEmpty || configFileName.isEmpty ){
|
|
53
|
+
print("apiKey, configFileName are mandatory parameters")
|
|
55
54
|
return
|
|
56
55
|
}
|
|
57
56
|
|
|
@@ -62,8 +61,7 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
62
61
|
print("\(tag) ==============================================")
|
|
63
62
|
print("\(tag) Assentify SDK Initialized")
|
|
64
63
|
print("\(tag) apiKey: \(apiKey)")
|
|
65
|
-
print("\(tag)
|
|
66
|
-
print("\(tag) instanceHash: \(instanceHash)")
|
|
64
|
+
print("\(tag) configFileName: \(configFileName)")
|
|
67
65
|
print("\(tag) performLivenessFace: \(performLivenessFace)")
|
|
68
66
|
print("\(tag) ENV_CustomColor: \(ENV_CustomColor)")
|
|
69
67
|
print("\(tag) enableDetect: \(enableDetect)")
|
|
@@ -93,7 +91,6 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
93
91
|
self.sendEvent(withName: "AppResult",body : eventResultMap)
|
|
94
92
|
}
|
|
95
93
|
|
|
96
|
-
UserDefaults.standard.set(instanceHash, forKey:"instanceHash")
|
|
97
94
|
// UserDefaults.standard.set(previewURL, forKey:"previewURL")
|
|
98
95
|
|
|
99
96
|
|
|
@@ -136,8 +133,7 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
136
133
|
|
|
137
134
|
self.assentifySdk = AssentifySdk(
|
|
138
135
|
apiKey: apiKey,
|
|
139
|
-
|
|
140
|
-
interaction: instanceHash,
|
|
136
|
+
configFileName: configFileName,
|
|
141
137
|
environmentalConditions: environmentalConditions,
|
|
142
138
|
assentifySdkDelegate: self,
|
|
143
139
|
performActiveLivenessFace: performLivenessFace
|
|
@@ -170,7 +166,7 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
170
166
|
|
|
171
167
|
templatesByCountry = self.assentifySdk!.getTemplates(stepID: stepId)
|
|
172
168
|
}
|
|
173
|
-
|
|
169
|
+
|
|
174
170
|
do {
|
|
175
171
|
let jsonDataTemplates = try JSONEncoder().encode(self.templatesByCountry)
|
|
176
172
|
let jsonStringTemplates = String(decoding: jsonDataTemplates, as: UTF8.self)
|
|
@@ -353,7 +349,6 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
353
349
|
func submitData(_ data: [String: Any]) {
|
|
354
350
|
|
|
355
351
|
DispatchQueue.main.async {
|
|
356
|
-
let instanceHashValue = UserDefaults.standard.string(forKey: "instanceHash") ?? ""
|
|
357
352
|
|
|
358
353
|
var submitRequestModel : [SubmitRequestModel] = []
|
|
359
354
|
var extractedInformationContextAwareSigning: [String: String] = [:]
|
|
@@ -640,7 +635,7 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
640
635
|
func onError(message: String) {
|
|
641
636
|
///
|
|
642
637
|
}
|
|
643
|
-
|
|
638
|
+
|
|
644
639
|
|
|
645
640
|
@objc
|
|
646
641
|
func startFlow(
|
|
@@ -677,7 +672,7 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
677
672
|
angleDegreesClickColors: angleDegreesClickColors,
|
|
678
673
|
holdUntilClickColors: holdUntilClickColors,
|
|
679
674
|
backgroundType: backgroundType,
|
|
680
|
-
|
|
675
|
+
clear: clear,
|
|
681
676
|
language: language,
|
|
682
677
|
enableNfc: enableNfc,
|
|
683
678
|
enableQr: enableQr,
|
|
@@ -687,7 +682,7 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
687
682
|
|
|
688
683
|
|
|
689
684
|
|
|
690
|
-
|
|
685
|
+
|
|
691
686
|
func navToFlow(
|
|
692
687
|
logoUrl: String,
|
|
693
688
|
svgBackgroundImageUrl: String,
|
|
@@ -708,14 +703,14 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
708
703
|
enableQr: Bool,
|
|
709
704
|
blockLoaderCustomProperties: String
|
|
710
705
|
) {
|
|
711
|
-
|
|
706
|
+
|
|
712
707
|
let angleBg = angleDegreesBackgroundColors.floatValue
|
|
713
708
|
let holdBg = holdUntilBackgroundColors.floatValue
|
|
714
709
|
let angleClick = angleDegreesClickColors.floatValue
|
|
715
710
|
let holdClick = holdUntilClickColors.floatValue
|
|
716
|
-
|
|
711
|
+
|
|
717
712
|
var parsedBlockLoaderCustomProperties: [String: Any] = [:]
|
|
718
|
-
|
|
713
|
+
|
|
719
714
|
if let data = blockLoaderCustomProperties.data(using: .utf8) {
|
|
720
715
|
do {
|
|
721
716
|
if let dict = try JSONSerialization.jsonObject(with: data, options: []) as? [String: Any] {
|
|
@@ -725,9 +720,9 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
725
720
|
print("Failed to parse blockLoaderCustomProperties: \(error)")
|
|
726
721
|
}
|
|
727
722
|
}
|
|
728
|
-
|
|
723
|
+
|
|
729
724
|
let tag = "FlowActivity"
|
|
730
|
-
|
|
725
|
+
|
|
731
726
|
print("\(tag) ===== Received Extras =====")
|
|
732
727
|
print("\(tag) logoUrl: \(logoUrl)")
|
|
733
728
|
print("\(tag) svgBackgroundImageUrl: \(svgBackgroundImageUrl)")
|
|
@@ -748,7 +743,7 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
748
743
|
print("\(tag) clear: \(clear)")
|
|
749
744
|
print("\(tag) blockLoaderCustomProperties: \(parsedBlockLoaderCustomProperties)")
|
|
750
745
|
print("\(tag) =================================")
|
|
751
|
-
|
|
746
|
+
|
|
752
747
|
let bType: BackgroundType = {
|
|
753
748
|
switch backgroundType.lowercased() {
|
|
754
749
|
case "image":
|
|
@@ -759,10 +754,10 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
759
754
|
return .color
|
|
760
755
|
}
|
|
761
756
|
}()
|
|
762
|
-
|
|
757
|
+
|
|
763
758
|
var backgroundColor: BackgroundStyle? = nil
|
|
764
759
|
var clickColor: BackgroundStyle? = nil
|
|
765
|
-
|
|
760
|
+
|
|
766
761
|
if !backgroundColors.isEmpty {
|
|
767
762
|
if backgroundColors.count >= 2 {
|
|
768
763
|
backgroundColor = .gradient(
|
|
@@ -774,7 +769,7 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
774
769
|
backgroundColor = .solid(hex: first)
|
|
775
770
|
}
|
|
776
771
|
}
|
|
777
|
-
|
|
772
|
+
|
|
778
773
|
if !clickColors.isEmpty {
|
|
779
774
|
if clickColors.count >= 2 {
|
|
780
775
|
clickColor = .gradient(
|
|
@@ -786,7 +781,7 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
786
781
|
clickColor = .solid(hex: first)
|
|
787
782
|
}
|
|
788
783
|
}
|
|
789
|
-
|
|
784
|
+
|
|
790
785
|
let flowEnvironmentalConditions = FlowEnvironmentalConditions(
|
|
791
786
|
backgroundType: bType,
|
|
792
787
|
logoUrl: logoUrl,
|
|
@@ -803,11 +798,13 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
803
798
|
blockLoaderCustomProperties: parsedBlockLoaderCustomProperties
|
|
804
799
|
)
|
|
805
800
|
DispatchQueue.main.async {
|
|
801
|
+
|
|
806
802
|
if(clear){
|
|
807
803
|
self.assentifySdk!.clearFlow();
|
|
808
804
|
}
|
|
805
|
+
|
|
809
806
|
if let currentViewController = UIApplication.shared.keyWindow?.rootViewController {
|
|
810
|
-
|
|
807
|
+
|
|
811
808
|
self.assentifySdk!.startFlow(
|
|
812
809
|
from: currentViewController,
|
|
813
810
|
flowDelegate: self,
|
|
@@ -815,25 +812,25 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
815
812
|
)
|
|
816
813
|
}
|
|
817
814
|
}
|
|
818
|
-
|
|
815
|
+
|
|
819
816
|
|
|
820
817
|
}
|
|
821
|
-
|
|
818
|
+
|
|
822
819
|
public func onFlowCompleted(flowData: [FlowCompletedModel]) {
|
|
823
820
|
DispatchQueue.main.async {
|
|
824
821
|
var eventData : [String: Any] = ["DataModel" : self.flowCompletedModelToJsonString(flowData)!,]
|
|
825
822
|
self.sendEvent(withName: "OnNativeFlowCompleted",body : eventData)
|
|
826
823
|
}
|
|
827
824
|
}
|
|
828
|
-
|
|
829
|
-
|
|
825
|
+
|
|
826
|
+
|
|
830
827
|
public func onStepCompleted(stepModel: FlowCompletedModel) {
|
|
831
828
|
DispatchQueue.main.async {
|
|
832
829
|
var eventData : [String: Any] = ["DataModel" : self.flowCompletedModelToJsonString([stepModel])!,]
|
|
833
830
|
self.sendEvent(withName: "OnNativeStepCompleted",body : eventData)
|
|
834
831
|
}
|
|
835
832
|
}
|
|
836
|
-
|
|
833
|
+
|
|
837
834
|
func flowCompletedModelToJsonString(_ models: [FlowCompletedModel]) -> String? {
|
|
838
835
|
do {
|
|
839
836
|
let encoder = JSONEncoder()
|
|
@@ -844,7 +841,7 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
|
|
|
844
841
|
return nil
|
|
845
842
|
}
|
|
846
843
|
}
|
|
847
|
-
|
|
844
|
+
|
|
848
845
|
}
|
|
849
846
|
|
|
850
847
|
extension UIViewController {
|
|
@@ -19,8 +19,8 @@ const AssentifySdk = _reactNative.NativeModules.NativeAssentifySdk ? _reactNativ
|
|
|
19
19
|
});
|
|
20
20
|
const AssentifyWrapper = {
|
|
21
21
|
/// Initialize
|
|
22
|
-
initialize: function (apiKey,
|
|
23
|
-
AssentifySdk.initialize(apiKey,
|
|
22
|
+
initialize: function (apiKey, configFileName, performLivenessFace, ENV_CustomColor, enableDetect, androidMotionCardLimit, androidMotionPassportLimit, iOSMotionCardsLimit, iOSMotionFaceLimit, androidBrightnessHighThreshold, androidBrightnessLowThreshold, iOSBrightnessHighThreshold, iOSBrightnessLowThreshold, activeLiveType, activeLivenessCheckCount, faceLivenessRetryCount, minRam, iOSMinRam, minCPUCores, manualClickColor, countDownNumbersColor) {
|
|
23
|
+
AssentifySdk.initialize(apiKey, configFileName, performLivenessFace ?? false, ENV_CustomColor ?? '#f5a103', enableDetect ?? true, androidMotionCardLimit ?? 10, androidMotionPassportLimit ?? 15, iOSMotionCardsLimit ?? 30, iOSMotionFaceLimit ?? 5, androidBrightnessHighThreshold ?? 180, androidBrightnessLowThreshold ?? 50, iOSBrightnessHighThreshold ?? 255, iOSBrightnessLowThreshold ?? 50, activeLiveType ?? "NONE", activeLivenessCheckCount ?? 0, faceLivenessRetryCount ?? 2, minRam ?? 8, iOSMinRam ?? 2, minCPUCores ?? 6, manualClickColor ?? '#f5a103', countDownNumbersColor ?? '#f5a103');
|
|
24
24
|
},
|
|
25
25
|
/// Passport
|
|
26
26
|
startScanPassport: function (language, stepID) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","NativeAssentifySdk","NativeModules","AssentifySdk","Proxy","get","Error","AssentifyWrapper","initialize","apiKey","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","NativeAssentifySdk","NativeModules","AssentifySdk","Proxy","get","Error","AssentifyWrapper","initialize","apiKey","configFileName","performLivenessFace","ENV_CustomColor","enableDetect","androidMotionCardLimit","androidMotionPassportLimit","iOSMotionCardsLimit","iOSMotionFaceLimit","androidBrightnessHighThreshold","androidBrightnessLowThreshold","iOSBrightnessHighThreshold","iOSBrightnessLowThreshold","activeLiveType","activeLivenessCheckCount","faceLivenessRetryCount","minRam","iOSMinRam","minCPUCores","manualClickColor","countDownNumbersColor","startScanPassport","language","stepID","startScanOther","startScanOtherIDPage","startScanIDCard","templatesByCountryObject","flippingCard","startScanIDPage","JSON","stringify","startFaceMatch","imageUrl","showCountDown","startScanQr","startScanQrPage","submitData","dataMap","startFlow","logoUrl","svgBackgroundImageUrl","textColor","secondaryTextColor","backgroundCardColor","accentColor","backgroundColors","clickColors","angleDegreesBackgroundColors","holdUntilBackgroundColors","angleDegreesClickColors","holdUntilClickColors","backgroundType","clear","enableNfc","enableQr","blockLoaderCustomProperties","_default","exports"],"sourceRoot":"..\\..\\src","sources":["AssentifyWrapper.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAKA,MAAMC,aAAa,GACjB,kGAAkG,GAClGC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAM;EAAEC;AAAmB,CAAC,GAAGC,0BAAa;AAE5C,MAAMC,YAAY,GAAGD,0BAAa,CAACD,kBAAkB,GACjDC,0BAAa,CAACD,kBAAkB,GAChC,IAAIG,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACV,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEL,MAAMW,gBAAgB,GAAG;EACxB;EACCC,UAAU,EAAE,SAAAA,CACVC,MAAc,EACdC,cAAsB,EACtBC,mBAA6B,EAC7BC,eAAwB,EACxBC,YAAsB,EACtBC,sBAA+B,EAC/BC,0BAAmC,EACnCC,mBAA4B,EAC5BC,kBAA2B,EAC3BC,8BAAuC,EACvCC,6BAAsC,EACtCC,0BAAmC,EACnCC,yBAAkC,EAClCC,cAAuB,EACvBC,wBAAiC,EACjCC,sBAA+B,EAC/BC,MAAe,EACfC,SAAkB,EAClBC,WAAqB,EACrBC,gBAAyB,EACzBC,qBAA8B,EAC9B;IACE1B,YAAY,CAACK,U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@ -13,8 +13,8 @@ const AssentifySdk = NativeModules.NativeAssentifySdk ? NativeModules.NativeAsse
|
|
|
13
13
|
});
|
|
14
14
|
const AssentifyWrapper = {
|
|
15
15
|
/// Initialize
|
|
16
|
-
initialize: function (apiKey,
|
|
17
|
-
AssentifySdk.initialize(apiKey,
|
|
16
|
+
initialize: function (apiKey, configFileName, performLivenessFace, ENV_CustomColor, enableDetect, androidMotionCardLimit, androidMotionPassportLimit, iOSMotionCardsLimit, iOSMotionFaceLimit, androidBrightnessHighThreshold, androidBrightnessLowThreshold, iOSBrightnessHighThreshold, iOSBrightnessLowThreshold, activeLiveType, activeLivenessCheckCount, faceLivenessRetryCount, minRam, iOSMinRam, minCPUCores, manualClickColor, countDownNumbersColor) {
|
|
17
|
+
AssentifySdk.initialize(apiKey, configFileName, performLivenessFace ?? false, ENV_CustomColor ?? '#f5a103', enableDetect ?? true, androidMotionCardLimit ?? 10, androidMotionPassportLimit ?? 15, iOSMotionCardsLimit ?? 30, iOSMotionFaceLimit ?? 5, androidBrightnessHighThreshold ?? 180, androidBrightnessLowThreshold ?? 50, iOSBrightnessHighThreshold ?? 255, iOSBrightnessLowThreshold ?? 50, activeLiveType ?? "NONE", activeLivenessCheckCount ?? 0, faceLivenessRetryCount ?? 2, minRam ?? 8, iOSMinRam ?? 2, minCPUCores ?? 6, manualClickColor ?? '#f5a103', countDownNumbersColor ?? '#f5a103');
|
|
18
18
|
},
|
|
19
19
|
/// Passport
|
|
20
20
|
startScanPassport: function (language, stepID) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","NativeAssentifySdk","AssentifySdk","Proxy","get","Error","AssentifyWrapper","initialize","apiKey","
|
|
1
|
+
{"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","NativeAssentifySdk","AssentifySdk","Proxy","get","Error","AssentifyWrapper","initialize","apiKey","configFileName","performLivenessFace","ENV_CustomColor","enableDetect","androidMotionCardLimit","androidMotionPassportLimit","iOSMotionCardsLimit","iOSMotionFaceLimit","androidBrightnessHighThreshold","androidBrightnessLowThreshold","iOSBrightnessHighThreshold","iOSBrightnessLowThreshold","activeLiveType","activeLivenessCheckCount","faceLivenessRetryCount","minRam","iOSMinRam","minCPUCores","manualClickColor","countDownNumbersColor","startScanPassport","language","stepID","startScanOther","startScanOtherIDPage","startScanIDCard","templatesByCountryObject","flippingCard","startScanIDPage","JSON","stringify","startFaceMatch","imageUrl","showCountDown","startScanQr","startScanQrPage","submitData","dataMap","startFlow","logoUrl","svgBackgroundImageUrl","textColor","secondaryTextColor","backgroundCardColor","accentColor","backgroundColors","clickColors","angleDegreesBackgroundColors","holdUntilBackgroundColors","angleDegreesClickColors","holdUntilClickColors","backgroundType","clear","enableNfc","enableQr","blockLoaderCustomProperties"],"sourceRoot":"..\\..\\src","sources":["AssentifyWrapper.ts"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAwB,cAAc;AAKtE,MAAMC,aAAa,GACjB,kGAAkG,GAClGD,QAAQ,CAACE,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAM;EAAEC;AAAmB,CAAC,GAAGN,aAAa;AAE5C,MAAMO,YAAY,GAAGP,aAAa,CAACM,kBAAkB,GACjDN,aAAa,CAACM,kBAAkB,GAChC,IAAIE,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACR,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEL,MAAMS,gBAAgB,GAAG;EACxB;EACCC,UAAU,EAAE,SAAAA,CACVC,MAAc,EACdC,cAAsB,EACtBC,mBAA6B,EAC7BC,eAAwB,EACxBC,YAAsB,EACtBC,sBAA+B,EAC/BC,0BAAmC,EACnCC,mBAA4B,EAC5BC,kBAA2B,EAC3BC,8BAAuC,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ClBC,QAAQ,IAAI,KAAK,EACjBzB,IAAI,CAACC,SAAS,CAACyB,2BAA2B,IAAI,CAAC,CAAC,CAClD,CAAC;EACL;AAEF,CAAC;AAED,eAAe1D,gBAAgB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Home.d.ts","sourceRoot":"","sources":["../../../../example/src/Home.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAmBnD,QAAA,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"Home.d.ts","sourceRoot":"","sources":["../../../../example/src/Home.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAmBnD,QAAA,MAAM,IAAI,yBA4YT,CAAC;AAcF,eAAe,IAAI,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const __esModule: boolean;
|
|
2
2
|
export default AssentifyWrapper;
|
|
3
3
|
declare namespace AssentifyWrapper {
|
|
4
|
-
function initialize(apiKey: any,
|
|
4
|
+
function initialize(apiKey: any, configFileName: any, performLivenessFace: any, ENV_CustomColor: any, enableDetect: any, androidMotionCardLimit: any, androidMotionPassportLimit: any, iOSMotionCardsLimit: any, iOSMotionFaceLimit: any, androidBrightnessHighThreshold: any, androidBrightnessLowThreshold: any, iOSBrightnessHighThreshold: any, iOSBrightnessLowThreshold: any, activeLiveType: any, activeLivenessCheckCount: any, faceLivenessRetryCount: any, minRam: any, iOSMinRam: any, minCPUCores: any, manualClickColor: any, countDownNumbersColor: any): void;
|
|
5
5
|
function startScanPassport(language: any, stepID: any): void;
|
|
6
6
|
function startScanOther(language: any, stepID: any): void;
|
|
7
7
|
function startScanIDCard(templatesByCountryObject: any, language: any, flippingCard: any, stepID: any): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssentifyWrapper.d.ts","sourceRoot":"","sources":["../../../commonjs/AssentifyWrapper.js"],"names":[],"mappings":";;;IAqBc,
|
|
1
|
+
{"version":3,"file":"AssentifyWrapper.d.ts","sourceRoot":"","sources":["../../../commonjs/AssentifyWrapper.js"],"names":[],"mappings":";;;IAqBc,6iBAEX;IAEkB,6DAElB;IAEe,0DAEf;IAEgB,6GAEhB;IAEe,8EAEf;IACY,sFAEZ;IAEW,wCAEX;IAGU,8aAEV"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default AssentifyWrapper;
|
|
2
2
|
declare namespace AssentifyWrapper {
|
|
3
|
-
function initialize(apiKey: any,
|
|
3
|
+
function initialize(apiKey: any, configFileName: any, performLivenessFace: any, ENV_CustomColor: any, enableDetect: any, androidMotionCardLimit: any, androidMotionPassportLimit: any, iOSMotionCardsLimit: any, iOSMotionFaceLimit: any, androidBrightnessHighThreshold: any, androidBrightnessLowThreshold: any, iOSBrightnessHighThreshold: any, iOSBrightnessLowThreshold: any, activeLiveType: any, activeLivenessCheckCount: any, faceLivenessRetryCount: any, minRam: any, iOSMinRam: any, minCPUCores: any, manualClickColor: any, countDownNumbersColor: any): void;
|
|
4
4
|
function startScanPassport(language: any, stepID: any): void;
|
|
5
5
|
function startScanOther(language: any, stepID: any): void;
|
|
6
6
|
function startScanIDCard(templatesByCountryObject: any, language: any, flippingCard: any, stepID: any): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssentifyWrapper.d.ts","sourceRoot":"","sources":["../../../module/AssentifyWrapper.js"],"names":[],"mappings":";;IAec,
|
|
1
|
+
{"version":3,"file":"AssentifyWrapper.d.ts","sourceRoot":"","sources":["../../../module/AssentifyWrapper.js"],"names":[],"mappings":";;IAec,6iBAEX;IAEkB,6DAElB;IAEe,0DAEf;IAEgB,6GAEhB;IAEe,8EAEf;IACY,sFAEZ;IAEW,wCAEX;IAGU,8aAEV"}
|
|
@@ -4,7 +4,7 @@ export * from "./ActiveLiveType";
|
|
|
4
4
|
export * from "./BackgroundType";
|
|
5
5
|
export * from "./AssentifyProvider";
|
|
6
6
|
export const Assentify: {
|
|
7
|
-
initialize: (apiKey: any,
|
|
7
|
+
initialize: (apiKey: any, configFileName: any, performLivenessFace: any, ENV_CustomColor: any, enableDetect: any, androidMotionCardLimit: any, androidMotionPassportLimit: any, iOSMotionCardsLimit: any, iOSMotionFaceLimit: any, androidBrightnessHighThreshold: any, androidBrightnessLowThreshold: any, iOSBrightnessHighThreshold: any, iOSBrightnessLowThreshold: any, activeLiveType: any, activeLivenessCheckCount: any, faceLivenessRetryCount: any, minRam: any, iOSMinRam: any, minCPUCores: any, manualClickColor: any, countDownNumbersColor: any) => void;
|
|
8
8
|
startScanPassport: (language: any, stepID: any) => void;
|
|
9
9
|
startScanOther: (language: any, stepID: any) => void;
|
|
10
10
|
startScanIDCard: (templatesByCountryObject: any, language: any, flippingCard: any, stepID: any) => void;
|
|
@@ -2,7 +2,7 @@ import { type LanguageCode } from './Language';
|
|
|
2
2
|
import { type TemplatesByCountry } from './types';
|
|
3
3
|
import { type BackgroundTypeCode } from './BackgroundType';
|
|
4
4
|
declare const AssentifyWrapper: {
|
|
5
|
-
initialize: (apiKey: string,
|
|
5
|
+
initialize: (apiKey: string, configFileName: string, performLivenessFace?: boolean, ENV_CustomColor?: string, enableDetect?: boolean, androidMotionCardLimit?: number, androidMotionPassportLimit?: number, iOSMotionCardsLimit?: number, iOSMotionFaceLimit?: number, androidBrightnessHighThreshold?: number, androidBrightnessLowThreshold?: number, iOSBrightnessHighThreshold?: number, iOSBrightnessLowThreshold?: number, activeLiveType?: String, activeLivenessCheckCount?: number, faceLivenessRetryCount?: number, minRam?: number, iOSMinRam?: number, minCPUCores?: number, manualClickColor?: string, countDownNumbersColor?: string) => void;
|
|
6
6
|
startScanPassport: (language: LanguageCode, stepID: number) => void;
|
|
7
7
|
startScanOther: (language: LanguageCode, stepID: number) => void;
|
|
8
8
|
startScanIDCard: (templatesByCountryObject: TemplatesByCountry, language: LanguageCode, flippingCard: boolean, stepID: number) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssentifyWrapper.d.ts","sourceRoot":"","sources":["../../../src/AssentifyWrapper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAqB3D,QAAA,MAAM,gBAAgB;yBAGV,MAAM,
|
|
1
|
+
{"version":3,"file":"AssentifyWrapper.d.ts","sourceRoot":"","sources":["../../../src/AssentifyWrapper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAqB3D,QAAA,MAAM,gBAAgB;yBAGV,MAAM,kBACE,MAAM,wBACA,OAAO,oBACX,MAAM,iBACT,OAAO,2BACG,MAAM,+BACF,MAAM,wBACb,MAAM,uBACP,MAAM,mCACM,MAAM,kCACP,MAAM,+BACT,MAAM,8BACP,MAAM,mBACjB,MAAM,6BACI,MAAM,2BACR,MAAM,WACtB,MAAM,cACH,MAAM,gBACH,MAAM,qBACF,MAAM,0BACD,MAAM;kCA4BQ,YAAY,UAAS,MAAM;+BAK7B,YAAY,UAAS,MAAM;gDAKV,kBAAkB,YAAW,YAAY,gBAAe,OAAO,UAAS,MAAM;+BAK9F,MAAM,iBAAgB,OAAO,UAAS,MAAM;4CAOhC,kBAAkB,YAAW,YAAY,UAAS,MAAM;0BAM1E,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;0BAQ3C,MAAM,0BACQ,MAAM,cAClB,MAAM,uBACG,MAAM,wBACL,MAAM,gBACd,MAAM,qBACD,MAAM,EAAE,gBACb,MAAM,EAAE,iCACS,MAAM,8BACT,MAAM,4BACR,MAAM,yBACT,MAAM,mBACZ,kBAAkB,UAC3B,OAAO,aACJ,YAAY,cACX,OAAO,aACR,OAAO,gCACW,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAwBtD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -3,7 +3,7 @@ export * from './Language';
|
|
|
3
3
|
export * from './ActiveLiveType';
|
|
4
4
|
export * from './BackgroundType';
|
|
5
5
|
export declare const Assentify: {
|
|
6
|
-
initialize: (apiKey: string,
|
|
6
|
+
initialize: (apiKey: string, configFileName: string, performLivenessFace?: boolean, ENV_CustomColor?: string, enableDetect?: boolean, androidMotionCardLimit?: number, androidMotionPassportLimit?: number, iOSMotionCardsLimit?: number, iOSMotionFaceLimit?: number, androidBrightnessHighThreshold?: number, androidBrightnessLowThreshold?: number, iOSBrightnessHighThreshold?: number, iOSBrightnessLowThreshold?: number, activeLiveType?: String, activeLivenessCheckCount?: number, faceLivenessRetryCount?: number, minRam?: number, iOSMinRam?: number, minCPUCores?: number, manualClickColor?: string, countDownNumbersColor?: string) => void;
|
|
7
7
|
startScanPassport: (language: import("./Language").LanguageCode, stepID: number) => void;
|
|
8
8
|
startScanOther: (language: import("./Language").LanguageCode, stepID: number) => void;
|
|
9
9
|
startScanIDCard: (templatesByCountryObject: import("./types").TemplatesByCountry, language: import("./Language").LanguageCode, flippingCard: boolean, stepID: number) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assentify-sdk-react-native",
|
|
3
|
-
"version": "1.0.0-Beta.
|
|
3
|
+
"version": "1.0.0-Beta.2",
|
|
4
4
|
"description": "This package provides integration with Assentify's services, allowing developers to incorporate Assentify functionalities seamlessly into their applications.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
package/src/AssentifyWrapper.ts
CHANGED
|
@@ -26,8 +26,7 @@ const AssentifyWrapper = {
|
|
|
26
26
|
/// Initialize
|
|
27
27
|
initialize: function (
|
|
28
28
|
apiKey: string,
|
|
29
|
-
|
|
30
|
-
instanceHash: string,
|
|
29
|
+
configFileName: string,
|
|
31
30
|
performLivenessFace?: boolean,
|
|
32
31
|
ENV_CustomColor?: string,
|
|
33
32
|
enableDetect?: boolean,
|
|
@@ -50,8 +49,7 @@ const AssentifyWrapper = {
|
|
|
50
49
|
) {
|
|
51
50
|
AssentifySdk.initialize(
|
|
52
51
|
apiKey,
|
|
53
|
-
|
|
54
|
-
instanceHash,
|
|
52
|
+
configFileName,
|
|
55
53
|
performLivenessFace ?? false,
|
|
56
54
|
ENV_CustomColor ?? '#f5a103',
|
|
57
55
|
enableDetect ?? true,
|