idwise-nfc-react-native-sdk 5.8.5 → 5.9.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.
|
@@ -10,13 +10,13 @@ Pod::Spec.new do |s|
|
|
|
10
10
|
s.license = package["license"]
|
|
11
11
|
s.authors = package["author"]
|
|
12
12
|
|
|
13
|
-
s.platforms = { :ios =>
|
|
13
|
+
s.platforms = { :ios => '15.6' }
|
|
14
14
|
s.source = { :git => "https://github.com/idwise/idwise_react_native_sdk.git", :tag => "#{s.version}" }
|
|
15
15
|
|
|
16
16
|
s.source_files = "ios/**/*.{h,m,mm,cpp,swift}"
|
|
17
17
|
s.private_header_files = "ios/**/*.h"
|
|
18
18
|
|
|
19
|
-
s.dependency 'IDWiseNFC', '5.
|
|
19
|
+
s.dependency 'IDWiseNFC', '5.9.0'
|
|
20
20
|
|
|
21
21
|
s.pod_target_xcconfig = {
|
|
22
22
|
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
@@ -12,6 +12,7 @@ import com.fasterxml.jackson.databind.ObjectMapper
|
|
|
12
12
|
import com.fasterxml.jackson.databind.MapperFeature
|
|
13
13
|
import com.fasterxml.jackson.annotation.PropertyAccessor
|
|
14
14
|
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility
|
|
15
|
+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
|
15
16
|
import com.idwise.sdk.IDWise
|
|
16
17
|
import com.idwise.sdk.IDWiseDynamic
|
|
17
18
|
import com.idwise.sdk.IDWiseJourneyCallbacks
|
|
@@ -48,8 +49,8 @@ class IdwiseReactNativeSdkModule(private val reactContext: ReactApplicationConte
|
|
|
48
49
|
@ReactMethod
|
|
49
50
|
override fun initialize(clientKey: String, theme: String) {
|
|
50
51
|
|
|
51
|
-
objectMapper.configure(MapperFeature.AUTO_DETECT_IS_GETTERS, false);
|
|
52
|
-
objectMapper.setVisibility(PropertyAccessor.FIELD, Visibility.ANY);
|
|
52
|
+
objectMapper.configure(MapperFeature.AUTO_DETECT_IS_GETTERS, false);
|
|
53
|
+
objectMapper.setVisibility(PropertyAccessor.FIELD, Visibility.ANY);
|
|
53
54
|
objectMapper.setVisibility(PropertyAccessor.GETTER, Visibility.NONE);
|
|
54
55
|
objectMapper.setVisibility(PropertyAccessor.SETTER, Visibility.NONE);
|
|
55
56
|
|
|
@@ -61,7 +62,12 @@ class IdwiseReactNativeSdkModule(private val reactContext: ReactApplicationConte
|
|
|
61
62
|
|
|
62
63
|
IDWise.initialize(clientKey, idwiseTheme) { error ->
|
|
63
64
|
val params: WritableMap = Arguments.createMap()
|
|
64
|
-
|
|
65
|
+
val errorMap = JSONObject()
|
|
66
|
+
error?.let{
|
|
67
|
+
errorMap.put("code", error?.code)
|
|
68
|
+
errorMap.put("message", error?.message)
|
|
69
|
+
}
|
|
70
|
+
params.putString("data", errorMap.toString())
|
|
65
71
|
sendEvent("onInitializeError", params)
|
|
66
72
|
}
|
|
67
73
|
}
|
|
@@ -286,7 +292,8 @@ class IdwiseReactNativeSdkModule(private val reactContext: ReactApplicationConte
|
|
|
286
292
|
|
|
287
293
|
|
|
288
294
|
internal data class JourneySummaryExposed(
|
|
289
|
-
val summary:JourneySummary?,
|
|
295
|
+
val summary:JourneySummary?,
|
|
296
|
+
@JsonIgnoreProperties(value = ["cause", "stackTrace", "suppressed"])
|
|
290
297
|
val error:IDWiseError?
|
|
291
298
|
)
|
|
292
299
|
|