Skip to content

Commit

Permalink
Merge pull request #154 from superwall/develop
Browse files Browse the repository at this point in the history
1.2.3
  • Loading branch information
ianrumac authored Aug 16, 2024
2 parents c2b8b42 + 61f0813 commit 5159434
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

The changelog for `Superwall`. Also see the [releases](https://github.com/superwall/Superwall-Android/releases) on GitHub.

## 1.2.3

### Enhancements
- Expose `placementName`, `paywallInfo` and `params` on a `custom_placement` event

## 1.2.2

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion superwall/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ plugins {
id("signing")
}

version = "1.2.2"
version = "1.2.3"

android {
compileSdk = 34
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ sealed class InternalSuperwallEvent(
val placementName: String,
val paywallInfo: PaywallInfo,
val params: Map<String, Any>,
) : InternalSuperwallEvent(SuperwallEvent.CustomPlacement) {
) : InternalSuperwallEvent(SuperwallEvent.CustomPlacement(placementName, paywallInfo, params)) {
override val audienceFilterParams: Map<String, Any>
get() = paywallInfo.audienceFilterParams() + params

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,11 @@ sealed class SuperwallEvent {
get() = "reset"
}

object CustomPlacement : SuperwallEvent() {
data class CustomPlacement(
val placementName: String,
val paywallInfo: PaywallInfo,
val params: Map<String, Any>,
) : SuperwallEvent() {
override val rawName: String = SuperwallEvents.CustomPlacement.rawName
}

Expand Down

0 comments on commit 5159434

Please sign in to comment.