idwise-nfc-react-native-sdk 5.3.1 → 5.4.4

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 (67) hide show
  1. package/android/gradle.properties +1 -1
  2. package/android/src/main/java/com/idwisemobilesdk/IdwiseMobileSdkModule.kt +29 -9
  3. package/ios/IDWiseNFC.xcframework/Info.plist +5 -5
  4. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Assets.car +0 -0
  5. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/BlockedJourneyViewController.storyboardc/Info.plist +0 -0
  6. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/BlockedJourneyViewController.storyboardc/UIViewController-Y6W-OH-hqX.nib +0 -0
  7. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/BlockedJourneyViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
  8. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/IDWiseNFC +0 -0
  9. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Info.plist +0 -0
  10. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.abi.json +5822 -3031
  11. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.private.swiftinterface +73 -0
  12. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.swiftinterface +73 -0
  13. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/TokenExpiredVC.storyboardc/Info.plist +0 -0
  14. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/TokenExpiredVC.storyboardc/TokenExpiredVC.nib +0 -0
  15. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/TokenExpiredVC.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
  16. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ar.lproj/CustomLocalized.strings +0 -0
  17. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ckb.lproj/CustomLocalized.strings +0 -0
  18. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/coremldata.bin +0 -0
  19. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/metadata.json +2 -2
  20. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/en.lproj/CustomLocalized.strings +0 -0
  21. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/en.lproj/Localizable.strings +0 -0
  22. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Assets.car +0 -0
  23. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/BlockedJourneyViewController.storyboardc/Info.plist +0 -0
  24. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/BlockedJourneyViewController.storyboardc/UIViewController-Y6W-OH-hqX.nib +0 -0
  25. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/BlockedJourneyViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
  26. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/IDWiseNFC +0 -0
  27. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Info.plist +0 -0
  28. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios-simulator.abi.json +5822 -3031
  29. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +73 -0
  30. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +73 -0
  31. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.abi.json +5822 -3031
  32. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +73 -0
  33. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +73 -0
  34. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/TokenExpiredVC.storyboardc/Info.plist +0 -0
  35. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/TokenExpiredVC.storyboardc/TokenExpiredVC.nib +0 -0
  36. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/TokenExpiredVC.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
  37. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/_CodeSignature/CodeResources +147 -27
  38. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ar.lproj/CustomLocalized.strings +0 -0
  39. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ckb.lproj/CustomLocalized.strings +0 -0
  40. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/coremldata.bin +0 -0
  41. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/metadata.json +2 -2
  42. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/model0/coremldata.bin +0 -0
  43. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/en.lproj/CustomLocalized.strings +0 -0
  44. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/en.lproj/Localizable.strings +0 -0
  45. package/ios/IdwiseMobileSdk.mm +1 -0
  46. package/ios/IdwiseMobileSdk.swift +36 -15
  47. package/lib/commonjs/IDWise.js +6 -1
  48. package/lib/commonjs/IDWise.js.map +1 -1
  49. package/lib/commonjs/IDWiseConstants.js +1 -0
  50. package/lib/commonjs/IDWiseConstants.js.map +1 -1
  51. package/lib/commonjs/IDWiseDynamic.js +5 -0
  52. package/lib/commonjs/IDWiseDynamic.js.map +1 -1
  53. package/lib/commonjs/IDWiseEventListeners.js +4 -0
  54. package/lib/commonjs/IDWiseEventListeners.js.map +1 -1
  55. package/lib/module/IDWise.js +6 -1
  56. package/lib/module/IDWise.js.map +1 -1
  57. package/lib/module/IDWiseConstants.js +1 -0
  58. package/lib/module/IDWiseConstants.js.map +1 -1
  59. package/lib/module/IDWiseDynamic.js +5 -0
  60. package/lib/module/IDWiseDynamic.js.map +1 -1
  61. package/lib/module/IDWiseEventListeners.js +4 -0
  62. package/lib/module/IDWiseEventListeners.js.map +1 -1
  63. package/package.json +1 -1
  64. package/src/IDWise.js +7 -0
  65. package/src/IDWiseConstants.js +1 -0
  66. package/src/IDWiseDynamic.js +7 -0
  67. 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.4
@@ -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,11 +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
- val response = OnStepCapturedInfoExposed(stepCapturedInfo.stepId.toString(),originalImage,croppedImage)
196
-
211
+ val originalImageBack = convertImageToBase64String(stepCapturedInfo.originalImageBack)
212
+ val croppedImageBack = convertImageToBase64String(stepCapturedInfo.croppedImageBack)
213
+ val response = OnStepCapturedInfoExposed(stepCapturedInfo.stepId.toString(),originalImage,croppedImage,originalImageBack,croppedImageBack)
214
+
197
215
  params.putString("data", Gson().toJson(response))
198
216
  sendEvent("onStepCaptured", params)
199
217
  }
@@ -236,9 +254,9 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
236
254
  val deconstructedMap = HashMap<String,String>();
237
255
  while (iterator.hasNextKey()) {
238
256
  val key = iterator.nextKey();
239
- deconstructedMap.put(key, readableMap.getString(key)?:"");
257
+ deconstructedMap.put(key, readableMap.getString(key)?:"");
240
258
  }
241
-
259
+
242
260
  return deconstructedMap;
243
261
  }
244
262
 
@@ -246,7 +264,9 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
246
264
  internal data class OnStepCapturedInfoExposed(
247
265
  val stepId:String,
248
266
  val originalImage:String?,
249
- val croppedImage:String
267
+ val croppedImage:String?,
268
+ val originalImageBack:String?,
269
+ val croppedImageBack:String
250
270
  )
251
271
 
252
272
 
@@ -8,32 +8,32 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>IDWiseNFC.framework/IDWiseNFC</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64_x86_64-simulator</string>
11
+ <string>ios-arm64</string>
12
12
  <key>LibraryPath</key>
13
13
  <string>IDWiseNFC.framework</string>
14
14
  <key>SupportedArchitectures</key>
15
15
  <array>
16
16
  <string>arm64</string>
17
- <string>x86_64</string>
18
17
  </array>
19
18
  <key>SupportedPlatform</key>
20
19
  <string>ios</string>
21
- <key>SupportedPlatformVariant</key>
22
- <string>simulator</string>
23
20
  </dict>
24
21
  <dict>
25
22
  <key>BinaryPath</key>
26
23
  <string>IDWiseNFC.framework/IDWiseNFC</string>
27
24
  <key>LibraryIdentifier</key>
28
- <string>ios-arm64</string>
25
+ <string>ios-arm64_x86_64-simulator</string>
29
26
  <key>LibraryPath</key>
30
27
  <string>IDWiseNFC.framework</string>
31
28
  <key>SupportedArchitectures</key>
32
29
  <array>
33
30
  <string>arm64</string>
31
+ <string>x86_64</string>
34
32
  </array>
35
33
  <key>SupportedPlatform</key>
36
34
  <string>ios</string>
35
+ <key>SupportedPlatformVariant</key>
36
+ <string>simulator</string>
37
37
  </dict>
38
38
  </array>
39
39
  <key>CFBundlePackageType</key>