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.
@@ -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.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.8'
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "otpless-headless-rn",
3
- "version": "2.0.8",
3
+ "version": "2.1.0",
4
4
  "description": "react native plugin for otpless headless android and ios",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",