assentify-sdk-react-native 0.0.34 → 0.0.35

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 CHANGED
@@ -92,6 +92,11 @@ yarn add assentify-sdk-react-native
92
92
  ```
93
93
 
94
94
  ## Versions
95
+
96
+ **0.0.35**
97
+ - Callbacks Improvements
98
+ - Captured Image Improvements
99
+
95
100
  **0.0.34**
96
101
  - Ability to split the front and back scanning of the IDs
97
102
 
@@ -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.85'
102
+ implementation 'com.github.AssentifyLTD:Assentify.SDK.Android:0.0.86'
103
103
 
104
104
  /* Assentify Sdk Dependencies */
105
105
  implementation 'com.google.code.gson:gson:2.8.9'
@@ -277,6 +277,14 @@ class ScanPassportActivity : AppCompatActivity(),
277
277
  }
278
278
  }
279
279
 
280
+ override fun onWrongTemplate(dataModel: BaseResponseDataModel) {
281
+ triggerEvent("onWrongTemplate", dataModel);
282
+ runOnUiThread {
283
+ start = false;
284
+ showPopUpMessage(R.drawable.warning, "Please double-check that you selected the correct ID type and are presenting this ID type", "Let's try again", false)
285
+ }
286
+ }
287
+
280
288
  override fun onComplete(dataModel: PassportResponseModel,doneFlag: DoneFlags) {
281
289
 
282
290
  if (doneFlag == DoneFlags.Success && isExpired(dataModel.passportExtractedModel!!.identificationDocumentCapture!!.expiryDate.toString())) {
@@ -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.70'
41
+ s.dependency "AssentifySdk", '0.0.71'
42
42
 
43
43
  end
@@ -2,6 +2,10 @@ import UIKit
2
2
  import AssentifySdk
3
3
 
4
4
  class PassportScannerView: UIView, ScanPassportDelegate {
5
+ func onWrongTemplate(dataModel: RemoteProcessingModel) {
6
+ //
7
+ }
8
+
5
9
  func onComplete(dataModel: PassportResponseModel, doneFlag: DoneFlags) {
6
10
 
7
11
  }
@@ -6,6 +6,8 @@ import AssentifySdk
6
6
 
7
7
  class PassportController: UIViewController ,ScanPassportDelegate , ChildViewControllerDelegate
8
8
  {
9
+
10
+
9
11
 
10
12
 
11
13
 
@@ -175,6 +177,15 @@ class PassportController: UIViewController ,ScanPassportDelegate , ChildViewCont
175
177
  self.popUpMessage = showPopUpMessage(view: self.view, title: "Please use your original physical ID card, not a photo or copy.", subTitle: "Please real ID (Not copy)",initialTextColorHex:self.processingColor,initialBackgroundColorHex:self.holdHandColor, iconName: "warning", isGif: false,target: self, action: #selector(self.dismissPopUpMessage))
176
178
  }
177
179
  }
180
+
181
+ func onWrongTemplate(dataModel:RemoteProcessingModel) {
182
+ triggerEvent(eventName:"onWrongTemplate",dataModel:dataModel)
183
+ DispatchQueue.main.async {
184
+ self.start = false;
185
+ self.popUpMessage!.removeFromSuperview();
186
+ self.popUpMessage = showPopUpMessage(view: self.view, title: "Please double-check that you selected the correct ID type and are presenting this ID type.", subTitle: "Let's try again",initialTextColorHex:self.processingColor,initialBackgroundColorHex:self.holdHandColor, iconName: "id_warning", isGif: false,target: self, action: #selector(self.dismissPopUpMessage))
187
+ }
188
+ }
178
189
 
179
190
  func onClipPreparationComplete(dataModel: RemoteProcessingModel) {
180
191
  triggerEvent(eventName:"onClipPreparationComplete",dataModel:dataModel)
@@ -191,7 +202,6 @@ class PassportController: UIViewController ,ScanPassportDelegate , ChildViewCont
191
202
 
192
203
 
193
204
  func onComplete(dataModel: PassportResponseModel,doneFlag:DoneFlags) {
194
- print("Passport onComplete: \(dataModel)")
195
205
 
196
206
 
197
207
  if let isExpired = dataModel.passportExtractedModel?
@@ -1 +1 @@
1
- {"version":3,"file":"Home.d.ts","sourceRoot":"","sources":["../../../../example/src/Home.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAsBnD,QAAA,MAAM,IAAI,yBAqST,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;AAsBnD,QAAA,MAAM,IAAI,yBAwST,CAAC;AAEF,eAAe,IAAI,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assentify-sdk-react-native",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
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",