diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b6f165..6cc78bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ The changelog for `Superwall`. Also see the [releases](https://github.com/superwall/Superwall-Flutter/releases) on GitHub. +## 2.0.7 + +- Fixes issue when accessing `presentedByPlacement*` properties from a custom placement + ## 2.0.6 ## Enhancements diff --git a/android/src/main/kotlin/com/superwall/superwallkit_flutter/bridges/PaywallInfoBridge.kt b/android/src/main/kotlin/com/superwall/superwallkit_flutter/bridges/PaywallInfoBridge.kt index 824f98b..f774393 100644 --- a/android/src/main/kotlin/com/superwall/superwallkit_flutter/bridges/PaywallInfoBridge.kt +++ b/android/src/main/kotlin/com/superwall/superwallkit_flutter/bridges/PaywallInfoBridge.kt @@ -39,9 +39,9 @@ class PaywallInfoBridge( "getProducts" -> result.success(paywallInfo.products.map { it.toJson() }) "getProductIds" -> result.success(paywallInfo.productIds) "getUrl" -> result.success(paywallInfo.url.toString()) - "getPresentedByEventWithName" -> result.success(paywallInfo.presentedByEventWithName) - "getPresentedByEventWithId" -> result.success(paywallInfo.presentedByEventWithId) - "getPresentedByEventAt" -> result.success(paywallInfo.presentedByEventAt) + "getPresentedByPlacementWithName" -> result.success(paywallInfo.presentedByEventWithName) + "getPresentedByPlacementWithId" -> result.success(paywallInfo.presentedByEventWithId) + "getPresentedByPlacementAt" -> result.success(paywallInfo.presentedByEventAt) "getPresentedBy" -> result.success(paywallInfo.presentedBy) "getPresentationSourceType" -> result.success(paywallInfo.presentationSourceType) "getResponseLoadStartTime" -> result.success(paywallInfo.responseLoadStartTime) diff --git a/pubspec.yaml b/pubspec.yaml index f7e396b..d5fdba7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: superwallkit_flutter description: "Remotely configure every aspect of your paywall and double your revenue." -version: 2.0.6 +version: 2.0.7 homepage: "https://superwall.com" environment: