assentify-sdk-react-native 0.0.13 → 0.0.15
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 +6 -0
- package/assentify-sdk.podspec +1 -1
- package/ios/View/FaceMatchController.swift +4 -0
- package/ios/View/IDCardController.swift +6 -0
- package/ios/View/OtherController.swift +6 -1
- package/ios/View/PassportController.swift +9 -0
- package/ios/View/UI.swift +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/assentify-sdk.podspec
CHANGED
|
@@ -63,6 +63,7 @@ class FaceMAtchController: UIViewController ,FaceMatchDelegate
|
|
|
63
63
|
@objc func backButtonTapped() {
|
|
64
64
|
triggerEvent(eventName:"onBackClick",dataModel:nil)
|
|
65
65
|
DispatchQueue.main.async {
|
|
66
|
+
self.faceMatch?.stopScanning()
|
|
66
67
|
self.faceMatch?.willMove(toParent: nil)
|
|
67
68
|
self.faceMatch?.view.removeFromSuperview()
|
|
68
69
|
self.faceMatch?.removeFromParent()
|
|
@@ -74,6 +75,7 @@ class FaceMAtchController: UIViewController ,FaceMatchDelegate
|
|
|
74
75
|
func dismissParentViewController() {
|
|
75
76
|
triggerEvent(eventName:"onBackClick",dataModel:nil)
|
|
76
77
|
DispatchQueue.main.async {
|
|
78
|
+
self.faceMatch?.stopScanning()
|
|
77
79
|
self.faceMatch?.willMove(toParent: nil)
|
|
78
80
|
self.faceMatch?.view.removeFromSuperview()
|
|
79
81
|
self.faceMatch?.removeFromParent()
|
|
@@ -83,6 +85,7 @@ class FaceMAtchController: UIViewController ,FaceMatchDelegate
|
|
|
83
85
|
|
|
84
86
|
}
|
|
85
87
|
|
|
88
|
+
|
|
86
89
|
@objc func dismissPopUpMessage() {
|
|
87
90
|
DispatchQueue.main.async {
|
|
88
91
|
if(!self.start){
|
|
@@ -155,6 +158,7 @@ class FaceMAtchController: UIViewController ,FaceMatchDelegate
|
|
|
155
158
|
triggerCompleteEvent(eventName:"onComplete",dataModel:dataModel.faceExtractedModel)
|
|
156
159
|
|
|
157
160
|
DispatchQueue.main.async {
|
|
161
|
+
self.faceMatch?.stopScanning()
|
|
158
162
|
self.faceMatch?.willMove(toParent: nil)
|
|
159
163
|
self.faceMatch?.view.removeFromSuperview()
|
|
160
164
|
self.faceMatch?.removeFromParent()
|
|
@@ -70,6 +70,7 @@ class IDCardController: UIViewController ,ScanIDCardDelegate , ChildViewControll
|
|
|
70
70
|
@objc func backButtonTapped() {
|
|
71
71
|
triggerEvent(eventName:"onBackClick",dataModel:nil)
|
|
72
72
|
DispatchQueue.main.async {
|
|
73
|
+
self.scanID?.stopScanning()
|
|
73
74
|
self.scanID?.willMove(toParent: nil)
|
|
74
75
|
self.scanID?.view.removeFromSuperview()
|
|
75
76
|
self.scanID?.removeFromParent()
|
|
@@ -81,6 +82,7 @@ class IDCardController: UIViewController ,ScanIDCardDelegate , ChildViewControll
|
|
|
81
82
|
func dismissParentViewController() {
|
|
82
83
|
triggerEvent(eventName:"onBackClick",dataModel:nil)
|
|
83
84
|
DispatchQueue.main.async {
|
|
85
|
+
self.scanID?.stopScanning()
|
|
84
86
|
self.scanID?.willMove(toParent: nil)
|
|
85
87
|
self.scanID?.view.removeFromSuperview()
|
|
86
88
|
self.scanID?.removeFromParent()
|
|
@@ -90,6 +92,9 @@ class IDCardController: UIViewController ,ScanIDCardDelegate , ChildViewControll
|
|
|
90
92
|
|
|
91
93
|
}
|
|
92
94
|
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
93
98
|
@objc func dismissPopUpMessage() {
|
|
94
99
|
DispatchQueue.main.async {
|
|
95
100
|
if(!self.start){
|
|
@@ -182,6 +187,7 @@ class IDCardController: UIViewController ,ScanIDCardDelegate , ChildViewControll
|
|
|
182
187
|
UserDefaults.standard.set(outputProperties, forKey: "OutputPropertiesDoc")
|
|
183
188
|
}
|
|
184
189
|
DispatchQueue.main.async {
|
|
190
|
+
self.scanID?.stopScanning()
|
|
185
191
|
self.scanID?.willMove(toParent: nil)
|
|
186
192
|
self.scanID?.view.removeFromSuperview()
|
|
187
193
|
self.scanID?.removeFromParent()
|
|
@@ -70,6 +70,7 @@ class OtherController: UIViewController ,ScanOtherDelegate , ChildViewController
|
|
|
70
70
|
@objc func backButtonTapped() {
|
|
71
71
|
triggerEvent(eventName:"onBackClick",dataModel:nil)
|
|
72
72
|
DispatchQueue.main.async {
|
|
73
|
+
self.scanOther?.stopScanning();
|
|
73
74
|
self.scanOther?.willMove(toParent: nil)
|
|
74
75
|
self.scanOther?.view.removeFromSuperview()
|
|
75
76
|
self.scanOther?.removeFromParent()
|
|
@@ -81,6 +82,7 @@ class OtherController: UIViewController ,ScanOtherDelegate , ChildViewController
|
|
|
81
82
|
func dismissParentViewController() {
|
|
82
83
|
triggerEvent(eventName:"onBackClick",dataModel:nil)
|
|
83
84
|
DispatchQueue.main.async {
|
|
85
|
+
self.scanOther?.stopScanning();
|
|
84
86
|
self.scanOther?.willMove(toParent: nil)
|
|
85
87
|
self.scanOther?.view.removeFromSuperview()
|
|
86
88
|
self.scanOther?.removeFromParent()
|
|
@@ -89,7 +91,9 @@ class OtherController: UIViewController ,ScanOtherDelegate , ChildViewController
|
|
|
89
91
|
}
|
|
90
92
|
|
|
91
93
|
}
|
|
92
|
-
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
93
97
|
@objc func dismissPopUpMessage() {
|
|
94
98
|
DispatchQueue.main.async {
|
|
95
99
|
if(!self.start){
|
|
@@ -161,6 +165,7 @@ class OtherController: UIViewController ,ScanOtherDelegate , ChildViewController
|
|
|
161
165
|
}
|
|
162
166
|
triggerCompleteEvent(eventName:"onComplete",dataModel:dataModel.otherExtractedModel)
|
|
163
167
|
DispatchQueue.main.async {
|
|
168
|
+
self.scanOther?.stopScanning();
|
|
164
169
|
self.scanOther?.willMove(toParent: nil)
|
|
165
170
|
self.scanOther?.view.removeFromSuperview()
|
|
166
171
|
self.scanOther?.removeFromParent()
|
|
@@ -68,9 +68,13 @@ class PassportController: UIViewController ,ScanPassportDelegate , ChildViewCont
|
|
|
68
68
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
71
74
|
@objc func backButtonTapped() {
|
|
72
75
|
triggerEvent(eventName:"onBackClick",dataModel:nil)
|
|
73
76
|
DispatchQueue.main.async {
|
|
77
|
+
self.scanPassport?.stopScanning();
|
|
74
78
|
self.scanPassport?.willMove(toParent: nil)
|
|
75
79
|
self.scanPassport?.view.removeFromSuperview()
|
|
76
80
|
self.scanPassport?.removeFromParent()
|
|
@@ -82,6 +86,7 @@ class PassportController: UIViewController ,ScanPassportDelegate , ChildViewCont
|
|
|
82
86
|
func dismissParentViewController() {
|
|
83
87
|
triggerEvent(eventName:"onBackClick",dataModel:nil)
|
|
84
88
|
DispatchQueue.main.async {
|
|
89
|
+
self.scanPassport?.stopScanning();
|
|
85
90
|
self.scanPassport?.willMove(toParent: nil)
|
|
86
91
|
self.scanPassport?.view.removeFromSuperview()
|
|
87
92
|
self.scanPassport?.removeFromParent()
|
|
@@ -90,7 +95,9 @@ class PassportController: UIViewController ,ScanPassportDelegate , ChildViewCont
|
|
|
90
95
|
}
|
|
91
96
|
|
|
92
97
|
}
|
|
98
|
+
|
|
93
99
|
|
|
100
|
+
|
|
94
101
|
@objc func dismissPopUpMessage() {
|
|
95
102
|
DispatchQueue.main.async {
|
|
96
103
|
if(!self.start){
|
|
@@ -172,6 +179,7 @@ class PassportController: UIViewController ,ScanPassportDelegate , ChildViewCont
|
|
|
172
179
|
}
|
|
173
180
|
triggerCompleteEvent(eventName:"onComplete",dataModel:dataModel.passportExtractedModel)
|
|
174
181
|
DispatchQueue.main.async {
|
|
182
|
+
self.scanPassport?.stopScanning();
|
|
175
183
|
self.scanPassport?.willMove(toParent: nil)
|
|
176
184
|
self.scanPassport?.view.removeFromSuperview()
|
|
177
185
|
self.scanPassport?.removeFromParent()
|
|
@@ -188,6 +196,7 @@ class PassportController: UIViewController ,ScanPassportDelegate , ChildViewCont
|
|
|
188
196
|
}
|
|
189
197
|
triggerCompleteEvent(eventName:"onComplete",dataModel:dataModel.passportExtractedModel)
|
|
190
198
|
DispatchQueue.main.async {
|
|
199
|
+
self.scanPassport?.stopScanning();
|
|
191
200
|
self.scanPassport?.willMove(toParent: nil)
|
|
192
201
|
self.scanPassport?.view.removeFromSuperview()
|
|
193
202
|
self.scanPassport?.removeFromParent()
|
package/ios/View/UI.swift
CHANGED
|
@@ -6,7 +6,7 @@ protocol ChildViewControllerDelegate: AnyObject {
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
func showNavigationBarWithBackArrow(view: UIView, target: Any?, action: Selector?, initialTextColorHex: String, initialBackgroundColorHex: String, title: String ){
|
|
9
|
-
let navigationBar = UINavigationBar(frame: CGRect(x: 0, y:
|
|
9
|
+
let navigationBar = UINavigationBar(frame: CGRect(x: 0, y: 55, width: view.frame.size.width, height: 50))
|
|
10
10
|
navigationBar.setBackgroundImage(UIImage(), for: .default)
|
|
11
11
|
navigationBar.shadowImage = UIImage()
|
|
12
12
|
navigationBar.isTranslucent = true
|
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.15",
|
|
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",
|