Skip to content

Bump Android SDK to 2.10.2 - #27

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
native-sdk/android-2.10.2
Open

github-actions[bot] wants to merge 1 commit into
mainfrom
native-sdk/android-2.10.2

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Bumps the Android SDK from 2.10.0 to 2.10.2. The package version is unchanged; the note is under [Unreleased].

Opened automatically by native-sdk-bump.yml after superwall/Superwall-Android 2.10.2 was released. An agent then checks the release notes below for public API changes and pushes any integration work onto this PR.

Android release notes (2.10.0 → 2.10.2)

2.10.2

Fixes

  • Fixes a paywall the app showed right after the same paywall closed being taken off the screen when the closed one finished tearing down.
  • Fixes a crash with DeadObjectException at startup when Google Play's install referrer service died just as the SDK connected to it. The SDK read the referrer in the connection callback, where nothing caught the failure, and didn't use the result. The referrer is now only read where it is needed, for web checkout redemption and install attribution, with error handling.
  • Fixes a paywall that failed to load being reloaded without limit. The limit of three reloads was reset each time a page finished loading, which a failed page also does, so on some devices a paywall that couldn't be reached was reloaded thousands of times in the background, and a paywall on screen could reload in a loop with close and Back not responding. A paywall is now reloaded at most three times per load, after waiting 0.5, 1 and 2 seconds.
  • A failed request for a font, image, script or other asset that is not part of the paywall runtime, or that fails once the paywall is ready, no longer reloads the paywall. Since 2.8.2 any failed request whose URL contained runtime was treated as the whole page failing. Now the page counts as failed only when its own request fails, or when one of the paywall runtime's scripts (a .js or .mjs file under superwalleditor.com/runtime) fails before the paywall has reported that it is ready.
  • Fixes a subscription that expired or was refunded or revoked while the app was in the background staying active until the app was restarted. When the SDK manages purchases (no PurchaseController), it now rechecks Google Play purchases each time the app returns to the foreground. Web entitlements are also refreshed on return to the foreground when the last check is older than the configured interval.

2.10.1

Fixes

  • Fixes a paywall saved again under the same identifier as the one on screen, after that one was removed or replaced, being treated as the paywall on screen. It could then survive a cache reset that should have cleared it.
  • Fixes test mode leaving out entitlements bought during the session when the tester had also chosen an active entitlement in the test mode modal.
  • Keeps paywall content clear of side navigation bars in landscape by applying horizontal system-bar insets to drawer, modal and fullscreen presentations. Insets update when the device rotates back to portrait.
  • Fixes a :sw-none product being bought with a free trial when its base plan had a trial offer. The paywall showed the full price, but the SDK's purchase flow picked the longest trial, as it does for :sw-auto. This affected apps without a PurchaseController since 2.7.0. One-time products with :sw-none were also bought with a discount offer when their purchase option had one. If you use a PurchaseController, a null offerId means the base plan with no offer; don't pick a trial or other offer yourself.

@github-actions

Copy link
Copy Markdown
Contributor Author

The integration agent failed (run). This PR only contains the version bump — check the release notes above for public API changes by hand before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants