idwise-react-native-sdk 5.7.8 → 5.7.9-alpha.1
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.
|
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
s.source_files = "ios/**/*.{h,m,mm,cpp,swift}"
|
|
17
17
|
s.private_header_files = "ios/**/*.h"
|
|
18
18
|
|
|
19
|
-
s.dependency 'IDWise', '5.7.
|
|
19
|
+
s.dependency 'IDWise', '5.7.8'
|
|
20
20
|
s.pod_target_xcconfig = {
|
|
21
21
|
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
22
22
|
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
|
|
@@ -2,6 +2,7 @@ package com.idwisereactnativesdk
|
|
|
2
2
|
|
|
3
3
|
import com.facebook.react.bridge.ReactApplicationContext
|
|
4
4
|
import com.facebook.react.module.annotations.ReactModule
|
|
5
|
+
import android.util.Log
|
|
5
6
|
|
|
6
7
|
import android.graphics.Bitmap
|
|
7
8
|
import android.util.Base64
|
|
@@ -18,6 +19,7 @@ import com.idwise.sdk.IDWiseJourneyCallbacks
|
|
|
18
19
|
import com.idwise.sdk.IDWiseStepCallbacks
|
|
19
20
|
import com.idwise.sdk.data.models.*
|
|
20
21
|
import java.io.ByteArrayOutputStream
|
|
22
|
+
import org.json.JSONObject;
|
|
21
23
|
|
|
22
24
|
@ReactModule(name = IdwiseReactNativeSdkModule.NAME)
|
|
23
25
|
class IdwiseReactNativeSdkModule(private val reactContext: ReactApplicationContext) :
|
|
@@ -212,7 +214,10 @@ class IdwiseReactNativeSdkModule(private val reactContext: ReactApplicationConte
|
|
|
212
214
|
|
|
213
215
|
override fun onError(error: IDWiseError) {
|
|
214
216
|
val params: WritableMap = Arguments.createMap()
|
|
215
|
-
|
|
217
|
+
val errorMap = JSONObject();
|
|
218
|
+
errorMap.put("code", error.code)
|
|
219
|
+
errorMap.put("message", error.message)
|
|
220
|
+
params.putString("data", errorMap.toString())
|
|
216
221
|
sendEvent("onJourneyError", params)
|
|
217
222
|
}
|
|
218
223
|
}
|