idwise-react-native-sdk 5.3.1 → 5.4.3

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 (66) hide show
  1. package/android/gradle.properties +1 -1
  2. package/android/src/main/java/com/idwisemobilesdk/IdwiseMobileSdkModule.kt +23 -7
  3. package/ios/IDWiseSDK.xcframework/Info.plist +5 -5
  4. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Assets.car +0 -0
  5. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/BlockedJourneyViewController.storyboardc/Info.plist +0 -0
  6. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/BlockedJourneyViewController.storyboardc/UIViewController-Y6W-OH-hqX.nib +0 -0
  7. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/BlockedJourneyViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
  8. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentTypeTableViewCell.nib +0 -0
  9. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib +0 -0
  10. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/IDWiseSDK +0 -0
  11. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Info.plist +0 -0
  12. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.abi.json +12385 -9578
  13. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +82 -12
  14. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  15. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.swiftinterface +82 -12
  16. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib +0 -0
  17. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/SelfieViewController.storyboardc/Od6-6k-VCn-view-avu-y3-b61.nib +0 -0
  18. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/_CodeSignature/CodeResources +60 -27
  19. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/coremldata.bin +0 -0
  20. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/metadata.json +61 -64
  21. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/metadata.json +18 -21
  22. package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Assets.car +0 -0
  23. package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/BlockedJourneyViewController.storyboardc/Info.plist +0 -0
  24. package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/BlockedJourneyViewController.storyboardc/UIViewController-Y6W-OH-hqX.nib +0 -0
  25. package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/BlockedJourneyViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
  26. package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/DocumentTypeTableViewCell.nib +0 -0
  27. package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib +0 -0
  28. package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/IDWiseSDK +0 -0
  29. package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Info.plist +0 -0
  30. package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +12385 -9578
  31. package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +82 -12
  32. package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  33. package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +82 -12
  34. package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +12385 -9578
  35. package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +82 -12
  36. package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  37. package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +82 -12
  38. package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib +0 -0
  39. package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/SelfieViewController.storyboardc/Od6-6k-VCn-view-avu-y3-b61.nib +0 -0
  40. package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/_CodeSignature/CodeResources +70 -37
  41. package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/coremldata.bin +0 -0
  42. package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/metadata.json +61 -64
  43. package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/metadata.json +18 -21
  44. package/ios/IdwiseMobileSdk.mm +2 -1
  45. package/ios/IdwiseMobileSdk.swift +30 -13
  46. package/lib/commonjs/IDWise.js +6 -1
  47. package/lib/commonjs/IDWise.js.map +1 -1
  48. package/lib/commonjs/IDWiseConstants.js +1 -0
  49. package/lib/commonjs/IDWiseConstants.js.map +1 -1
  50. package/lib/commonjs/IDWiseDynamic.js +5 -0
  51. package/lib/commonjs/IDWiseDynamic.js.map +1 -1
  52. package/lib/commonjs/IDWiseEventListeners.js +4 -0
  53. package/lib/commonjs/IDWiseEventListeners.js.map +1 -1
  54. package/lib/module/IDWise.js +6 -1
  55. package/lib/module/IDWise.js.map +1 -1
  56. package/lib/module/IDWiseConstants.js +1 -0
  57. package/lib/module/IDWiseConstants.js.map +1 -1
  58. package/lib/module/IDWiseDynamic.js +5 -0
  59. package/lib/module/IDWiseDynamic.js.map +1 -1
  60. package/lib/module/IDWiseEventListeners.js +4 -0
  61. package/lib/module/IDWiseEventListeners.js.map +1 -1
  62. package/package.json +1 -1
  63. package/src/IDWise.js +7 -0
  64. package/src/IDWiseConstants.js +1 -0
  65. package/src/IDWiseDynamic.js +7 -0
  66. package/src/IDWiseEventListeners.js +5 -0
@@ -4,4 +4,4 @@ IdwiseMobileSdk_targetSdkVersion=31
4
4
  IdwiseMobileSdk_compileSdkVersion=31
5
5
  IdwiseMobileSdk_ndkversion=21.4.7075529
6
6
  # Idwise SDK version
7
- idwise_sdk_version=5.2.9
7
+ idwise_sdk_version=5.4.3
@@ -25,6 +25,16 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
25
25
  .emit(eventName, params)
26
26
  }
27
27
 
28
+
29
+ @ReactMethod(isBlockingSynchronousMethod = true)
30
+ fun isDeviceBlocked(): Boolean {
31
+ if(currentActivity == null){
32
+ return false
33
+ }else{
34
+ return IDWise.isDeviceBlocked(context=currentActivity!!)
35
+ }
36
+ }
37
+
28
38
  @ReactMethod
29
39
  fun initialize(clientKey: String, theme: String) {
30
40
  val idwiseTheme: IDWiseTheme = try {
@@ -51,7 +61,7 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
51
61
  applicantDetails?.let{
52
62
  deconstructedMap = recursivelyDeconstructReadableMap(applicantDetails)
53
63
  }
54
-
64
+
55
65
  currentActivity?.let { activity ->
56
66
  IDWise.startJourney(context=activity, flowId=journeyTemplateId, referenceNo=referenceNo, locale=locale, applicantDetails=deconstructedMap, journeyCallbacks=journeyCallback)
57
67
  }
@@ -131,9 +141,9 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
131
141
  IDWiseDynamic.getJourneySummary() { summary, error ->
132
142
  val gson = Gson()
133
143
  val argsMap = Arguments.createMap()
134
-
144
+
135
145
  val summaryResponse = JourneySummaryExposed(summary,error)
136
-
146
+
137
147
  argsMap.putString("data", gson.toJson(summaryResponse))
138
148
  sendEvent("onJourneySummary", argsMap)
139
149
 
@@ -173,6 +183,12 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
173
183
  sendEvent("onJourneyCompleted", params)
174
184
  }
175
185
 
186
+ override fun onJourneyBlocked(journeyInfo: JourneyBlockedInfo) {
187
+ val params: WritableMap = Arguments.createMap()
188
+ params.putString("data", Gson().toJson(journeyInfo))
189
+ sendEvent("onJourneyBlocked", params)
190
+ }
191
+
176
192
  override fun onJourneyCancelled(journeyInfo: JourneyCancelledInfo) {
177
193
  val params: WritableMap = Arguments.createMap()
178
194
  params.putString("data", Gson().toJson(journeyInfo))
@@ -189,13 +205,13 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
189
205
  val stepCallback = object : IDWiseStepCallbacks {
190
206
  override fun onStepCaptured(stepCapturedInfo:StepCapturedInfo) {
191
207
  val params: WritableMap = Arguments.createMap()
192
-
208
+
193
209
  val originalImage = convertImageToBase64String(stepCapturedInfo.originalImage)
194
210
  val croppedImage = convertImageToBase64String(stepCapturedInfo.croppedImage)
195
211
  val originalImageBack = convertImageToBase64String(stepCapturedInfo.originalImageBack)
196
212
  val croppedImageBack = convertImageToBase64String(stepCapturedInfo.croppedImageBack)
197
213
  val response = OnStepCapturedInfoExposed(stepCapturedInfo.stepId.toString(),originalImage,croppedImage,originalImageBack,croppedImageBack)
198
-
214
+
199
215
  params.putString("data", Gson().toJson(response))
200
216
  sendEvent("onStepCaptured", params)
201
217
  }
@@ -238,9 +254,9 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
238
254
  val deconstructedMap = HashMap<String,String>();
239
255
  while (iterator.hasNextKey()) {
240
256
  val key = iterator.nextKey();
241
- deconstructedMap.put(key, readableMap.getString(key)?:"");
257
+ deconstructedMap.put(key, readableMap.getString(key)?:"");
242
258
  }
243
-
259
+
244
260
  return deconstructedMap;
245
261
  }
246
262
 
@@ -8,32 +8,32 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>IDWiseSDK.framework/IDWiseSDK</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64</string>
11
+ <string>ios-arm64_x86_64-simulator</string>
12
12
  <key>LibraryPath</key>
13
13
  <string>IDWiseSDK.framework</string>
14
14
  <key>SupportedArchitectures</key>
15
15
  <array>
16
16
  <string>arm64</string>
17
+ <string>x86_64</string>
17
18
  </array>
18
19
  <key>SupportedPlatform</key>
19
20
  <string>ios</string>
21
+ <key>SupportedPlatformVariant</key>
22
+ <string>simulator</string>
20
23
  </dict>
21
24
  <dict>
22
25
  <key>BinaryPath</key>
23
26
  <string>IDWiseSDK.framework/IDWiseSDK</string>
24
27
  <key>LibraryIdentifier</key>
25
- <string>ios-arm64_x86_64-simulator</string>
28
+ <string>ios-arm64</string>
26
29
  <key>LibraryPath</key>
27
30
  <string>IDWiseSDK.framework</string>
28
31
  <key>SupportedArchitectures</key>
29
32
  <array>
30
33
  <string>arm64</string>
31
- <string>x86_64</string>
32
34
  </array>
33
35
  <key>SupportedPlatform</key>
34
36
  <string>ios</string>
35
- <key>SupportedPlatformVariant</key>
36
- <string>simulator</string>
37
37
  </dict>
38
38
  </array>
39
39
  <key>CFBundlePackageType</key>