From ba507c51b3e685207f02548eea1045ccae064c6a Mon Sep 17 00:00:00 2001 From: Ian Rumac Date: Mon, 6 Oct 2025 14:47:58 +0200 Subject: [PATCH] Update Android version, add back button reroute to docs --- content/docs/android/guides/migrations/migrating-to-v2.mdx | 2 +- content/docs/android/quickstart/install.mdx | 6 +++--- .../paywall-editor-settings.mdx | 7 +++++++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/content/docs/android/guides/migrations/migrating-to-v2.mdx b/content/docs/android/guides/migrations/migrating-to-v2.mdx index 2b997fd3..7878a7cc 100644 --- a/content/docs/android/guides/migrations/migrating-to-v2.mdx +++ b/content/docs/android/guides/migrations/migrating-to-v2.mdx @@ -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 diff --git a/content/docs/android/quickstart/install.mdx b/content/docs/android/quickstart/install.mdx index 49fc90f1..904d7c71 100644 --- a/content/docs/android/quickstart/install.mdx +++ b/content/docs/android/quickstart/install.mdx @@ -20,16 +20,16 @@ can find the [latest release here](https://github.com/superwall/Superwall-Androi ```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 { diff --git a/content/docs/dashboard/dashboard-creating-paywalls/paywall-editor-settings.mdx b/content/docs/dashboard/dashboard-creating-paywalls/paywall-editor-settings.mdx index 4f1d120c..3b42f77a 100644 --- a/content/docs/dashboard/dashboard-creating-paywalls/paywall-editor-settings.mdx +++ b/content/docs/dashboard/dashboard-creating-paywalls/paywall-editor-settings.mdx @@ -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. + + Back button rerouting is currently only supported on Android SDK 2.5.6 or higher \ No newline at end of file