idwise-react-native-sdk 4.5.5 → 4.6.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 (63) hide show
  1. package/android/build.gradle +1 -1
  2. package/android/src/main/java/com/idwisemobilesdk/IdwiseMobileSdkModule.kt +43 -12
  3. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Assets.car +0 -0
  4. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/BulletCell.nib +0 -0
  5. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/BulletCellRTL.nib +0 -0
  6. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib/objects-13.0+.nib +0 -0
  7. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib/runtime.nib +0 -0
  8. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/objects-13.0+.nib +0 -0
  9. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/runtime.nib +0 -0
  10. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/objects-13.0+.nib +0 -0
  11. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/runtime.nib +0 -0
  12. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/IDWiseSDK +0 -0
  13. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Info.plist +0 -0
  14. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib/objects-13.0+.nib +0 -0
  15. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib/runtime.nib +0 -0
  16. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/MenuCell.nib +0 -0
  17. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.abi.json +2633 -1736
  18. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +6 -2
  19. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.swiftinterface +6 -2
  20. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StepCell.nib +0 -0
  21. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/_CodeSignature/CodeResources +41 -41
  22. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/coremldata.bin +0 -0
  23. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/coremldata.bin +0 -0
  24. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/coremldata.bin +0 -0
  25. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Assets.car +0 -0
  26. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/BulletCell.nib +0 -0
  27. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/BulletCellRTL.nib +0 -0
  28. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib/objects-13.0+.nib +0 -0
  29. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib/runtime.nib +0 -0
  30. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/objects-13.0+.nib +0 -0
  31. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/runtime.nib +0 -0
  32. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/objects-13.0+.nib +0 -0
  33. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/runtime.nib +0 -0
  34. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/IDWiseSDK +0 -0
  35. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Info.plist +0 -0
  36. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib/objects-13.0+.nib +0 -0
  37. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib/runtime.nib +0 -0
  38. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/MenuCell.nib +0 -0
  39. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +2633 -1736
  40. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +6 -2
  41. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +6 -2
  42. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/StepCell.nib +0 -0
  43. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/_CodeSignature/CodeResources +39 -39
  44. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/coremldata.bin +0 -0
  45. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/coremldata.bin +0 -0
  46. package/ios/IdwiseMobileSdk.mm +7 -4
  47. package/ios/IdwiseMobileSdk.swift +36 -4
  48. package/lib/commonjs/IDWise.js +16 -2
  49. package/lib/commonjs/IDWise.js.map +1 -1
  50. package/lib/commonjs/IDWiseConstants.js +2 -1
  51. package/lib/commonjs/IDWiseConstants.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 +16 -2
  55. package/lib/module/IDWise.js.map +1 -1
  56. package/lib/module/IDWiseConstants.js +2 -1
  57. package/lib/module/IDWiseConstants.js.map +1 -1
  58. package/lib/module/IDWiseEventListeners.js +4 -0
  59. package/lib/module/IDWiseEventListeners.js.map +1 -1
  60. package/package.json +1 -1
  61. package/src/IDWise.js +29 -2
  62. package/src/IDWiseConstants.js +1 -0
  63. package/src/IDWiseEventListeners.js +5 -0
@@ -102,6 +102,6 @@ dependencies {
102
102
  implementation "com.facebook.react:react-native:+"
103
103
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
104
104
  implementation 'com.google.code.gson:gson:2.10.1'
105
- implementation 'com.idwise:android-sdk:4.5.5'
105
+ implementation 'com.idwise:android-sdk:4.6.4'
106
106
  }
107
107
 
@@ -82,6 +82,20 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
82
82
  }
83
83
  }
84
84
 
85
+ @ReactMethod
86
+ fun resumeJourney(
87
+ journeyTemplateId: String,
88
+ journeyId: String,
89
+ locale: String
90
+ ) {
91
+ currentActivity?.let { activity ->
92
+ IDWise.resumeJourney(
93
+ activity, journeyTemplateId, journeyId, locale,
94
+ journeyCallback
95
+ )
96
+ }
97
+ }
98
+
85
99
  @ReactMethod
86
100
  fun startStep(stepId: String) {
87
101
  currentActivity?.let { activity -> IDWise.startStep(activity, stepId) }
@@ -93,19 +107,30 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
93
107
  }
94
108
 
95
109
  @ReactMethod
96
- fun getJourneySummary(journeyId: String) {
97
- IDWise.getJourneySummary(journeyId) { summary, error ->
110
+ fun finishDynamicJourney() {
111
+ IDWise.finishDynamicJourney()
112
+ }
113
+
114
+
115
+ @ReactMethod
116
+ fun skipStep(stepId: String) {
117
+ IDWise.skipStep(stepId)
118
+ }
119
+
120
+ @ReactMethod
121
+ fun getJourneySummary() {
122
+ IDWise.getJourneySummary() { summary, error ->
98
123
  val gson = Gson()
99
124
  val argsMap = Arguments.createMap()
100
125
 
101
126
  summary?.let {
102
- argsMap.putString("summary", gson.toJson(summary))
103
- sendEvent("onJourneySummary", argsMap)
127
+ argsMap.putString("summary", gson.toJson(summary))
128
+ sendEvent("onJourneySummary", argsMap)
104
129
  }
105
130
 
106
131
  error?.let {
107
- argsMap.putString("error", gson.toJson(error))
108
- sendEvent("onJourneySummaryError", argsMap)
132
+ argsMap.putString("error", gson.toJson(error))
133
+ sendEvent("onJourneySummaryError", argsMap)
109
134
  }
110
135
  }
111
136
  }
@@ -171,12 +196,18 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
171
196
 
172
197
  argsMap.putString("stepId", stepId)
173
198
  stepResult?.let {
174
- argsMap.putString("stepResult", gson.toJson(stepResult))
199
+ argsMap.putString("stepResult", gson.toJson(stepResult))
175
200
  }
176
201
 
177
202
  sendEvent("onStepResult", argsMap)
178
203
  }
179
204
 
205
+ override fun onStepSkipped(stepId: String) {
206
+ val params: WritableMap = Arguments.createMap()
207
+ params.putString("stepId", stepId)
208
+ sendEvent("onStepSkipped", params)
209
+ }
210
+
180
211
  override fun onStepConfirmed(stepId: String) {
181
212
  /**
182
213
  * No need to implement this as for latest version it's not being required.
@@ -192,12 +223,12 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
192
223
 
193
224
 
194
225
  fun convertImageToBase64String(bitmap: Bitmap?): String {
195
- if (bitmap == null || bitmap.isRecycled) return ""
226
+ if (bitmap == null || bitmap.isRecycled) return ""
196
227
 
197
- val baos = ByteArrayOutputStream()
198
- bitmap.compress(Bitmap.CompressFormat.JPEG, 100, baos)
199
- val b = baos.toByteArray()
200
- return Base64.encodeToString(b, Base64.DEFAULT)
228
+ val baos = ByteArrayOutputStream()
229
+ bitmap.compress(Bitmap.CompressFormat.JPEG, 100, baos)
230
+ val b = baos.toByteArray()
231
+ return Base64.encodeToString(b, Base64.DEFAULT)
201
232
  }
202
233
  companion object {
203
234
  const val NAME = "IdwiseMobileSdk"