otpless-headless-rn 2.0.8 → 2.1.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.
package/android/build.gradle
CHANGED
|
@@ -74,7 +74,7 @@ dependencies {
|
|
|
74
74
|
//noinspection GradleDynamicVersion
|
|
75
75
|
implementation "com.facebook.react:react-native:+"
|
|
76
76
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
77
|
-
implementation ("io.github.otpless-tech:otpless-headless-sdk:0.6.
|
|
77
|
+
implementation ("io.github.otpless-tech:otpless-headless-sdk:0.6.7")
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
if (isNewArchitectureEnabled()) {
|
|
@@ -209,7 +209,7 @@ class OtplessHeadlessRNModule(private val reactContext: ReactApplicationContext)
|
|
|
209
209
|
@ReactMethod
|
|
210
210
|
fun commitResponse(data: ReadableMap?) {
|
|
211
211
|
val dataMap = data?.toHashMap() ?: return
|
|
212
|
-
val jsonResponse = JSONObject(dataMap)
|
|
212
|
+
val jsonResponse = JSONObject(dataMap as Map<*, *>)
|
|
213
213
|
val otplessResponse = OtplessResponse(
|
|
214
214
|
responseType = getResponseType(
|
|
215
215
|
responseTypeString = jsonResponse.optString(
|
|
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
18
|
|
|
19
19
|
s.dependency "React-Core"
|
|
20
|
-
s.dependency 'OtplessBM/Core', '2.0.
|
|
20
|
+
s.dependency 'OtplessBM/Core', '2.0.9'
|
|
21
21
|
s.swift_versions = ['5.5']
|
|
22
22
|
|
|
23
23
|
# Don't install the dependencies when we run `pod install` in the old architecture.
|