idwise-react-native-sdk 4.5.5 → 4.6.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.
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/idwisemobilesdk/IdwiseMobileSdkModule.kt +43 -12
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Assets.car +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/BulletCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/BulletCellRTL.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/IDWiseSDK +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/MenuCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.abi.json +2629 -1732
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +6 -2
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.swiftinterface +6 -2
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StepCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/_CodeSignature/CodeResources +37 -37
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/metadata.json +2 -2
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Assets.car +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/BulletCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/BulletCellRTL.nib +0 -0
- 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
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib/runtime.nib +0 -0
- 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
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/runtime.nib +0 -0
- 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
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/IDWiseSDK +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Info.plist +0 -0
- 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
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/MenuCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +2629 -1732
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +6 -2
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +6 -2
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/StepCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/_CodeSignature/CodeResources +37 -37
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/coremldata.bin +0 -0
- package/ios/IdwiseMobileSdk.mm +7 -4
- package/ios/IdwiseMobileSdk.swift +36 -4
- package/lib/commonjs/IDWise.js +16 -2
- package/lib/commonjs/IDWise.js.map +1 -1
- package/lib/commonjs/IDWiseConstants.js +2 -1
- package/lib/commonjs/IDWiseConstants.js.map +1 -1
- package/lib/commonjs/IDWiseEventListeners.js +4 -0
- package/lib/commonjs/IDWiseEventListeners.js.map +1 -1
- package/lib/commonjs/index.js +0 -8
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/IDWise.js +16 -2
- package/lib/module/IDWise.js.map +1 -1
- package/lib/module/IDWiseConstants.js +2 -1
- package/lib/module/IDWiseConstants.js.map +1 -1
- package/lib/module/IDWiseEventListeners.js +4 -0
- package/lib/module/IDWiseEventListeners.js.map +1 -1
- package/lib/module/index.js +2 -4
- package/lib/module/index.js.map +1 -1
- package/package.json +1 -1
- package/src/IDWise.js +29 -2
- package/src/IDWiseConstants.js +1 -0
- package/src/IDWiseEventListeners.js +5 -0
- package/src/index.js +1 -1
package/android/build.gradle
CHANGED
|
@@ -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.
|
|
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
|
|
97
|
-
IDWise.
|
|
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
|
-
|
|
103
|
-
|
|
127
|
+
argsMap.putString("summary", gson.toJson(summary))
|
|
128
|
+
sendEvent("onJourneySummary", argsMap)
|
|
104
129
|
}
|
|
105
130
|
|
|
106
131
|
error?.let {
|
|
107
|
-
|
|
108
|
-
|
|
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
|
-
|
|
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
|
-
|
|
226
|
+
if (bitmap == null || bitmap.isRecycled) return ""
|
|
196
227
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
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"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|