idwise-react-native-sdk 6.6.2 → 6.7.0
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', '6.6.
|
|
19
|
+
s.dependency 'IDWise', '6.6.3'
|
|
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",
|
|
@@ -4,6 +4,7 @@ import com.facebook.react.bridge.ReactApplicationContext
|
|
|
4
4
|
import com.facebook.react.module.annotations.ReactModule
|
|
5
5
|
|
|
6
6
|
import android.graphics.Bitmap
|
|
7
|
+
import android.app.Application
|
|
7
8
|
import android.util.Base64
|
|
8
9
|
import androidx.annotation.Nullable
|
|
9
10
|
import com.facebook.react.bridge.*
|
|
@@ -91,8 +92,8 @@ class IdwiseReactNativeSdkModule(private val reactContext: ReactApplicationConte
|
|
|
91
92
|
deconstructedMap = recursivelyDeconstructReadableMap(applicantDetails)
|
|
92
93
|
}
|
|
93
94
|
|
|
94
|
-
|
|
95
|
-
IDWise.startJourney(
|
|
95
|
+
reactContext?.let { reactContext ->
|
|
96
|
+
IDWise.startJourney(application=reactContext.getApplicationContext() as Application, flowId=flowId, referenceNo=referenceNo, locale=locale, applicantDetails=deconstructedMap, journeyCallbacks=journeyCallback)
|
|
96
97
|
}
|
|
97
98
|
}
|
|
98
99
|
|
|
@@ -109,9 +110,9 @@ class IdwiseReactNativeSdkModule(private val reactContext: ReactApplicationConte
|
|
|
109
110
|
deconstructedMap = recursivelyDeconstructReadableMap(applicantDetails)
|
|
110
111
|
}
|
|
111
112
|
|
|
112
|
-
|
|
113
|
+
reactContext?.let { reactContext ->
|
|
113
114
|
IDWiseDynamic.startJourney(
|
|
114
|
-
|
|
115
|
+
application=reactContext.getApplicationContext() as Application, flowId=journeyTemplateId, referenceNo=referenceNo, locale=locale,applicantDetails=deconstructedMap, journeyCallbacks=journeyCallback, stepCallbacks=stepCallback
|
|
115
116
|
)
|
|
116
117
|
}
|
|
117
118
|
}
|
|
@@ -122,9 +123,9 @@ class IdwiseReactNativeSdkModule(private val reactContext: ReactApplicationConte
|
|
|
122
123
|
journeyId: String,
|
|
123
124
|
locale: String?
|
|
124
125
|
) {
|
|
125
|
-
|
|
126
|
+
reactContext?.let { reactContext ->
|
|
126
127
|
IDWiseDynamic.resumeJourney(
|
|
127
|
-
|
|
128
|
+
application=reactContext.getApplicationContext() as Application, flowId=journeyTemplateId, journeyId=journeyId, locale=locale,
|
|
128
129
|
journeyCallbacks=journeyCallback, stepCallbacks=stepCallback
|
|
129
130
|
)
|
|
130
131
|
}
|
|
@@ -136,9 +137,9 @@ class IdwiseReactNativeSdkModule(private val reactContext: ReactApplicationConte
|
|
|
136
137
|
journeyId: String,
|
|
137
138
|
locale: String?
|
|
138
139
|
) {
|
|
139
|
-
|
|
140
|
+
reactContext?.let { reactContext ->
|
|
140
141
|
IDWise.resumeJourney(
|
|
141
|
-
|
|
142
|
+
application=reactContext.getApplicationContext() as Application, flowId=journeyTemplateId, journeyId=journeyId, locale=locale,
|
|
142
143
|
journeyCallbacks=journeyCallback
|
|
143
144
|
)
|
|
144
145
|
}
|