assentify-sdk-react-native 0.0.14 → 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 CHANGED
@@ -92,6 +92,9 @@ yarn add assentify-sdk-react-native
92
92
  ```
93
93
 
94
94
  ## Versions
95
+ **0.0.15**
96
+ - Detect improvements
97
+
95
98
  **0.0.14**
96
99
  - UI Fixes
97
100
 
@@ -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.50'
41
+ s.dependency "AssentifySdk", '0.0.51'
42
42
 
43
43
  end
@@ -63,11 +63,11 @@ 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()
69
70
  self.faceMatch = nil
70
- self.closeAllCameras()
71
71
  self.dismiss(animated: false)
72
72
  }
73
73
  }
@@ -75,26 +75,16 @@ class FaceMAtchController: UIViewController ,FaceMatchDelegate
75
75
  func dismissParentViewController() {
76
76
  triggerEvent(eventName:"onBackClick",dataModel:nil)
77
77
  DispatchQueue.main.async {
78
+ self.faceMatch?.stopScanning()
78
79
  self.faceMatch?.willMove(toParent: nil)
79
80
  self.faceMatch?.view.removeFromSuperview()
80
81
  self.faceMatch?.removeFromParent()
81
82
  self.faceMatch = nil
82
- self.closeAllCameras()
83
83
  self.dismiss(animated: false)
84
84
  }
85
85
 
86
86
  }
87
87
 
88
- func closeAllCameras() {
89
- children.forEach { child in
90
- if let captureSession = child.value(forKey: "captureSession") as? AVCaptureSession {
91
- captureSession.stopRunning()
92
- }
93
- child.willMove(toParent: nil)
94
- child.view.removeFromSuperview()
95
- child.removeFromParent()
96
- }
97
- }
98
88
 
99
89
  @objc func dismissPopUpMessage() {
100
90
  DispatchQueue.main.async {
@@ -168,11 +158,11 @@ class FaceMAtchController: UIViewController ,FaceMatchDelegate
168
158
  triggerCompleteEvent(eventName:"onComplete",dataModel:dataModel.faceExtractedModel)
169
159
 
170
160
  DispatchQueue.main.async {
161
+ self.faceMatch?.stopScanning()
171
162
  self.faceMatch?.willMove(toParent: nil)
172
163
  self.faceMatch?.view.removeFromSuperview()
173
164
  self.faceMatch?.removeFromParent()
174
165
  self.faceMatch = nil
175
- self.closeAllCameras()
176
166
  self.dismiss(animated: false)
177
167
  }
178
168
  }
@@ -70,11 +70,11 @@ 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()
76
77
  self.scanID = nil
77
- self.closeAllCameras();
78
78
  self.dismiss(animated: false)
79
79
  }
80
80
  }
@@ -82,26 +82,17 @@ class IDCardController: UIViewController ,ScanIDCardDelegate , ChildViewControll
82
82
  func dismissParentViewController() {
83
83
  triggerEvent(eventName:"onBackClick",dataModel:nil)
84
84
  DispatchQueue.main.async {
85
+ self.scanID?.stopScanning()
85
86
  self.scanID?.willMove(toParent: nil)
86
87
  self.scanID?.view.removeFromSuperview()
87
88
  self.scanID?.removeFromParent()
88
89
  self.scanID = nil
89
- self.closeAllCameras();
90
90
  self.dismiss(animated: false)
91
91
  }
92
92
 
93
93
  }
94
94
 
95
- func closeAllCameras() {
96
- children.forEach { child in
97
- if let captureSession = child.value(forKey: "captureSession") as? AVCaptureSession {
98
- captureSession.stopRunning()
99
- }
100
- child.willMove(toParent: nil)
101
- child.view.removeFromSuperview()
102
- child.removeFromParent()
103
- }
104
- }
95
+
105
96
 
106
97
 
107
98
  @objc func dismissPopUpMessage() {
@@ -196,11 +187,11 @@ class IDCardController: UIViewController ,ScanIDCardDelegate , ChildViewControll
196
187
  UserDefaults.standard.set(outputProperties, forKey: "OutputPropertiesDoc")
197
188
  }
198
189
  DispatchQueue.main.async {
190
+ self.scanID?.stopScanning()
199
191
  self.scanID?.willMove(toParent: nil)
200
192
  self.scanID?.view.removeFromSuperview()
201
193
  self.scanID?.removeFromParent()
202
194
  self.scanID = nil
203
- self.closeAllCameras();
204
195
  self.dismiss(animated: false)
205
196
  }
206
197
 
@@ -70,11 +70,11 @@ 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()
76
77
  self.scanOther = nil
77
- self.closeAllCameras();
78
78
  self.dismiss(animated: false)
79
79
  }
80
80
  }
@@ -82,26 +82,17 @@ class OtherController: UIViewController ,ScanOtherDelegate , ChildViewController
82
82
  func dismissParentViewController() {
83
83
  triggerEvent(eventName:"onBackClick",dataModel:nil)
84
84
  DispatchQueue.main.async {
85
+ self.scanOther?.stopScanning();
85
86
  self.scanOther?.willMove(toParent: nil)
86
87
  self.scanOther?.view.removeFromSuperview()
87
88
  self.scanOther?.removeFromParent()
88
89
  self.scanOther = nil
89
- self.closeAllCameras();
90
90
  self.dismiss(animated: false)
91
91
  }
92
92
 
93
93
  }
94
94
 
95
- func closeAllCameras() {
96
- children.forEach { child in
97
- if let captureSession = child.value(forKey: "captureSession") as? AVCaptureSession {
98
- captureSession.stopRunning()
99
- }
100
- child.willMove(toParent: nil)
101
- child.view.removeFromSuperview()
102
- child.removeFromParent()
103
- }
104
- }
95
+
105
96
 
106
97
  @objc func dismissPopUpMessage() {
107
98
  DispatchQueue.main.async {
@@ -174,11 +165,11 @@ class OtherController: UIViewController ,ScanOtherDelegate , ChildViewController
174
165
  }
175
166
  triggerCompleteEvent(eventName:"onComplete",dataModel:dataModel.otherExtractedModel)
176
167
  DispatchQueue.main.async {
168
+ self.scanOther?.stopScanning();
177
169
  self.scanOther?.willMove(toParent: nil)
178
170
  self.scanOther?.view.removeFromSuperview()
179
171
  self.scanOther?.removeFromParent()
180
172
  self.scanOther = nil
181
- self.closeAllCameras();
182
173
  self.dismiss(animated: false)
183
174
  }
184
175
 
@@ -74,11 +74,11 @@ class PassportController: UIViewController ,ScanPassportDelegate , ChildViewCont
74
74
  @objc func backButtonTapped() {
75
75
  triggerEvent(eventName:"onBackClick",dataModel:nil)
76
76
  DispatchQueue.main.async {
77
+ self.scanPassport?.stopScanning();
77
78
  self.scanPassport?.willMove(toParent: nil)
78
79
  self.scanPassport?.view.removeFromSuperview()
79
80
  self.scanPassport?.removeFromParent()
80
81
  self.scanPassport = nil
81
- self.closeAllCameras();
82
82
  self.dismiss(animated: false)
83
83
  }
84
84
  }
@@ -86,26 +86,17 @@ class PassportController: UIViewController ,ScanPassportDelegate , ChildViewCont
86
86
  func dismissParentViewController() {
87
87
  triggerEvent(eventName:"onBackClick",dataModel:nil)
88
88
  DispatchQueue.main.async {
89
+ self.scanPassport?.stopScanning();
89
90
  self.scanPassport?.willMove(toParent: nil)
90
91
  self.scanPassport?.view.removeFromSuperview()
91
92
  self.scanPassport?.removeFromParent()
92
93
  self.scanPassport = nil
93
- self.closeAllCameras();
94
94
  self.dismiss(animated: false)
95
95
  }
96
96
 
97
97
  }
98
98
 
99
- func closeAllCameras() {
100
- children.forEach { child in
101
- if let captureSession = child.value(forKey: "captureSession") as? AVCaptureSession {
102
- captureSession.stopRunning()
103
- }
104
- child.willMove(toParent: nil)
105
- child.view.removeFromSuperview()
106
- child.removeFromParent()
107
- }
108
- }
99
+
109
100
 
110
101
  @objc func dismissPopUpMessage() {
111
102
  DispatchQueue.main.async {
@@ -188,11 +179,11 @@ class PassportController: UIViewController ,ScanPassportDelegate , ChildViewCont
188
179
  }
189
180
  triggerCompleteEvent(eventName:"onComplete",dataModel:dataModel.passportExtractedModel)
190
181
  DispatchQueue.main.async {
182
+ self.scanPassport?.stopScanning();
191
183
  self.scanPassport?.willMove(toParent: nil)
192
184
  self.scanPassport?.view.removeFromSuperview()
193
185
  self.scanPassport?.removeFromParent()
194
186
  self.scanPassport = nil
195
- self.closeAllCameras();
196
187
  self.dismiss(animated: false)
197
188
  }
198
189
  }
@@ -205,11 +196,11 @@ class PassportController: UIViewController ,ScanPassportDelegate , ChildViewCont
205
196
  }
206
197
  triggerCompleteEvent(eventName:"onComplete",dataModel:dataModel.passportExtractedModel)
207
198
  DispatchQueue.main.async {
199
+ self.scanPassport?.stopScanning();
208
200
  self.scanPassport?.willMove(toParent: nil)
209
201
  self.scanPassport?.view.removeFromSuperview()
210
202
  self.scanPassport?.removeFromParent()
211
203
  self.scanPassport = nil
212
- self.closeAllCameras();
213
204
  self.dismiss(animated: false)
214
205
  }
215
206
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assentify-sdk-react-native",
3
- "version": "0.0.14",
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",