assentify-sdk-react-native 0.0.26 → 0.0.27

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.
Files changed (40) hide show
  1. package/README.md +6 -0
  2. package/android/build.gradle +1 -1
  3. package/android/src/main/java/com/assentifysdk/AssentifySdkModule.kt +13 -6
  4. package/android/src/main/java/com/assentifysdk/FaceMatchActivity.kt +29 -14
  5. package/android/src/main/java/com/assentifysdk/ScanIDActivity.kt +26 -16
  6. package/android/src/main/java/com/assentifysdk/ScanOtherActivity.kt +28 -11
  7. package/android/src/main/java/com/assentifysdk/ScanPassportActivity.kt +31 -14
  8. package/assentify-sdk.podspec +1 -1
  9. package/ios/NativeAssentifySdk.mm +1 -0
  10. package/ios/NativeAssentifySdk.swift +13 -6
  11. package/ios/View/FaceMatchController.swift +11 -6
  12. package/ios/View/IDCardController.swift +5 -1
  13. package/ios/View/OtherController.swift +5 -1
  14. package/ios/View/PassportController.swift +5 -1
  15. package/lib/commonjs/ActiveLiveType.js +2 -1
  16. package/lib/commonjs/ActiveLiveType.js.map +1 -1
  17. package/lib/commonjs/AssentifyWrapper.js +2 -2
  18. package/lib/commonjs/AssentifyWrapper.js.map +1 -1
  19. package/lib/module/ActiveLiveType.js +2 -1
  20. package/lib/module/ActiveLiveType.js.map +1 -1
  21. package/lib/module/AssentifyWrapper.js +2 -2
  22. package/lib/module/AssentifyWrapper.js.map +1 -1
  23. package/lib/typescript/example/android/app/build/intermediates/assets/debug/clarity.d.ts +5 -0
  24. package/lib/typescript/example/android/app/build/intermediates/assets/debug/clarity.d.ts.map +1 -0
  25. package/lib/typescript/example/src/Home.d.ts.map +1 -1
  26. package/lib/typescript/lib/commonjs/ActiveLiveType.d.ts +2 -1
  27. package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts +1 -1
  28. package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts.map +1 -1
  29. package/lib/typescript/lib/module/ActiveLiveType.d.ts +2 -1
  30. package/lib/typescript/lib/module/AssentifyWrapper.d.ts +1 -1
  31. package/lib/typescript/lib/module/AssentifyWrapper.d.ts.map +1 -1
  32. package/lib/typescript/lib/module/index.d.ts +1 -1
  33. package/lib/typescript/src/ActiveLiveType.d.ts +2 -1
  34. package/lib/typescript/src/ActiveLiveType.d.ts.map +1 -1
  35. package/lib/typescript/src/AssentifyWrapper.d.ts +1 -1
  36. package/lib/typescript/src/AssentifyWrapper.d.ts.map +1 -1
  37. package/lib/typescript/src/index.d.ts +1 -1
  38. package/package.json +1 -1
  39. package/src/ActiveLiveType.ts +2 -1
  40. package/src/AssentifyWrapper.ts +4 -2
package/README.md CHANGED
@@ -93,6 +93,12 @@ yarn add assentify-sdk-react-native
93
93
 
94
94
  ## Versions
95
95
 
96
+ **0.0.27**
97
+ - Blink Liveness
98
+ - Face match improvements
99
+ - Uses Feature improvements
100
+ - Adding Logs
101
+
96
102
  **0.0.26**
97
103
  - Face Liveness improvements
98
104
 
@@ -99,7 +99,7 @@ dependencies {
99
99
  implementation "com.facebook.react:react-native:+"
100
100
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
101
101
 
102
- implementation 'com.github.AssentifyLTD:Assentify.SDK.Android:0.0.76'
102
+ implementation 'com.github.AssentifyLTD:Assentify.SDK.Android:0.0.77'
103
103
 
104
104
  /* Assentify Sdk Dependencies */
105
105
  implementation 'com.google.code.gson:gson:2.8.9'
@@ -77,7 +77,9 @@ class AssentifySdkModule(context: ReactApplicationContext) :
77
77
  androidBrightnessLowThreshold:Int = 50,
78
78
  iOSBrightnessHighThreshold:Int = 255,
79
79
  iOSBrightnessLowThreshold:Int = 50,
80
- activeLiveType : String = "NON"
80
+ activeLiveType : String = "NONE",
81
+ activeLivenessCheckCount:Int = 0
82
+
81
83
  ) {
82
84
  try {
83
85
  if (apiKey.isNullOrBlank() ||
@@ -114,13 +116,15 @@ class AssentifySdkModule(context: ReactApplicationContext) :
114
116
  println("$tag iOSBrightnessHighThreshold: $iOSBrightnessHighThreshold")
115
117
  println("$tag iOSBrightnessLowThreshold: $iOSBrightnessLowThreshold")
116
118
  println("$tag ActiveLiveType: $activeLiveType")
119
+ println("$tag ActiveLivenessCheckCount: $activeLivenessCheckCount")
117
120
  println("$tag ==============================================")
118
121
 
119
122
  val typeActive: ActiveLiveType = when (activeLiveType) {
120
123
  "Actions" -> ActiveLiveType.Actions
121
124
  "Wink" -> ActiveLiveType.Wink
122
- "NON" -> ActiveLiveType.NON
123
- else -> ActiveLiveType.NON
125
+ "NONE" -> ActiveLiveType.NONE
126
+ "BLINK" -> ActiveLiveType.BLINK
127
+ else -> ActiveLiveType.NONE
124
128
  }
125
129
 
126
130
  environmentalConditions =
@@ -133,7 +137,8 @@ class AssentifySdkModule(context: ReactApplicationContext) :
133
137
  MotionPassportLimit = androidMotionPassportLimit,
134
138
  BRIGHTNESS_HIGH_THRESHOLD = androidBrightnessHighThreshold,
135
139
  BRIGHTNESS_LOW_THRESHOLD = androidBrightnessLowThreshold,
136
- activeLiveType = typeActive
140
+ activeLiveType = typeActive,
141
+ activeLivenessCheckCount = activeLivenessCheckCount
137
142
  )
138
143
 
139
144
  val eventResultMap = Arguments.createMap().apply {
@@ -264,8 +269,10 @@ class AssentifySdkModule(context: ReactApplicationContext) :
264
269
  )
265
270
  documentCaptureStepModelPreferences.edit().clear().apply()
266
271
 
267
- val sharedPreferences =
268
- reactApplicationContext.getSharedPreferences("StepDefinitions", Context.MODE_PRIVATE)
272
+ val sharedStepDefinitionsPreferences = reactApplicationContext.getSharedPreferences("StepDefinitions", Context.MODE_PRIVATE)
273
+ sharedStepDefinitionsPreferences.edit().clear().apply()
274
+
275
+ val sharedPreferences = reactApplicationContext.getSharedPreferences("StepDefinitions", Context.MODE_PRIVATE)
269
276
  val editor = sharedPreferences.edit()
270
277
  val gson = Gson()
271
278
  val json: String = gson.toJson(configModel.stepDefinitions)
@@ -121,6 +121,13 @@ private lateinit var assentifySdk: AssentifySdk
121
121
 
122
122
  }
123
123
 
124
+ override fun onBackPressed() {
125
+ triggerEvent("onBackClick", null)
126
+ faceMatch.stopScanning();
127
+ finish()
128
+ super.onBackPressed()
129
+ }
130
+
124
131
 
125
132
  fun showPopUpMessage(icon: Int, title: String, subTitle: String, isSending: Boolean) {
126
133
  popUpContainer.visibility = View.VISIBLE
@@ -218,19 +225,27 @@ private lateinit var assentifySdk: AssentifySdk
218
225
 
219
226
  override fun onComplete(dataModel: FaceResponseModel) {
220
227
  triggerCompleteEvent("onComplete",dataModel)
221
- val documentCaptureSharedPreferences = reactApplicationContext.getSharedPreferences("SubmitStepModel", Context.MODE_PRIVATE)
222
- val documentCaptureModel = SubmitRequestModel(
223
- stepID, StepsName.FaceMatch,
224
- convertMap(dataModel.faceExtractedModel!!.outputProperties)
225
- );
226
- val documentCaptureSharedPreferencesEditor = documentCaptureSharedPreferences.edit()
227
- val documentCaptureGson = Gson()
228
- val documentCaptureStep: String = documentCaptureGson.toJson(documentCaptureModel)
229
- documentCaptureSharedPreferencesEditor.putString(
230
- stepID.toString(),
231
- documentCaptureStep
232
- );
233
- documentCaptureSharedPreferencesEditor.apply()
228
+ /** Data To Submit **/
229
+ val documentCaptureSharedPreferences =
230
+ reactApplicationContext.getSharedPreferences("SubmitStepModel", Context.MODE_PRIVATE)
231
+
232
+ val stepKey = stepID.toString()
233
+ val editor = documentCaptureSharedPreferences.edit()
234
+
235
+ if (documentCaptureSharedPreferences.contains(stepKey)) {
236
+ editor.remove(stepKey)
237
+ }
238
+
239
+ val documentCaptureModel = SubmitRequestModel(
240
+ stepID,
241
+ StepsName.FaceMatch,
242
+ convertMap(dataModel.faceExtractedModel!!.outputProperties)
243
+ )
244
+
245
+ val documentCaptureStep = Gson().toJson(documentCaptureModel)
246
+ editor.putString(stepKey, documentCaptureStep)
247
+ editor.apply()
248
+ /** **/
234
249
 
235
250
  runOnUiThread{
236
251
  start = false
@@ -326,7 +341,7 @@ private lateinit var assentifySdk: AssentifySdk
326
341
  ActiveLiveEvents.PitchDown -> infoText.setText("Please move your face down")
327
342
  ActiveLiveEvents.WinkLeft -> infoText.setText("Please wink with your left eye")
328
343
  ActiveLiveEvents.WinkRight -> infoText.setText("Please wink with your right eye")
329
- ActiveLiveEvents.Wink -> infoText.setText("")
344
+ ActiveLiveEvents.BLINK -> infoText.setText("Please blink your eyes")
330
345
  ActiveLiveEvents.Good -> infoText.setText("")
331
346
  }
332
347
  }
@@ -139,7 +139,12 @@ class ScanIDActivity: AppCompatActivity(),
139
139
  }
140
140
  }
141
141
 
142
-
142
+ override fun onBackPressed() {
143
+ triggerEvent("onBackClick", null)
144
+ scanID.stopScanning();
145
+ finish()
146
+ super.onBackPressed()
147
+ }
143
148
 
144
149
  fun showPopUpMessage(icon: Int, title: String, subTitle: String, isSending: Boolean) {
145
150
  popUpContainer.visibility = View.VISIBLE
@@ -257,21 +262,26 @@ class ScanIDActivity: AppCompatActivity(),
257
262
  scanID.stopScanning();
258
263
  /** Data To Submit **/
259
264
 
260
- val documentCaptureSharedPreferences = reactApplicationContext.getSharedPreferences("SubmitStepModel", Context.MODE_PRIVATE)
261
- val documentCaptureModel = SubmitRequestModel(
262
- stepID!!,StepsName.DocumentCapture,
263
- values
264
- );
265
- val documentCaptureSharedPreferencesEditor =
266
- documentCaptureSharedPreferences.edit()
267
- val documentCaptureGson = Gson()
268
- val documentCaptureStep: String =
269
- documentCaptureGson.toJson(documentCaptureModel)
270
- documentCaptureSharedPreferencesEditor.putString(
271
- stepID.toString(),
272
- documentCaptureStep
273
- );
274
- documentCaptureSharedPreferencesEditor.apply()
265
+ val documentCaptureSharedPreferences =
266
+ reactApplicationContext.getSharedPreferences("SubmitStepModel", Context.MODE_PRIVATE)
267
+
268
+ val stepKey = stepID.toString()
269
+ val editor = documentCaptureSharedPreferences.edit()
270
+
271
+ if (documentCaptureSharedPreferences.contains(stepKey)) {
272
+ editor.remove(stepKey)
273
+ }
274
+
275
+ val documentCaptureModel = SubmitRequestModel(
276
+ stepID!!,
277
+ StepsName.DocumentCapture,
278
+ values
279
+ )
280
+
281
+ val documentCaptureStep = Gson().toJson(documentCaptureModel)
282
+ editor.putString(stepKey, documentCaptureStep)
283
+ editor.apply()
284
+
275
285
 
276
286
 
277
287
  /** **/
@@ -122,7 +122,12 @@ class ScanOtherActivity: AppCompatActivity(),
122
122
  }
123
123
  }
124
124
 
125
-
125
+ override fun onBackPressed() {
126
+ triggerEvent("onBackClick", null)
127
+ scanOther.stopScanning();
128
+ finish()
129
+ super.onBackPressed()
130
+ }
126
131
  fun showPopUpMessage(icon: Int, title: String, subTitle: String, isSending: Boolean) {
127
132
  popUpContainer.visibility = View.VISIBLE
128
133
 
@@ -217,17 +222,29 @@ class ScanOtherActivity: AppCompatActivity(),
217
222
  override fun onComplete(dataModel: OtherResponseModel) {
218
223
  triggerCompleteEvent("onComplete",dataModel)
219
224
  /** Steps **/
220
- val documentCaptureSharedPreferences = reactApplicationContext.getSharedPreferences("SubmitStepModel", Context.MODE_PRIVATE)
221
- val documentCaptureModel = SubmitRequestModel(
222
- stepID, StepsName.DocumentCapture,
223
- convertMap(dataModel.otherExtractedModel!!.transformedProperties)
224
- );
225
- val documentCaptureSharedPreferencesEditor = documentCaptureSharedPreferences.edit()
226
- val documentCaptureGson = Gson()
227
- val documentCaptureStep: String = documentCaptureGson.toJson(documentCaptureModel)
228
- documentCaptureSharedPreferencesEditor.putString(stepID.toString(), documentCaptureStep);
229
- documentCaptureSharedPreferencesEditor.apply()
230
225
 
226
+ /** Data To Submit **/
227
+ val documentCaptureSharedPreferences =
228
+ reactApplicationContext.getSharedPreferences("SubmitStepModel", Context.MODE_PRIVATE)
229
+
230
+ val stepKey = stepID.toString()
231
+ val editor = documentCaptureSharedPreferences.edit()
232
+
233
+ if (documentCaptureSharedPreferences.contains(stepKey)) {
234
+ editor.remove(stepKey)
235
+ }
236
+
237
+ val documentCaptureModel = SubmitRequestModel(
238
+ stepID,
239
+ StepsName.DocumentCapture,
240
+ convertMap(dataModel.otherExtractedModel!!.transformedProperties)
241
+ )
242
+
243
+ val documentCaptureStep = Gson().toJson(documentCaptureModel)
244
+ editor.putString(stepKey, documentCaptureStep)
245
+ editor.apply()
246
+
247
+ /** **/
231
248
 
232
249
  /** End **/
233
250
  runOnUiThread {
@@ -123,6 +123,13 @@ class ScanPassportActivity : AppCompatActivity(),
123
123
 
124
124
  }
125
125
 
126
+ override fun onBackPressed() {
127
+ triggerEvent("onBackClick", null)
128
+ scanPassport.stopScanning();
129
+ finish()
130
+ super.onBackPressed()
131
+ }
132
+
126
133
  fun showPopUpMessage(icon: Int, title: String, subTitle: String, isSending: Boolean) {
127
134
  popUpContainer.visibility = View.VISIBLE
128
135
 
@@ -230,21 +237,31 @@ class ScanPassportActivity : AppCompatActivity(),
230
237
  } else {
231
238
  triggerCompleteEvent("onComplete", dataModel)
232
239
  /** Steps **/
233
- val documentCaptureSharedPreferences = reactApplicationContext.getSharedPreferences("SubmitStepModel", Context.MODE_PRIVATE)
234
- val documentCaptureModel = SubmitRequestModel(
235
- stepID, StepsName.DocumentCapture,
236
- convertMap(dataModel.passportExtractedModel!!.transformedProperties)
237
- );
238
-
239
- val documentCaptureSharedPreferencesEditor = documentCaptureSharedPreferences.edit()
240
- val documentCaptureGson = Gson()
241
- val documentCaptureStep: String = documentCaptureGson.toJson(documentCaptureModel)
242
- documentCaptureSharedPreferencesEditor.putString(
243
- stepID.toString(),
244
- documentCaptureStep
245
- );
246
- documentCaptureSharedPreferencesEditor.apply()
247
240
 
241
+ /** Data To Submit **/
242
+ val documentCaptureSharedPreferences =
243
+ reactApplicationContext.getSharedPreferences("SubmitStepModel", Context.MODE_PRIVATE)
244
+
245
+ val stepKey = stepID.toString()
246
+
247
+ val editor = documentCaptureSharedPreferences.edit()
248
+
249
+ if (documentCaptureSharedPreferences.contains(stepKey)) {
250
+ editor.remove(stepKey)
251
+ }
252
+
253
+ val documentCaptureModel = SubmitRequestModel(
254
+ stepID,
255
+ StepsName.DocumentCapture,
256
+ convertMap(dataModel.passportExtractedModel!!.transformedProperties)
257
+ )
258
+
259
+ val documentCaptureStep = Gson().toJson(documentCaptureModel)
260
+
261
+ editor.putString(stepKey, documentCaptureStep)
262
+ editor.apply()
263
+
264
+ /** **/
248
265
 
249
266
  runOnUiThread {
250
267
  scanPassport.stopScanning();
@@ -38,6 +38,6 @@ Pod::Spec.new do |s|
38
38
 
39
39
 
40
40
  s.dependency "React-Core"
41
- s.dependency "AssentifySdk", '0.0.64'
41
+ s.dependency "AssentifySdk", '0.0.65'
42
42
 
43
43
  end
@@ -24,6 +24,7 @@ RCT_EXTERN_METHOD(initialize: (NSString *)apiKey
24
24
  iOSBrightnessHighThreshold:(nonnull NSNumber * )iOSBrightnessHighThreshold
25
25
  iOSBrightnessLowThreshold:(nonnull NSNumber * )iOSBrightnessLowThreshold
26
26
  activeLiveType:(NSString * )activeLiveType
27
+ activeLivenessCheckCount:(nonnull NSNumber * )activeLivenessCheckCount
27
28
  )
28
29
  RCT_EXTERN_METHOD(startScanPassport:
29
30
  (NSString *)language
@@ -43,7 +43,8 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
43
43
  androidBrightnessLowThreshold: NSNumber,
44
44
  iOSBrightnessHighThreshold: NSNumber,
45
45
  iOSBrightnessLowThreshold: NSNumber,
46
- activeLiveType: String
46
+ activeLiveType: String,
47
+ activeLivenessCheckCount:NSNumber
47
48
 
48
49
  ) -> Void {
49
50
 
@@ -79,6 +80,7 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
79
80
  print("\(tag) iOSBrightnessHighThreshold: \(iOSBrightnessHighThreshold)")
80
81
  print("\(tag) iOSBrightnessLowThreshold: \(iOSBrightnessLowThreshold)")
81
82
  print("\(tag) ActiveLiveType: \(activeLiveType)")
83
+ print("\(tag) ActiveLivenessCheckCount: \(activeLivenessCheckCount)")
82
84
  print("\(tag) ==============================================")
83
85
 
84
86
 
@@ -99,10 +101,12 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
99
101
  return .ACTIONS
100
102
  case "Wink":
101
103
  return .WINK
102
- case "NON":
103
- return .NON
104
+ case "BLINK":
105
+ return .BLINK
106
+ case "NONE":
107
+ return .NONE
104
108
  default:
105
- return .NON
109
+ return .NONE
106
110
  }
107
111
  }()
108
112
 
@@ -117,8 +121,8 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
117
121
  BRIGHTNESS_LOW_THRESHOLD:Double(iOSBrightnessLowThreshold.intValue),
118
122
  MotionLimit: iOSMotionCardsLimit.intValue,
119
123
  MotionLimitFace: iOSMotionFaceLimit.intValue,
120
- activeLiveType: typeActive
121
-
124
+ activeLiveType: typeActive,
125
+ activeLivenessCheckCount:activeLivenessCheckCount.intValue
122
126
  )
123
127
 
124
128
  self.holdHandColor = ENV_CustomColor;
@@ -151,6 +155,9 @@ class NativeAssentifySdk: RCTEventEmitter ,AssentifySdkDelegate , SubmitDataDel
151
155
 
152
156
  func onAssentifySdkInitSuccess(configModel: ConfigModel) {
153
157
  configModel.stepDefinitions.forEach{step in
158
+ if UserDefaults.standard.object(forKey: String(step.stepId)) != nil {
159
+ UserDefaults.standard.removeObject(forKey: String(step.stepId))
160
+ }
154
161
  UserDefaults.standard.set(nil, forKey:String(step.stepId))
155
162
 
156
163
  }
@@ -89,7 +89,7 @@ class FaceMAtchController: UIViewController ,FaceMatchDelegate
89
89
 
90
90
  }
91
91
 
92
-
92
+
93
93
  @objc func dismissPopUpMessage() {
94
94
  DispatchQueue.main.async {
95
95
  if(!self.start){
@@ -157,7 +157,11 @@ class FaceMAtchController: UIViewController ,FaceMatchDelegate
157
157
  func onComplete(dataModel: FaceResponseModel) {
158
158
 
159
159
  if let outputProperties = try? JSONSerialization.data(withJSONObject: dataModel.faceExtractedModel?.outputProperties, options: []) {
160
- UserDefaults.standard.set(outputProperties, forKey: String(self.stepID))
160
+ if UserDefaults.standard.object(forKey: String(self.stepID)) != nil {
161
+ UserDefaults.standard.removeObject(forKey: String(self.stepID))
162
+ }
163
+ UserDefaults.standard.set(nil, forKey:String(self.stepID))
164
+ UserDefaults.standard.set(outputProperties, forKey: String(self.stepID))
161
165
  }
162
166
  triggerCompleteEvent(eventName:"onComplete",dataModel:dataModel.faceExtractedModel)
163
167
 
@@ -311,19 +315,20 @@ class FaceMAtchController: UIViewController ,FaceMatchDelegate
311
315
  self.infoImage?.image = UIImage(named: "info_icon")
312
316
  case .GOOD:
313
317
  break
314
- case .WINK:
315
- break
316
318
  case .WINK_LEFT:
317
319
  self.infoLabel?.text = "Please wink with your left eye"
318
320
  self.infoImage?.image = UIImage(named: "info_icon")
319
321
  case .WINK_RIGHT:
320
322
  self.infoLabel?.text = "Please wink with your right eye"
321
323
  self.infoImage?.image = UIImage(named: "info_icon")
324
+ case .BLINK:
325
+ self.infoLabel?.text = "Please blink your eyes"
326
+ self.infoImage?.image = UIImage(named: "info_icon")
322
327
  }
323
-
328
+
324
329
  }
325
330
  }
326
-
331
+
327
332
  func onHasTemplates(templates: [TemplatesByCountry]){
328
333
  }
329
334
 
@@ -185,7 +185,11 @@ class IDCardController: UIViewController ,ScanIDCardDelegate , ChildViewControll
185
185
  if(order == self._kycDocumentDetails.count-1 ){
186
186
 
187
187
  if let outputProperties = try? JSONSerialization.data(withJSONObject: self.outputResultProperties, options: []) {
188
- UserDefaults.standard.set(outputProperties, forKey: String(self.stepID))
188
+ if UserDefaults.standard.object(forKey: String(self.stepID)) != nil {
189
+ UserDefaults.standard.removeObject(forKey: String(self.stepID))
190
+ }
191
+ UserDefaults.standard.set(nil, forKey:String(self.stepID))
192
+ UserDefaults.standard.set(outputProperties, forKey: String(self.stepID))
189
193
  }
190
194
  DispatchQueue.main.async {
191
195
  self.scanID?.stopScanning()
@@ -162,7 +162,11 @@ class OtherController: UIViewController ,ScanOtherDelegate , ChildViewController
162
162
  if(!isDone){
163
163
  isDone = true;
164
164
  if let outputProperties = try? JSONSerialization.data(withJSONObject: dataModel.otherExtractedModel?.transformedProperties, options: []) {
165
- UserDefaults.standard.set(outputProperties, forKey: String(self.stepID))
165
+ if UserDefaults.standard.object(forKey: String(self.stepID)) != nil {
166
+ UserDefaults.standard.removeObject(forKey: String(self.stepID))
167
+ }
168
+ UserDefaults.standard.set(nil, forKey:String(self.stepID))
169
+ UserDefaults.standard.set(outputProperties, forKey: String(self.stepID))
166
170
  }
167
171
  triggerCompleteEvent(eventName:"onComplete",dataModel:dataModel.otherExtractedModel)
168
172
  DispatchQueue.main.async {
@@ -176,7 +176,11 @@ class PassportController: UIViewController ,ScanPassportDelegate , ChildViewCont
176
176
  if(!isDone){
177
177
  isDone = true;
178
178
  if let outputProperties = try? JSONSerialization.data(withJSONObject: dataModel.passportExtractedModel?.transformedProperties, options: []) {
179
- UserDefaults.standard.set(outputProperties, forKey: String(self.stepID))
179
+ if UserDefaults.standard.object(forKey: String(self.stepID)) != nil {
180
+ UserDefaults.standard.removeObject(forKey: String(self.stepID))
181
+ }
182
+ UserDefaults.standard.set(nil, forKey:String(self.stepID))
183
+ UserDefaults.standard.set(outputProperties, forKey: String(self.stepID))
180
184
  }
181
185
  triggerCompleteEvent(eventName:"onComplete",dataModel:dataModel.passportExtractedModel)
182
186
  DispatchQueue.main.async {
@@ -7,6 +7,7 @@ exports.ActiveLiveType = void 0;
7
7
  const ActiveLiveType = exports.ActiveLiveType = {
8
8
  Actions: "Actions",
9
9
  Wink: "Wink",
10
- NON: "NON"
10
+ BLINK: "BLINK",
11
+ NONE: "NONE"
11
12
  };
12
13
  //# sourceMappingURL=ActiveLiveType.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["ActiveLiveType","exports","Actions","Wink","NON"],"sourceRoot":"..\\..\\src","sources":["ActiveLiveType.ts"],"mappings":";;;;;;AAAO,MAAMA,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAE;EACzBE,OAAO,EAAG,SAAS;EACnBC,IAAI,EAAG,MAAM;EACbC,GAAG,EAAG;AACV,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["ActiveLiveType","exports","Actions","Wink","BLINK","NONE"],"sourceRoot":"..\\..\\src","sources":["ActiveLiveType.ts"],"mappings":";;;;;;AAAO,MAAMA,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAE;EACzBE,OAAO,EAAG,SAAS;EACnBC,IAAI,EAAG,MAAM;EACbC,KAAK,EAAG,OAAO;EACfC,IAAI,EAAG;AACX,CAAC","ignoreList":[]}
@@ -19,8 +19,8 @@ const AssentifySdk = _reactNative.NativeModules.NativeAssentifySdk ? _reactNativ
19
19
  });
20
20
  const AssentifyWrapper = {
21
21
  /// Initialize
22
- initialize: function (apiKey, tenantIdentifier, instanceHash, processMrz, storeCapturedDocument, performLivenessFace, storeImageStream, saveCapturedVideoID, saveCapturedVideoFace, ENV_CustomColor, enableDetect, enableGuide, androidMotionCardLimit, androidMotionPassportLimit, iOSMotionCardsLimit, iOSMotionFaceLimit, androidBrightnessHighThreshold, androidBrightnessLowThreshold, iOSBrightnessHighThreshold, iOSBrightnessLowThreshold, activeLiveType) {
23
- AssentifySdk.initialize(apiKey, tenantIdentifier, instanceHash, processMrz ?? true, storeCapturedDocument ?? true, performLivenessFace ?? false, storeImageStream ?? true, saveCapturedVideoID ?? true, saveCapturedVideoFace ?? true, ENV_CustomColor ?? '#f5a103', enableDetect ?? true, enableGuide ?? true, androidMotionCardLimit ?? 10, androidMotionPassportLimit ?? 15, iOSMotionCardsLimit ?? 30, iOSMotionFaceLimit ?? 5, androidBrightnessHighThreshold ?? 180, androidBrightnessLowThreshold ?? 50, iOSBrightnessHighThreshold ?? 255, iOSBrightnessLowThreshold ?? 50, activeLiveType ?? "NON");
22
+ initialize: function (apiKey, tenantIdentifier, instanceHash, processMrz, storeCapturedDocument, performLivenessFace, storeImageStream, saveCapturedVideoID, saveCapturedVideoFace, ENV_CustomColor, enableDetect, enableGuide, androidMotionCardLimit, androidMotionPassportLimit, iOSMotionCardsLimit, iOSMotionFaceLimit, androidBrightnessHighThreshold, androidBrightnessLowThreshold, iOSBrightnessHighThreshold, iOSBrightnessLowThreshold, activeLiveType, activeLivenessCheckCount) {
23
+ AssentifySdk.initialize(apiKey, tenantIdentifier, instanceHash, processMrz ?? true, storeCapturedDocument ?? true, performLivenessFace ?? false, storeImageStream ?? true, saveCapturedVideoID ?? true, saveCapturedVideoFace ?? true, ENV_CustomColor ?? '#f5a103', enableDetect ?? true, enableGuide ?? true, androidMotionCardLimit ?? 10, androidMotionPassportLimit ?? 15, iOSMotionCardsLimit ?? 30, iOSMotionFaceLimit ?? 5, androidBrightnessHighThreshold ?? 180, androidBrightnessLowThreshold ?? 50, iOSBrightnessHighThreshold ?? 255, iOSBrightnessLowThreshold ?? 50, activeLiveType ?? "NONE", activeLivenessCheckCount ?? 0);
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","tenantIdentifier","instanceHash","processMrz","storeCapturedDocument","performLivenessFace","storeImageStream","saveCapturedVideoID","saveCapturedVideoFace","ENV_CustomColor","enableDetect","enableGuide","androidMotionCardLimit","androidMotionPassportLimit","iOSMotionCardsLimit","iOSMotionFaceLimit","androidBrightnessHighThreshold","androidBrightnessLowThreshold","iOSBrightnessHighThreshold","iOSBrightnessLowThreshold","activeLiveType","startScanPassport","language","stepID","startScanOther","startScanOtherIDPage","startScanIDCard","kycDocumentDetailsList","flippingCard","startScanIDPage","JSON","stringify","startFaceMatch","imageUrl","showCountDown","startContextAwareSigning","createUserDocumentInstance","dataMap","signature","submitData","_default","exports"],"sourceRoot":"..\\..\\src","sources":["AssentifyWrapper.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAIA,MAAMC,aAAa,GACjB,kGAAkG,GAClGC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC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+ {"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","NativeAssentifySdk","NativeModules","AssentifySdk","Proxy","get","Error","AssentifyWrapper","initialize","apiKey","tenantIdentifier","instanceHash","processMrz","storeCapturedDocument","performLivenessFace","storeImageStream","saveCapturedVideoID","saveCapturedVideoFace","ENV_CustomColor","enableDetect","enableGuide","androidMotionCardLimit","androidMotionPassportLimit","iOSMotionCardsLimit","iOSMotionFaceLimit","androidBrightnessHighThreshold","androidBrightnessLowThreshold","iOSBrightnessHighThreshold","iOSBrightnessLowThreshold","activeLiveType","activeLivenessCheckCount","startScanPassport","language","stepID","startScanOther","startScanOtherIDPage","startScanIDCard","kycDocumentDetailsList","flippingCard","startScanIDPage","JSON","stringify","startFaceMatch","imageUrl","showCountDown","startContextAwareSigning","createUserDocumentInstance","dataMap","signature","submitData","_default","exports"],"sourceRoot":"..\\..\\src","sources":["AssentifyWrapper.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAIA,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,gBAAwB,EACxBC,YAAoB,EACpBC,UAAoB,EACpBC,qBAA+B,EAC/BC,mBAA6B,EAC7BC,gBAA0B,EAC1BC,mBAA6B,EAC7BC,qBA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,SAAS,CAACJ,sBAAsB,CAAC,EAACL,QAAQ,EAACM,YAAY,EAACL,MAAM,CAAC;EACpG,CAAC;EAED;EACCS,cAAc,EAAE,SAAAA,CAAUC,QAAgB,EAACC,aAAsB,EAACX,MAAc,EAAC;IAC3E9B,YAAY,CAACuC,cAAc,CAACC,QAAQ,EAACC,aAAa,EAACX,MAAM,CAAC;EAChE,CAAC;EAGF;EACCY,wBAAwB,EAAE,SAAAA,CAAA,EAAW;IAC9B1C,YAAY,CAAC0C,wBAAwB,CAAC,CAAC;EAC7C,CAAC;EAEDC,0BAA0B,EAAE,SAAAA,CAAUC,OAA8B,EAAC;IAC/D5C,YAAY,CAAC2C,0BAA0B,CAACC,OAAO,CAAC;EACtD,CAAC;EAEDC,SAAS,EAAE,SAAAA,CAAUA,SAAgB,EAAC;IAChC7C,YAAY,CAAC6C,SAAS,CAACA,SAAS,CAAC;EACtC,CAAC;EAGH;EACAC,UAAU,EAAE,SAAAA,CAAUF,OAA8B,EAAE;IACjD5C,YAAY,CAAC8C,UAAU,CAACF,OAAO,CAAC;EACpC;AAMN,CAAC;AAAC,IAAAG,QAAA,GAAAC,OAAA,CAAAnD,OAAA,GAEaO,gBAAgB","ignoreList":[]}
@@ -1,6 +1,7 @@
1
1
  export const ActiveLiveType = {
2
2
  Actions: "Actions",
3
3
  Wink: "Wink",
4
- NON: "NON"
4
+ BLINK: "BLINK",
5
+ NONE: "NONE"
5
6
  };
6
7
  //# sourceMappingURL=ActiveLiveType.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["ActiveLiveType","Actions","Wink","NON"],"sourceRoot":"..\\..\\src","sources":["ActiveLiveType.ts"],"mappings":"AAAA,OAAO,MAAMA,cAAc,GAAE;EACzBC,OAAO,EAAG,SAAS;EACnBC,IAAI,EAAG,MAAM;EACbC,GAAG,EAAG;AACV,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["ActiveLiveType","Actions","Wink","BLINK","NONE"],"sourceRoot":"..\\..\\src","sources":["ActiveLiveType.ts"],"mappings":"AAAA,OAAO,MAAMA,cAAc,GAAE;EACzBC,OAAO,EAAG,SAAS;EACnBC,IAAI,EAAG,MAAM;EACbC,KAAK,EAAG,OAAO;EACfC,IAAI,EAAG;AACX,CAAC","ignoreList":[]}
@@ -13,8 +13,8 @@ const AssentifySdk = NativeModules.NativeAssentifySdk ? NativeModules.NativeAsse
13
13
  });
14
14
  const AssentifyWrapper = {
15
15
  /// Initialize
16
- initialize: function (apiKey, tenantIdentifier, instanceHash, processMrz, storeCapturedDocument, performLivenessFace, storeImageStream, saveCapturedVideoID, saveCapturedVideoFace, ENV_CustomColor, enableDetect, enableGuide, androidMotionCardLimit, androidMotionPassportLimit, iOSMotionCardsLimit, iOSMotionFaceLimit, androidBrightnessHighThreshold, androidBrightnessLowThreshold, iOSBrightnessHighThreshold, iOSBrightnessLowThreshold, activeLiveType) {
17
- AssentifySdk.initialize(apiKey, tenantIdentifier, instanceHash, processMrz ?? true, storeCapturedDocument ?? true, performLivenessFace ?? false, storeImageStream ?? true, saveCapturedVideoID ?? true, saveCapturedVideoFace ?? true, ENV_CustomColor ?? '#f5a103', enableDetect ?? true, enableGuide ?? true, androidMotionCardLimit ?? 10, androidMotionPassportLimit ?? 15, iOSMotionCardsLimit ?? 30, iOSMotionFaceLimit ?? 5, androidBrightnessHighThreshold ?? 180, androidBrightnessLowThreshold ?? 50, iOSBrightnessHighThreshold ?? 255, iOSBrightnessLowThreshold ?? 50, activeLiveType ?? "NON");
16
+ initialize: function (apiKey, tenantIdentifier, instanceHash, processMrz, storeCapturedDocument, performLivenessFace, storeImageStream, saveCapturedVideoID, saveCapturedVideoFace, ENV_CustomColor, enableDetect, enableGuide, androidMotionCardLimit, androidMotionPassportLimit, iOSMotionCardsLimit, iOSMotionFaceLimit, androidBrightnessHighThreshold, androidBrightnessLowThreshold, iOSBrightnessHighThreshold, iOSBrightnessLowThreshold, activeLiveType, activeLivenessCheckCount) {
17
+ AssentifySdk.initialize(apiKey, tenantIdentifier, instanceHash, processMrz ?? true, storeCapturedDocument ?? true, performLivenessFace ?? false, storeImageStream ?? true, saveCapturedVideoID ?? true, saveCapturedVideoFace ?? true, ENV_CustomColor ?? '#f5a103', enableDetect ?? true, enableGuide ?? true, androidMotionCardLimit ?? 10, androidMotionPassportLimit ?? 15, iOSMotionCardsLimit ?? 30, iOSMotionFaceLimit ?? 5, androidBrightnessHighThreshold ?? 180, androidBrightnessLowThreshold ?? 50, iOSBrightnessHighThreshold ?? 255, iOSBrightnessLowThreshold ?? 50, activeLiveType ?? "NONE", activeLivenessCheckCount ?? 0);
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","tenantIdentifier","instanceHash","processMrz","storeCapturedDocument","performLivenessFace","storeImageStream","saveCapturedVideoID","saveCapturedVideoFace","ENV_CustomColor","enableDetect","enableGuide","androidMotionCardLimit","androidMotionPassportLimit","iOSMotionCardsLimit","iOSMotionFaceLimit","androidBrightnessHighThreshold","androidBrightnessLowThreshold","iOSBrightnessHighThreshold","iOSBrightnessLowThreshold","activeLiveType","startScanPassport","language","stepID","startScanOther","startScanOtherIDPage","startScanIDCard","kycDocumentDetailsList","flippingCard","startScanIDPage","JSON","stringify","startFaceMatch","imageUrl","showCountDown","startContextAwareSigning","createUserDocumentInstance","dataMap","signature","submitData"],"sourceRoot":"..\\..\\src","sources":["AssentifyWrapper.ts"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAwB,cAAc;AAItE,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;A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EAAC;IAChE7B,YAAY,CAAC2B,iBAAiB,CAACC,QAAQ,EAACC,MAAM,CAAC;EACjD,CAAC;EAED;EACAC,cAAc,EAAE,SAAAA,CAAUF,QAAsB,EAACC,MAAc,EAAC;IAC7D7B,YAAY,CAAC+B,oBAAoB,CAACH,QAAQ,EAACC,MAAM,CAAC;EACpD,CAAC;EAEF;EACAG,eAAe,EAAE,SAAAA,CAAUC,sBAA4C,EAACL,QAAsB,EAACM,YAAqB,EAACL,MAAc,EAAC;IACjI7B,YAAY,CAACmC,eAAe,CAACC,IAAI,CAACC,SAAS,CAACJ,sBAAsB,CAAC,EAACL,QAAQ,EAACM,YAAY,EAACL,MAAM,CAAC;EACpG,CAAC;EAED;EACCS,cAAc,EAAE,SAAAA,CAAUC,QAAgB,EAACC,aAAsB,EAACX,MAAc,EAAC;IAC3E7B,YAAY,CAACsC,cAAc,CAACC,QAAQ,EAACC,aAAa,EAACX,MAAM,CAAC;EAChE,CAAC;EAGF;EACCY,wBAAwB,EAAE,SAAAA,CAAA,EAAW;IAC9BzC,YAAY,CAACyC,wBAAwB,CAAC,CAAC;EAC7C,CAAC;EAEDC,0BAA0B,EAAE,SAAAA,CAAUC,OAA8B,EAAC;IAC/D3C,YAAY,CAAC0C,0BAA0B,CAACC,OAAO,CAAC;EACtD,CAAC;EAEDC,SAAS,EAAE,SAAAA,CAAUA,SAAgB,EAAC;IAChC5C,YAAY,CAAC4C,SAAS,CAACA,SAAS,CAAC;EACtC,CAAC;EAGH;EACAC,UAAU,EAAE,SAAAA,CAAUF,OAA8B,EAAE;IACjD3C,YAAY,CAAC6C,UAAU,CAACF,OAAO,CAAC;EACpC;AAMN,CAAC;AAED,eAAevC,gBAAgB","ignoreList":[]}
1
+ {"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","NativeAssentifySdk","AssentifySdk","Proxy","get","Error","AssentifyWrapper","initialize","apiKey","tenantIdentifier","instanceHash","processMrz","storeCapturedDocument","performLivenessFace","storeImageStream","saveCapturedVideoID","saveCapturedVideoFace","ENV_CustomColor","enableDetect","enableGuide","androidMotionCardLimit","androidMotionPassportLimit","iOSMotionCardsLimit","iOSMotionFaceLimit","androidBrightnessHighThreshold","androidBrightnessLowThreshold","iOSBrightnessHighThreshold","iOSBrightnessLowThreshold","activeLiveType","activeLivenessCheckCount","startScanPassport","language","stepID","startScanOther","startScanOtherIDPage","startScanIDCard","kycDocumentDetailsList","flippingCard","startScanIDPage","JSON","stringify","startFaceMatch","imageUrl","showCountDown","startContextAwareSigning","createUserDocumentInstance","dataMap","signature","submitData"],"sourceRoot":"..\\..\\src","sources":["AssentifyWrapper.ts"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAwB,cAAc;AAItE,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,gBAAwB,EACxBC,YAAoB,EACpBC,UAAoB,EACpBC,qBAA+B,EAC/BC,mBAA6B,EAC7BC,gBAA0B,EAC1BC,mBAA6B,EAC7BC,qBAA+B,EAC/BC,eAAwB,EACxBC,YAAsB,EACtBC,WAAqB,EACrBC,sBAA+B,EAC/BC,0BAAmC,EACnCC,mBAA4B,EAC5BC,kBAA2B,EAC3BC,8BAAuC,EACvCC,6BAAsC,EACtCC,0BAAmC,EACnCC,yBAAk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CAACuC,cAAc,CAACC,QAAQ,EAACC,aAAa,EAACX,MAAM,CAAC;EAChE,CAAC;EAGF;EACCY,wBAAwB,EAAE,SAAAA,CAAA,EAAW;IAC9B1C,YAAY,CAAC0C,wBAAwB,CAAC,CAAC;EAC7C,CAAC;EAEDC,0BAA0B,EAAE,SAAAA,CAAUC,OAA8B,EAAC;IAC/D5C,YAAY,CAAC2C,0BAA0B,CAACC,OAAO,CAAC;EACtD,CAAC;EAEDC,SAAS,EAAE,SAAAA,CAAUA,SAAgB,EAAC;IAChC7C,YAAY,CAAC6C,SAAS,CAACA,SAAS,CAAC;EACtC,CAAC;EAGH;EACAC,UAAU,EAAE,SAAAA,CAAUF,OAA8B,EAAE;IACjD5C,YAAY,CAAC8C,UAAU,CAACF,OAAO,CAAC;EACpC;AAMN,CAAC;AAED,eAAexC,gBAAgB","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ declare function startClarity(webviewId: any, webViewRenderNodeId: any, maskSelectors: any, unmaskSelectors: any, maskContentFlag: any): void;
2
+ declare function startClarityInternal(webviewId: any, webViewRenderNodeId: any, maskSelectors: any, unmaskSelectors: any, maskContentFlag: any): void;
3
+ declare function stopClarity(): void;
4
+ declare function clearClarity(): void;
5
+ //# sourceMappingURL=clarity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clarity.d.ts","sourceRoot":"","sources":["../../../../../../../../../example/android/app/build/intermediates/assets/debug/clarity.js"],"names":[],"mappings":"AAEA,8IASC;AAED,sJAYC;AAED,qCAIC;AAED,sCAGC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Home.d.ts","sourceRoot":"","sources":["../../../../example/src/Home.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAqBnD,QAAA,MAAM,IAAI,yBAkQT,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Home.d.ts","sourceRoot":"","sources":["../../../../example/src/Home.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAqBnD,QAAA,MAAM,IAAI,yBAmQT,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -2,6 +2,7 @@ export const __esModule: boolean;
2
2
  export namespace ActiveLiveType {
3
3
  let Actions: string;
4
4
  let Wink: string;
5
- let NON: string;
5
+ let BLINK: string;
6
+ let NONE: string;
6
7
  }
7
8
  //# sourceMappingURL=ActiveLiveType.d.ts.map
@@ -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, tenantIdentifier: any, instanceHash: any, processMrz: any, storeCapturedDocument: any, performLivenessFace: any, storeImageStream: any, saveCapturedVideoID: any, saveCapturedVideoFace: any, ENV_CustomColor: any, enableDetect: any, enableGuide: any, androidMotionCardLimit: any, androidMotionPassportLimit: any, iOSMotionCardsLimit: any, iOSMotionFaceLimit: any, androidBrightnessHighThreshold: any, androidBrightnessLowThreshold: any, iOSBrightnessHighThreshold: any, iOSBrightnessLowThreshold: any, activeLiveType: any): void;
4
+ function initialize(apiKey: any, tenantIdentifier: any, instanceHash: any, processMrz: any, storeCapturedDocument: any, performLivenessFace: any, storeImageStream: any, saveCapturedVideoID: any, saveCapturedVideoFace: any, ENV_CustomColor: any, enableDetect: any, enableGuide: any, androidMotionCardLimit: any, androidMotionPassportLimit: any, iOSMotionCardsLimit: any, iOSMotionFaceLimit: any, androidBrightnessHighThreshold: any, androidBrightnessLowThreshold: any, iOSBrightnessHighThreshold: any, iOSBrightnessLowThreshold: any, activeLiveType: any, activeLivenessCheckCount: any): void;
5
5
  function startScanPassport(language: any, stepID: any): void;
6
6
  function startScanOther(language: any, stepID: any): void;
7
7
  function startScanIDCard(kycDocumentDetailsList: 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,gjBAEX;IAEkB,6DAElB;IAEe,0DAEf;IAEgB,2GAEhB;IAEe,8EAEf;IAEyB,0CAEzB;IAC2B,wDAE3B;IACU,yCAEV;IAEW,wCAEX"}
1
+ {"version":3,"file":"AssentifyWrapper.d.ts","sourceRoot":"","sources":["../../../commonjs/AssentifyWrapper.js"],"names":[],"mappings":";;;IAqBc,+kBAEX;IAEkB,6DAElB;IAEe,0DAEf;IAEgB,2GAEhB;IAEe,8EAEf;IAEyB,0CAEzB;IAC2B,wDAE3B;IACU,yCAEV;IAEW,wCAEX"}
@@ -1,6 +1,7 @@
1
1
  export namespace ActiveLiveType {
2
2
  let Actions: string;
3
3
  let Wink: string;
4
- let NON: string;
4
+ let BLINK: string;
5
+ let NONE: string;
5
6
  }
6
7
  //# sourceMappingURL=ActiveLiveType.d.ts.map
@@ -1,6 +1,6 @@
1
1
  export default AssentifyWrapper;
2
2
  declare namespace AssentifyWrapper {
3
- function initialize(apiKey: any, tenantIdentifier: any, instanceHash: any, processMrz: any, storeCapturedDocument: any, performLivenessFace: any, storeImageStream: any, saveCapturedVideoID: any, saveCapturedVideoFace: any, ENV_CustomColor: any, enableDetect: any, enableGuide: any, androidMotionCardLimit: any, androidMotionPassportLimit: any, iOSMotionCardsLimit: any, iOSMotionFaceLimit: any, androidBrightnessHighThreshold: any, androidBrightnessLowThreshold: any, iOSBrightnessHighThreshold: any, iOSBrightnessLowThreshold: any, activeLiveType: any): void;
3
+ function initialize(apiKey: any, tenantIdentifier: any, instanceHash: any, processMrz: any, storeCapturedDocument: any, performLivenessFace: any, storeImageStream: any, saveCapturedVideoID: any, saveCapturedVideoFace: any, ENV_CustomColor: any, enableDetect: any, enableGuide: any, androidMotionCardLimit: any, androidMotionPassportLimit: any, iOSMotionCardsLimit: any, iOSMotionFaceLimit: any, androidBrightnessHighThreshold: any, androidBrightnessLowThreshold: any, iOSBrightnessHighThreshold: any, iOSBrightnessLowThreshold: any, activeLiveType: any, activeLivenessCheckCount: any): void;
4
4
  function startScanPassport(language: any, stepID: any): void;
5
5
  function startScanOther(language: any, stepID: any): void;
6
6
  function startScanIDCard(kycDocumentDetailsList: 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,gjBAEX;IAEkB,6DAElB;IAEe,0DAEf;IAEgB,2GAEhB;IAEe,8EAEf;IAEyB,0CAEzB;IAC2B,wDAE3B;IACU,yCAEV;IAEW,wCAEX"}
1
+ {"version":3,"file":"AssentifyWrapper.d.ts","sourceRoot":"","sources":["../../../module/AssentifyWrapper.js"],"names":[],"mappings":";;IAec,+kBAEX;IAEkB,6DAElB;IAEe,0DAEf;IAEgB,2GAEhB;IAEe,8EAEf;IAEyB,0CAEzB;IAC2B,wDAE3B;IACU,yCAEV;IAEW,wCAEX"}
@@ -3,7 +3,7 @@ export * from "./Language";
3
3
  export * from "./ActiveLiveType";
4
4
  export * from "./AssentifyProvider";
5
5
  export const Assentify: {
6
- initialize: (apiKey: any, tenantIdentifier: any, instanceHash: any, processMrz: any, storeCapturedDocument: any, performLivenessFace: any, storeImageStream: any, saveCapturedVideoID: any, saveCapturedVideoFace: any, ENV_CustomColor: any, enableDetect: any, enableGuide: any, androidMotionCardLimit: any, androidMotionPassportLimit: any, iOSMotionCardsLimit: any, iOSMotionFaceLimit: any, androidBrightnessHighThreshold: any, androidBrightnessLowThreshold: any, iOSBrightnessHighThreshold: any, iOSBrightnessLowThreshold: any, activeLiveType: any) => void;
6
+ initialize: (apiKey: any, tenantIdentifier: any, instanceHash: any, processMrz: any, storeCapturedDocument: any, performLivenessFace: any, storeImageStream: any, saveCapturedVideoID: any, saveCapturedVideoFace: any, ENV_CustomColor: any, enableDetect: any, enableGuide: any, androidMotionCardLimit: any, androidMotionPassportLimit: any, iOSMotionCardsLimit: any, iOSMotionFaceLimit: any, androidBrightnessHighThreshold: any, androidBrightnessLowThreshold: any, iOSBrightnessHighThreshold: any, iOSBrightnessLowThreshold: any, activeLiveType: any, activeLivenessCheckCount: any) => void;
7
7
  startScanPassport: (language: any, stepID: any) => void;
8
8
  startScanOther: (language: any, stepID: any) => void;
9
9
  startScanIDCard: (kycDocumentDetailsList: any, language: any, flippingCard: any, stepID: any) => void;
@@ -1,7 +1,8 @@
1
1
  export declare const ActiveLiveType: {
2
2
  Actions: string;
3
3
  Wink: string;
4
- NON: string;
4
+ BLINK: string;
5
+ NONE: string;
5
6
  };
6
7
  export type ActiveLiveTypeCode = typeof ActiveLiveType[keyof typeof ActiveLiveType];
7
8
  //# sourceMappingURL=ActiveLiveType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActiveLiveType.d.ts","sourceRoot":"","sources":["../../../src/ActiveLiveType.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;CAI1B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAI,OAAO,cAAc,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"ActiveLiveType.d.ts","sourceRoot":"","sources":["../../../src/ActiveLiveType.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;CAK1B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAI,OAAO,cAAc,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { type LanguageCode } from './Language';
2
2
  import { type KycDocumentDetails } from './types';
3
3
  declare const AssentifyWrapper: {
4
- initialize: (apiKey: string, tenantIdentifier: string, instanceHash: string, processMrz?: boolean, storeCapturedDocument?: boolean, performLivenessFace?: boolean, storeImageStream?: boolean, saveCapturedVideoID?: boolean, saveCapturedVideoFace?: boolean, ENV_CustomColor?: string, enableDetect?: boolean, enableGuide?: boolean, androidMotionCardLimit?: number, androidMotionPassportLimit?: number, iOSMotionCardsLimit?: number, iOSMotionFaceLimit?: number, androidBrightnessHighThreshold?: number, androidBrightnessLowThreshold?: number, iOSBrightnessHighThreshold?: number, iOSBrightnessLowThreshold?: number, activeLiveType?: String) => void;
4
+ initialize: (apiKey: string, tenantIdentifier: string, instanceHash: string, processMrz?: boolean, storeCapturedDocument?: boolean, performLivenessFace?: boolean, storeImageStream?: boolean, saveCapturedVideoID?: boolean, saveCapturedVideoFace?: boolean, ENV_CustomColor?: string, enableDetect?: boolean, enableGuide?: boolean, androidMotionCardLimit?: number, androidMotionPassportLimit?: number, iOSMotionCardsLimit?: number, iOSMotionFaceLimit?: number, androidBrightnessHighThreshold?: number, androidBrightnessLowThreshold?: number, iOSBrightnessHighThreshold?: number, iOSBrightnessLowThreshold?: number, activeLiveType?: String, activeLivenessCheckCount?: number) => void;
5
5
  startScanPassport: (language: LanguageCode, stepID: number) => void;
6
6
  startScanOther: (language: LanguageCode, stepID: number) => void;
7
7
  startScanIDCard: (kycDocumentDetailsList: KycDocumentDetails[], 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;AAqBlD,QAAA,MAAM,gBAAgB;yBAGV,MAAM,oBACI,MAAM,gBACV,MAAM,eACP,OAAO,0BACI,OAAO,wBACT,OAAO,qBACV,OAAO,wBACJ,OAAO,0BACL,OAAO,oBACb,MAAM,iBACT,OAAO,gBACR,OAAO,2BACI,MAAM,+BACF,MAAM,wBACb,MAAM,uBACP,MAAM,mCACM,MAAM,kCACP,MAAM,+BACT,MAAM,8BACP,MAAM,mBACjB,MAAM;kCA4Be,YAAY,UAAS,MAAM;+BAK7B,YAAY,UAAS,MAAM;8CAKZ,kBAAkB,EAAE,YAAW,YAAY,gBAAe,OAAO,UAAS,MAAM;+BAK9F,MAAM,iBAAgB,OAAO,UAAS,MAAM;;0CAUjC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;2BAIrC,MAAM;0BAMR,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAQxD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
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;AAqBlD,QAAA,MAAM,gBAAgB;yBAGV,MAAM,oBACI,MAAM,gBACV,MAAM,eACP,OAAO,0BACI,OAAO,wBACT,OAAO,qBACV,OAAO,wBACJ,OAAO,0BACL,OAAO,oBACb,MAAM,iBACT,OAAO,gBACR,OAAO,2BACI,MAAM,+BACF,MAAM,wBACb,MAAM,uBACP,MAAM,mCACM,MAAM,kCACP,MAAM,+BACT,MAAM,8BACP,MAAM,mBACjB,MAAM,6BACI,MAAM;kCA6BK,YAAY,UAAS,MAAM;+BAK7B,YAAY,UAAS,MAAM;8CAKZ,kBAAkB,EAAE,YAAW,YAAY,gBAAe,OAAO,UAAS,MAAM;+BAK9F,MAAM,iBAAgB,OAAO,UAAS,MAAM;;0CAUjC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;2BAIrC,MAAM;0BAMR,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAQxD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -2,7 +2,7 @@ export * from './types';
2
2
  export * from './Language';
3
3
  export * from './ActiveLiveType';
4
4
  export declare const Assentify: {
5
- initialize: (apiKey: string, tenantIdentifier: string, instanceHash: string, processMrz?: boolean, storeCapturedDocument?: boolean, performLivenessFace?: boolean, storeImageStream?: boolean, saveCapturedVideoID?: boolean, saveCapturedVideoFace?: boolean, ENV_CustomColor?: string, enableDetect?: boolean, enableGuide?: boolean, androidMotionCardLimit?: number, androidMotionPassportLimit?: number, iOSMotionCardsLimit?: number, iOSMotionFaceLimit?: number, androidBrightnessHighThreshold?: number, androidBrightnessLowThreshold?: number, iOSBrightnessHighThreshold?: number, iOSBrightnessLowThreshold?: number, activeLiveType?: String) => void;
5
+ initialize: (apiKey: string, tenantIdentifier: string, instanceHash: string, processMrz?: boolean, storeCapturedDocument?: boolean, performLivenessFace?: boolean, storeImageStream?: boolean, saveCapturedVideoID?: boolean, saveCapturedVideoFace?: boolean, ENV_CustomColor?: string, enableDetect?: boolean, enableGuide?: boolean, androidMotionCardLimit?: number, androidMotionPassportLimit?: number, iOSMotionCardsLimit?: number, iOSMotionFaceLimit?: number, androidBrightnessHighThreshold?: number, androidBrightnessLowThreshold?: number, iOSBrightnessHighThreshold?: number, iOSBrightnessLowThreshold?: number, activeLiveType?: String, activeLivenessCheckCount?: number) => void;
6
6
  startScanPassport: (language: import("./Language").LanguageCode, stepID: number) => void;
7
7
  startScanOther: (language: import("./Language").LanguageCode, stepID: number) => void;
8
8
  startScanIDCard: (kycDocumentDetailsList: import("./types").KycDocumentDetails[], 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": "0.0.26",
3
+ "version": "0.0.27",
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",
@@ -1,7 +1,8 @@
1
1
  export const ActiveLiveType ={
2
2
  Actions : "Actions",
3
3
  Wink : "Wink",
4
- NON : "NON"
4
+ BLINK : "BLINK",
5
+ NONE : "NONE"
5
6
  }
6
7
 
7
8
  export type ActiveLiveTypeCode = typeof ActiveLiveType[keyof typeof ActiveLiveType];
@@ -44,7 +44,8 @@ const AssentifyWrapper = {
44
44
  androidBrightnessLowThreshold?: number,
45
45
  iOSBrightnessHighThreshold?: number,
46
46
  iOSBrightnessLowThreshold?: number,
47
- activeLiveType?: String
47
+ activeLiveType?: String,
48
+ activeLivenessCheckCount?: number,
48
49
  ) {
49
50
  AssentifySdk.initialize(
50
51
  apiKey,
@@ -67,7 +68,8 @@ const AssentifyWrapper = {
67
68
  androidBrightnessLowThreshold?? 50,
68
69
  iOSBrightnessHighThreshold?? 255,
69
70
  iOSBrightnessLowThreshold?? 50,
70
- activeLiveType?? "NON"
71
+ activeLiveType?? "NONE",
72
+ activeLivenessCheckCount??0
71
73
  );
72
74
  },
73
75