expo-superwall 0.0.5 → 0.0.6
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/CHANGELOG.md
CHANGED
|
@@ -253,7 +253,7 @@ class SuperwallExpoModule : Module() {
|
|
|
253
253
|
|
|
254
254
|
AsyncFunction("getSubscriptionStatus") { promise: Promise ->
|
|
255
255
|
try {
|
|
256
|
-
val subscriptionStatus = Superwall.instance.subscriptionStatus
|
|
256
|
+
val subscriptionStatus = Superwall.instance.subscriptionStatus.value.toJson()
|
|
257
257
|
promise.resolve(subscriptionStatus)
|
|
258
258
|
} catch (error: Exception) {
|
|
259
259
|
promise.reject(CodedException(error))
|
package/build/package.json
CHANGED
|
@@ -202,7 +202,7 @@ public class SuperwallExpoModule: Module {
|
|
|
202
202
|
AsyncFunction("getSubscriptionStatus") { (promise: Promise) in
|
|
203
203
|
print("Getting subscription status")
|
|
204
204
|
let subscriptionStatus = Superwall.shared.subscriptionStatus
|
|
205
|
-
promise.resolve(subscriptionStatus)
|
|
205
|
+
promise.resolve(subscriptionStatus.toJson())
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
Function("setSubscriptionStatus") { (status: [String: Any]) in
|