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 +5 -0
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/assentifysdk/ScanPassportActivity.kt +8 -0
- package/assentify-sdk.podspec +1 -1
- package/ios/UIComponents/RNPassportScanner.swift +4 -0
- package/ios/View/PassportController.swift +11 -1
- package/lib/typescript/example/src/Home.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/android/build.gradle
CHANGED
|
@@ -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.
|
|
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())) {
|
package/assentify-sdk.podspec
CHANGED
|
@@ -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,
|
|
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.
|
|
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",
|