From 9f1df63f5c359b4417001c73bc9579ef4329b816 Mon Sep 17 00:00:00 2001 From: Claude Code Date: Tue, 14 Apr 2026 16:12:36 +0000 Subject: [PATCH 1/2] feat(android): update for 2.7.11 --- content/docs/android/changelog.mdx | 10 ++++++++++ content/docs/android/index.mdx | 2 +- content/docs/android/quickstart/install.mdx | 6 +++--- content/docs/android/sdk-reference/index.mdx | 2 +- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/content/docs/android/changelog.mdx b/content/docs/android/changelog.mdx index 013b5b7..ad78411 100644 --- a/content/docs/android/changelog.mdx +++ b/content/docs/android/changelog.mdx @@ -3,6 +3,16 @@ title: "Changelog" description: "Release notes for the Superwall Android SDK" --- +## 2.7.11 + +## Enhancements +- Improved startup performance and reduced blockage of caller threads +- Add `PaywallOptions.preloadDeviceOverrides` - this allows you to override `shouldPreload` for different device tiers, i.e. disable it for low-end devices. For more details, see KDoc. + +## Fixes +- Reduce CookieManager ANR potential +- Fix concurrency issues with double onFinished calls being invoked + ## 2.7.10 ## Potentially impactful changes diff --git a/content/docs/android/index.mdx b/content/docs/android/index.mdx index a09392e..87d6162 100644 --- a/content/docs/android/index.mdx +++ b/content/docs/android/index.mdx @@ -42,4 +42,4 @@ If you have feedback on any of our docs, please leave a rating and message at th If you have any issues with the SDK, please [open an issue on GitHub](https://github.com/superwall/superwall-android/issues). - + diff --git a/content/docs/android/quickstart/install.mdx b/content/docs/android/quickstart/install.mdx index 742071e..1200fb0 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.7.10" +implementation "com.superwall.sdk:superwall-android:2.7.11" ``` ```kotlin build.gradle.kts -implementation("com.superwall.sdk:superwall-android:2.7.10") +implementation("com.superwall.sdk:superwall-android:2.7.11") ``` ```toml libs.version.toml [libraries] -superwall-android = { group = "com.superwall.sdk", name = "superwall-android", version = "2.7.10" } +superwall-android = { group = "com.superwall.sdk", name = "superwall-android", version = "2.7.11" } // And in your build.gradle.kts dependencies { diff --git a/content/docs/android/sdk-reference/index.mdx b/content/docs/android/sdk-reference/index.mdx index fb8964a..582df16 100644 --- a/content/docs/android/sdk-reference/index.mdx +++ b/content/docs/android/sdk-reference/index.mdx @@ -15,4 +15,4 @@ If you have feedback on any of our docs, please leave a rating and message at th If you have any issues with the SDK, please [open an issue on GitHub](https://github.com/superwall/superwall-android/issues). - + From 91e7f0639df0c4a991ee8d1dea0f5af789a1200e Mon Sep 17 00:00:00 2001 From: Duncan Crawbuck Date: Tue, 14 Apr 2026 11:45:29 -0700 Subject: [PATCH 2/2] docs(android): document preloadDeviceOverrides --- .../docs/android/sdk-reference/PaywallOptions.mdx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/content/docs/android/sdk-reference/PaywallOptions.mdx b/content/docs/android/sdk-reference/PaywallOptions.mdx index fa8b7ea..514762a 100644 --- a/content/docs/android/sdk-reference/PaywallOptions.mdx +++ b/content/docs/android/sdk-reference/PaywallOptions.mdx @@ -12,6 +12,7 @@ Customize how paywalls look and behave, including preload behavior, alerts, dism ## Signature ```kotlin +import com.superwall.sdk.analytics.Tier import kotlin.time.Duration class PaywallOptions { @@ -26,6 +27,7 @@ class PaywallOptions { var shouldShowPurchaseFailureAlert: Boolean = true var shouldPreload: Boolean = true + var preloadDeviceOverrides: Map = emptyMap() var useCachedTemplates: Boolean = false var automaticallyDismiss: Boolean = true @@ -77,6 +79,11 @@ class PaywallOptions { description: "Preloads and caches trigger paywalls and products during SDK initialization. Set to `false` for just-in-time loading.", default: "true", }, + preloadDeviceOverrides: { + type: "Map", + description: "Overrides `shouldPreload` for specific device tiers. Any tier not listed here falls back to `shouldPreload`.", + default: "emptyMap()", + }, useCachedTemplates: { type: "Boolean", description: "Loads paywall template websites from disk when available.", @@ -121,6 +128,10 @@ val paywallOptions = PaywallOptions().apply { isHapticFeedbackEnabled = true shouldShowPurchaseFailureAlert = false shouldPreload = true + preloadDeviceOverrides = mapOf( + Tier.ULTRA_LOW to false, + Tier.LOW to false, + ) useCachedTemplates = false automaticallyDismiss = true transactionBackgroundView = PaywallOptions.TransactionBackgroundView.SPINNER @@ -148,5 +159,7 @@ Superwall.configure( ) ``` +`preloadDeviceOverrides` is useful when you want to keep preloading enabled by default but disable it on lower-end devices. Tiers you do not specify continue to use the `shouldPreload` value. + ## Related - [`SuperwallOptions`](/android/sdk-reference/SuperwallOptions)