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
13 changes: 13 additions & 0 deletions content/docs/android/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,28 @@ title: "Changelog"
description: "Release notes for the Superwall Android SDK"
---

## 2.7.21

## Enhancements

- Adds `fontScale` and `fontSize` device attributes for the system text size.
Comment thread
dcrawbuck marked this conversation as resolved.
Comment thread
dcrawbuck marked this conversation as resolved.
- Memoizes the device template used for audience-filter evaluation and paywall templating. The template is now rebuilt only when one of its mutable inputs (identity, entitlements, subscription status, interface style, platform wrapper, etc.) changes, while time-derived fields are recomputed on every read. This removes a full JSON round trip and repeated system lookups from every `register()` call.

## Fixes
- Fix a bug causing paywall destroying on backgrounding
- Ensures that paywall instances no longer overwrite each other's instance experiment ID

## 2.7.20

## Enhancements

- Adds `storeFrontCountryCode` property
- Adds `PaywallOptions.loadingColor` to options enabling you to theme the circular progress bar
- Adds `fontScale` and `fontSize` device attributes for the system text size.

## Fixes
- Fix a bug causing web redemption entitlements to be ignored in restoration tracking logic for users of purchase controller
- Fix paywall presentation being fully torn down when the app was backgrounded without the paywall being dismissed, while keeping `paywall_close`/`paywall_open` dispatched when the paywall leaves and returns to the screen

## 2.7.19

Expand Down
2 changes: 1 addition & 1 deletion content/docs/android/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,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).

<SdkLatestVersion version="2.7.20" repoUrl="https://github.com/superwall/Superwall-Android" />
<SdkLatestVersion version="2.7.21" repoUrl="https://github.com/superwall/Superwall-Android" />
6 changes: 3 additions & 3 deletions content/docs/android/quickstart/install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,16 @@ can find the [latest release here](https://github.com/superwall/Superwall-Androi
<CodeGroup>

```gradle build.gradle
implementation "com.superwall.sdk:superwall-android:2.7.20"
implementation "com.superwall.sdk:superwall-android:2.7.21"
Comment thread
dcrawbuck marked this conversation as resolved.
```

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

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

// And in your build.gradle.kts
dependencies {
Expand Down
2 changes: 1 addition & 1 deletion content/docs/android/sdk-reference/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,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).

<SdkLatestVersion version="2.7.20" repoUrl="https://github.com/superwall/Superwall-Android" />
<SdkLatestVersion version="2.7.21" repoUrl="https://github.com/superwall/Superwall-Android" />
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ syntax appears above every variable, and it be will auto-inserted for you when s
| Device Language Code | Text | en |
| Device Locale | Text | en_AE |
| Device Model | Text | iPhone14 |
| Font Scale | Number | 1.0 |
| Font Size | Number | 16 |
| Interface Style | Text | light |
| Interface Type | Text | iphone, ipad, mac. Returns "mac" for Mac Catalyst, "ipad" for iPad apps on mac. |
| Is Low Power Mode Enabled | Number | 0 |
Expand Down
2 changes: 2 additions & 0 deletions content/docs/variable-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ timezoneOffset | number | -18000, 3600
radioType | string | Cellular, Wifi, No Internet | The radio type of the device | 3.0.0
interfaceType | string | ipad, iphone, mac, carplay, tv, unspecified | The type of interface of the device, preferred over `deviceModel`. Note that iPhone screen size emulated in iPad will be iphone. Built for iPad on Mac will be ipad. | 3.2.0
interfaceStyle | string | Unspecified, Unknown, Light, Dark | The interface style of the device | 3.0.0
fontSize | number | 16, 20 | The system text size in pixels, derived from the device font scale | Android 2.7.21
fontScale | number | 1.0, 1.25 | The device font scale used for system text sizing | Android 2.7.21
isLowPowerModeEnabled | string | true, false | Whether or not low power mode is enabled | 3.0.0
bundleId | string | com.superwall.test | The bundle ID of the app | 3.0.0
appInstallDate | string | 2021-07-01T00:00:00.000Z | The date the app was installed, ISO-8601 format | 3.0.0
Expand Down
Loading