idwise-react-native-sdk 5.0.3 → 5.0.5

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 (25) hide show
  1. package/android/gradle.properties +1 -1
  2. package/android/src/main/java/com/idwisemobilesdk/IdwiseMobileSdkModule.kt +6 -2
  3. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/IDWiseSDK +0 -0
  4. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Info.plist +0 -0
  5. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.abi.json +2495 -1914
  6. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +3 -1
  7. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.swiftinterface +3 -1
  8. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib/objects-13.0+.nib +0 -0
  9. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib/runtime.nib +0 -0
  10. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/_CodeSignature/CodeResources +17 -17
  11. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/coremldata.bin +0 -0
  12. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/metadata.json +2 -2
  13. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/IDWiseSDK +0 -0
  14. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Info.plist +0 -0
  15. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +2495 -1914
  16. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +3 -1
  17. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +3 -1
  18. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib/objects-13.0+.nib +0 -0
  19. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib/runtime.nib +0 -0
  20. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/_CodeSignature/CodeResources +19 -19
  21. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/coremldata.bin +0 -0
  22. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/metadata.json +2 -2
  23. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/coremldata.bin +0 -0
  24. package/ios/IdwiseMobileSdk.swift +5 -1
  25. package/package.json +1 -1
@@ -230,7 +230,7 @@ public enum DataTransferError : Swift.Error {
230
230
  case resolvedNetworkFailure(any Swift.Error)
231
231
  }
232
232
  public protocol DataTransferService {
233
- typealias CompletionHandler<T> = (Swift.Result<T, IDWiseSDK.DataTransferError>, Foundation.Data?) -> Swift.Void
233
+ typealias CompletionHandler<T> = (Swift.Result<T, IDWiseSDK.DataTransferError>, Foundation.Data?, Foundation.URLResponse?) -> Swift.Void
234
234
  @discardableResult
235
235
  func request<T, E>(with endpoint: E, completion: @escaping Self.CompletionHandler<T>) -> (any IDWiseSDK.NetworkCancellable)? where T : Swift.Decodable, T == E.Response, E : IDWiseSDK.ResponseRequestable
236
236
  @discardableResult
@@ -299,6 +299,8 @@ public struct StepCapturedInfo {
299
299
  public let stepId: Swift.String
300
300
  public let originalImage: UIKit.UIImage?
301
301
  public let croppedImage: UIKit.UIImage?
302
+ public let originalImageBack: UIKit.UIImage?
303
+ public let croppedImageBack: UIKit.UIImage?
302
304
  }
303
305
  @_hasMissingDesignatedInitializers public class UIUtilities {
304
306
  public static func addCircle(atPoint point: CoreFoundation.CGPoint, to view: UIKit.UIView, color: UIKit.UIColor, radius: CoreFoundation.CGFloat)
@@ -230,7 +230,7 @@ public enum DataTransferError : Swift.Error {
230
230
  case resolvedNetworkFailure(any Swift.Error)
231
231
  }
232
232
  public protocol DataTransferService {
233
- typealias CompletionHandler<T> = (Swift.Result<T, IDWiseSDK.DataTransferError>, Foundation.Data?) -> Swift.Void
233
+ typealias CompletionHandler<T> = (Swift.Result<T, IDWiseSDK.DataTransferError>, Foundation.Data?, Foundation.URLResponse?) -> Swift.Void
234
234
  @discardableResult
235
235
  func request<T, E>(with endpoint: E, completion: @escaping Self.CompletionHandler<T>) -> (any IDWiseSDK.NetworkCancellable)? where T : Swift.Decodable, T == E.Response, E : IDWiseSDK.ResponseRequestable
236
236
  @discardableResult
@@ -299,6 +299,8 @@ public struct StepCapturedInfo {
299
299
  public let stepId: Swift.String
300
300
  public let originalImage: UIKit.UIImage?
301
301
  public let croppedImage: UIKit.UIImage?
302
+ public let originalImageBack: UIKit.UIImage?
303
+ public let croppedImageBack: UIKit.UIImage?
302
304
  }
303
305
  @_hasMissingDesignatedInitializers public class UIUtilities {
304
306
  public static func addCircle(atPoint point: CoreFoundation.CGPoint, to view: UIKit.UIView, color: UIKit.UIColor, radius: CoreFoundation.CGFloat)
@@ -106,7 +106,7 @@
106
106
  </data>
107
107
  <key>Info.plist</key>
108
108
  <data>
109
- Lp16I2uZBupdf2Sl1X5Qh2xKVcU=
109
+ uoej0u5dWw3MkbOmuG31gH77JwA=
110
110
  </data>
111
111
  <key>JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib/objects-13.0+.nib</key>
112
112
  <data>
@@ -138,11 +138,11 @@
138
138
  </data>
139
139
  <key>Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
140
140
  <data>
141
- jNY5bkZ28HuAWwcvWHsbzkSV0u8=
141
+ yTrtQACw5569ftbaoxLxIQI+Ef4=
142
142
  </data>
143
143
  <key>Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
144
144
  <data>
145
- PKxFnUgSZ5Jel7yaW5Lk/Z4yMC4=
145
+ IhK3H7RTjA+EUkI8yJEscc/MDb8=
146
146
  </data>
147
147
  <key>Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
148
148
  <data>
@@ -150,11 +150,11 @@
150
150
  </data>
151
151
  <key>Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
152
152
  <data>
153
- PKxFnUgSZ5Jel7yaW5Lk/Z4yMC4=
153
+ IhK3H7RTjA+EUkI8yJEscc/MDb8=
154
154
  </data>
155
155
  <key>Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
156
156
  <data>
157
- 4f04kB96CveFvbgiElc3pSSTMRY=
157
+ Lca4uw/6J7S2DX2z7cGF5U7ye6I=
158
158
  </data>
159
159
  <key>Mulish-Bold.ttf</key>
160
160
  <data>
@@ -182,11 +182,11 @@
182
182
  </data>
183
183
  <key>ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib/objects-13.0+.nib</key>
184
184
  <data>
185
- 2LBS6ev7tbjReZDEmMvcu/GPyVk=
185
+ u7DNkdjCup3QuL63uMnzRDv+WdU=
186
186
  </data>
187
187
  <key>ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib/runtime.nib</key>
188
188
  <data>
189
- tkhFkWOfsaxnsoR5RbfZKXhWtd0=
189
+ aNOfHwmwqiXu9+Yvp6svf5HpEf0=
190
190
  </data>
191
191
  <key>ProgressBarMenuScreen.nib/objects-13.0+.nib</key>
192
192
  <data>
@@ -246,11 +246,11 @@
246
246
  </data>
247
247
  <key>document_detector.mlmodelc/coremldata.bin</key>
248
248
  <data>
249
- x3g53PPMGiV+lKaSqDvTgz742wg=
249
+ aaXR+BpPN3sTXRWe9mXCzJb/XSU=
250
250
  </data>
251
251
  <key>document_detector.mlmodelc/metadata.json</key>
252
252
  <data>
253
- Bpy6ALlbfzTcuat3RrUt0L5OXuY=
253
+ BsMj9R+3QGkJQhV5WvgqNChPGx4=
254
254
  </data>
255
255
  <key>document_detector.mlmodelc/model0/analytics/coremldata.bin</key>
256
256
  <data>
@@ -258,7 +258,7 @@
258
258
  </data>
259
259
  <key>document_detector.mlmodelc/model0/coremldata.bin</key>
260
260
  <data>
261
- ABNV0PCZmD0Me9P64JCCuqQeyZA=
261
+ 9/MJoxIZRg0qdxte7EMbuDJqB2M=
262
262
  </data>
263
263
  <key>document_detector.mlmodelc/model0/model.espresso.net</key>
264
264
  <data>
@@ -560,14 +560,14 @@
560
560
  <dict>
561
561
  <key>hash2</key>
562
562
  <data>
563
- Iln5ugK24T9IwaLq0SDx4CYo7Ew6yhn+l7HLtNfoA1A=
563
+ aLlQY87gt4jAjnVEuUsZMriB5lxWsneQVgkkM9ul7Rk=
564
564
  </data>
565
565
  </dict>
566
566
  <key>Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
567
567
  <dict>
568
568
  <key>hash2</key>
569
569
  <data>
570
- 2tFNlDHJFPrRbhBFtQDYxfR1GD774Wj6YOaVjTg/KTM=
570
+ 7/U9M6Ei7li/VKVIxLRj0RHFP8bff0/0y99O4EGBKDs=
571
571
  </data>
572
572
  </dict>
573
573
  <key>Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
@@ -581,14 +581,14 @@
581
581
  <dict>
582
582
  <key>hash2</key>
583
583
  <data>
584
- 2tFNlDHJFPrRbhBFtQDYxfR1GD774Wj6YOaVjTg/KTM=
584
+ 7/U9M6Ei7li/VKVIxLRj0RHFP8bff0/0y99O4EGBKDs=
585
585
  </data>
586
586
  </dict>
587
587
  <key>Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
588
588
  <dict>
589
589
  <key>hash2</key>
590
590
  <data>
591
- 7ZjACI43ZuRMZkxOj9+211QD+DcWnu7wnLDY+de8Jcc=
591
+ DffEY72jePLk0T1/CqxATu8TuKom7io4hIJqgSRDTCE=
592
592
  </data>
593
593
  </dict>
594
594
  <key>Mulish-Bold.ttf</key>
@@ -637,14 +637,14 @@
637
637
  <dict>
638
638
  <key>hash2</key>
639
639
  <data>
640
- Nesd2jsesVwyJZxwy+5/TU8hraNTW5deLS/DS4SNRgQ=
640
+ E6OJeJz6KJsmb3856yzAHD1d5cra4l/g05/awte7Ask=
641
641
  </data>
642
642
  </dict>
643
643
  <key>ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib/runtime.nib</key>
644
644
  <dict>
645
645
  <key>hash2</key>
646
646
  <data>
647
- lx2U9C2kCAJYE0l4c5QTTCQjdkGnIu9spwXp4mEQVcw=
647
+ TFwzgntCKZvQfhppCnNy/GrAKzwu1mW9OuowrMGLiGs=
648
648
  </data>
649
649
  </dict>
650
650
  <key>ProgressBarMenuScreen.nib/objects-13.0+.nib</key>
@@ -749,14 +749,14 @@
749
749
  <dict>
750
750
  <key>hash2</key>
751
751
  <data>
752
- 55dJ0iU5Us0bBh1Ge1AzosaBJLWiPDIkB+UNHveoD08=
752
+ xQJZIUpZ6KJpXgBdnbqIWPkaEb9OmFw9J9fAdQEVe8k=
753
753
  </data>
754
754
  </dict>
755
755
  <key>document_detector.mlmodelc/metadata.json</key>
756
756
  <dict>
757
757
  <key>hash2</key>
758
758
  <data>
759
- JWCtN8hfxcPgjMTpX75kofYKJikZIBmNZ0MbkwA9C80=
759
+ ttavkHwMq00AMNq8YVdvk0QgFrY/3Ct3L2XGHkZqFr8=
760
760
  </data>
761
761
  </dict>
762
762
  <key>document_detector.mlmodelc/model0/analytics/coremldata.bin</key>
@@ -770,7 +770,7 @@
770
770
  <dict>
771
771
  <key>hash2</key>
772
772
  <data>
773
- GkhvG+cIZydp4WKoPZ+jd0bUwj5/zQ7U4A9Dt44QwWg=
773
+ cTCoaQqNdoeqy8Et5+UiYb/ViKEz6/zTidf51cBNJfY=
774
774
  </data>
775
775
  </dict>
776
776
  <key>document_detector.mlmodelc/model0/model.espresso.net</key>
@@ -90,9 +90,9 @@
90
90
  ],
91
91
  "generatedClassName" : "document_detector",
92
92
  "userDefinedMetadata" : {
93
- "confidence_threshold" : "0.25",
94
93
  "iou_threshold" : "0.45",
95
- "classes" : "Doc"
94
+ "classes" : "Doc",
95
+ "confidence_threshold" : "0.25"
96
96
  },
97
97
  "neuralNetworkLayerTypeHistogram" : {
98
98
  "Concat" : 13,
@@ -245,8 +245,10 @@ extension IdwiseMobileSdk: IDWiseStepCallbacks {
245
245
  do{
246
246
  let originalImage = convertImageToBase64String(img: stepCapturedInfo.originalImage)
247
247
  let croppedImage = convertImageToBase64String(img: stepCapturedInfo.croppedImage)
248
+ let originalImageBack = convertImageToBase64String(img: stepCapturedInfo.originalImageBack)
249
+ let croppedImageBack = convertImageToBase64String(img: stepCapturedInfo.croppedImageBack)
248
250
 
249
- let captureResponse = OnStepCapturedExposed(stepId: stepCapturedInfo.stepId, originalImage: originalImage, croppedImage: croppedImage)
251
+ let captureResponse = OnStepCapturedExposed(stepId: stepCapturedInfo.stepId, originalImage: originalImage, croppedImage: croppedImage, originalImageBack:originalImageBack, croppedImageBack: croppedImageBack)
250
252
 
251
253
  let jsonEncoder = JSONEncoder()
252
254
  let jsonData = try jsonEncoder.encode(captureResponse)
@@ -310,5 +312,7 @@ private struct OnStepCapturedExposed: Codable {
310
312
  var stepId: String
311
313
  var originalImage: String?
312
314
  var croppedImage: String?
315
+ var originalImageBack: String?
316
+ var croppedImageBack: String?
313
317
  }
314
318
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "idwise-react-native-sdk",
3
- "version": "5.0.3",
3
+ "version": "5.0.5",
4
4
  "description": "IDWise React Native Bridge",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",