# Changelog

Changelog for the Superwall Unity SDK beta.

Changelog [#changelog]

All notable changes to this package will be documented in this file.

\[0.2.3] [#023]

Breaking Changes [#breaking-changes]

* `Configure` completion signature changed from `Action<bool>` to `Action<ConfigurationResult>` to match the native SDKs' `Result<Unit>` semantics. The result exposes `IsSuccess` and a typed `FailedResult.Error` on failure. Android now propagates SDK init errors through this; iOS still always signals success since SuperwallKit's completion has no failure variant.

Cleanup [#cleanup]

* Renamed asmdef files to `Superwall.*`

\[0.2.1] [#021]

Enhancements [#enhancements]

New APIs [#new-apis]

* `SetLocalResources(Dictionary<string, string>)` - map asset names to local file paths for paywall WebViews (Android only)

Delegate Fixes [#delegate-fixes]

* Android: added `willRedeemLink`, `didRedeemLink`, `userAttributesDidChange` delegate callbacks
* iOS: added `handleSuperwallDeepLink`, `userAttributesDidChange` delegate callbacks
* iOS: added `ShowAlert` no-op stub to prevent missing symbol crash

\[0.2.0] [#020]

Android Support [#android-support]

* Full Android support via bundled `.androidlib` Gradle module - no manual `mainTemplate.gradle` setup needed
* Kotlin bridge compiled with Kotlin 2.0.21 to match Superwall Android SDK 2.x
* Custom `ActivityProvider` for Unity ensures paywall presentation works correctly
* AndroidManifest with required activity declarations merged automatically

New APIs [#new-apis-1]

* `Purchase(productId, callback)` - programmatic purchase without a paywall
* `GetProducts(productIds, callback)` - fetch product details by ID
* `GetAssignments(callback)` - get experiment assignments without confirming
* `ShowAlert(title, message, ...)` - show alerts on the current paywall
* `RefreshConfiguration()` - force SDK config refresh

Options [#options]

* Full `SuperwallOptions` parsing on both platforms (was incomplete)
* Added `PaywallOptions.UseCachedTemplates` and `PaywallOptions.TimeoutAfter`
* `TestModeBehavior`, `NetworkEnvironment`, `Paywalls.*`, `Logging.Scopes` now properly passed to native SDKs

Delegate & Callbacks [#delegate--callbacks]

* All `ISuperwallDelegate` callbacks now receive deserialized objects instead of null
* `SubscriptionStatus` getter properly deserializes native state (was always returning Unknown)
* All async getters (`Entitlements`, `CustomerInfo`, `PaywallInfo`, `PresentationResult`, `ConfirmedAssignment`, `RestorationResult`) now deserialize correctly
* Fixed async callback mechanism - was dropping response data, causing `Configure` completion to always return false

iOS [#ios]

* Purchase controller flow implemented with async continuations
* Integration attributes mapping implemented
* Full options parity with Android

Cleanup [#cleanup-1]

* Removed legacy `com.ian_unity558.com.superwall.sdk` package
* Removed stale `EnsureAndroidGradleDependency` editor script (replaced by `.androidlib`)

\[0.1.1] [#011]

* Android package support
* Handler callback arguments
* More properties implemented
* Improved option support

\[0.1.0] [#010]

This is the first release of &#x2A;<com.superwall.sdk>*. [#this-is-the-first-release-of-comsuperwallsdk]

* iOS support, registering and callbacks