Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/docs/android/guides/migrations/migrating-to-v2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The `PaywallComposable` has been removed from the main Superwall SDK and moved i
To use it, besides including the main superwall library, you'll now need to also include a `superwall-compose` artifact

```gradle
implementation "com.superwall.sdk:superwall-compose:2.0.0"
implementation "com.superwall.sdk:superwall-compose:2.5.6"
```

## 2\. Replacing getPaywall with PaywallBuilder
Expand Down
6 changes: 3 additions & 3 deletions content/docs/android/quickstart/install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ can find the [latest release here](https://github.com/superwall/Superwall-Androi
<CodeGroup>

```gradle build.gradle
implementation "com.superwall.sdk:superwall-android:2.2.2"
implementation "com.superwall.sdk:superwall-android:2.5.6"
```

```kotlin build.gradle.kts
implementation("com.superwall.sdk:superwall-android:2.2.2")
implementation("com.superwall.sdk:superwall-android:2.5.6")
```

```toml libs.version.toml
[libraries]
superwall-android = { group = "com.superwall.sdk", name = "superwall-android", version = "2.2.2" }
superwall-android = { group = "com.superwall.sdk", name = "superwall-android", version = "2.5.6" }

// And in your build.gradle.kts
dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,10 @@ You can have a paywall present under two different conditions when a [placement]

1. **Check User Subscription:** Present the paywall only if the user's subscription is not active.
2. **Always:** Present the paywall regardless of the user's subscription status.

### Reroute back button

If enabled, allows you to run custom logic on back button press and consuming the event.
To use it, once the option has been enabled, use the `PaywallOptions.onBackPressed` and return true to consume the back press event or false to let the SDK handle it.

<Note> Back button rerouting is currently only supported on Android SDK 2.5.6 or higher </Note>