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.
- package/android/gradle.properties +1 -1
- package/android/src/main/java/com/idwisemobilesdk/IdwiseMobileSdkModule.kt +23 -7
- package/ios/IDWiseSDK.xcframework/Info.plist +5 -5
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Assets.car +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/BlockedJourneyViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/BlockedJourneyViewController.storyboardc/UIViewController-Y6W-OH-hqX.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/BlockedJourneyViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentTypeTableViewCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.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/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.abi.json +12385 -9578
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +82 -12
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.swiftinterface +82 -12
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/SelfieViewController.storyboardc/Od6-6k-VCn-view-avu-y3-b61.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/_CodeSignature/CodeResources +60 -27
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/metadata.json +61 -64
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/metadata.json +18 -21
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Assets.car +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/BlockedJourneyViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/BlockedJourneyViewController.storyboardc/UIViewController-Y6W-OH-hqX.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/BlockedJourneyViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/DocumentTypeTableViewCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/IDWiseSDK +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +12385 -9578
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +82 -12
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +82 -12
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +12385 -9578
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +82 -12
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +82 -12
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/SelfieViewController.storyboardc/Od6-6k-VCn-view-avu-y3-b61.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/_CodeSignature/CodeResources +70 -37
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/metadata.json +61 -64
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/metadata.json +18 -21
- package/ios/IdwiseMobileSdk.mm +2 -1
- package/ios/IdwiseMobileSdk.swift +30 -13
- package/lib/commonjs/IDWise.js +6 -1
- package/lib/commonjs/IDWise.js.map +1 -1
- package/lib/commonjs/IDWiseConstants.js +1 -0
- package/lib/commonjs/IDWiseConstants.js.map +1 -1
- package/lib/commonjs/IDWiseDynamic.js +5 -0
- package/lib/commonjs/IDWiseDynamic.js.map +1 -1
- package/lib/commonjs/IDWiseEventListeners.js +4 -0
- package/lib/commonjs/IDWiseEventListeners.js.map +1 -1
- package/lib/module/IDWise.js +6 -1
- package/lib/module/IDWise.js.map +1 -1
- package/lib/module/IDWiseConstants.js +1 -0
- package/lib/module/IDWiseConstants.js.map +1 -1
- package/lib/module/IDWiseDynamic.js +5 -0
- package/lib/module/IDWiseDynamic.js.map +1 -1
- package/lib/module/IDWiseEventListeners.js +4 -0
- package/lib/module/IDWiseEventListeners.js.map +1 -1
- package/package.json +1 -1
- package/src/IDWise.js +7 -0
- package/src/IDWiseConstants.js +1 -0
- package/src/IDWiseDynamic.js +7 -0
- package/src/IDWiseEventListeners.js +5 -0
|
@@ -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-
|
|
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-
|
|
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>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentTypeTableViewCell.nib
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|