Releases: superwall/Superwall-Unity
Releases · superwall/Superwall-Unity
0.2.4
Fixes
- Fix configure result emitting an unknown error on success
- iOS
_SuperwallBridge_ShowAlertABI mismatch (3 pointers vs C#(string)) — now takes a singlealertJsonstring matching the C# extern. iOS additionally fires theonCloseCallbackIdimmediately so the pending C# callback is cleaned up. - Android
showAlertwas readingactionCallbackId/closeCallbackId, but C# emitsonActionCallbackId/onCloseCallbackId— alert callbacks never fired. Fixed. - iOS bridge: removed access to internal
Superwall.shared.options—SetLocalResourcesnow stashes the resource map and applies it viaSuperwallOptions.localResourcesduringConfigure(must be called beforeConfigureon iOS; logs a warning otherwise). - Post-build
pod installnow locatespodacross common install paths (/usr/local/bin,/opt/homebrew/bin, rbenv/asdf shims,which podunder a login shell) and runs under a login shell so user PATH from~/.zshrc/~/.bash_profileis honored. Clear manual-install instructions on failure. - Post-build
pod installnow setsLANG=en_US.UTF-8andLC_ALL=en_US.UTF-8in the subprocess so CocoaPods no longer crashes withEncoding::CompatibilityErrorwhen Unity is launched from Finder (inherits launchd's emptyLANG).
Tests
- Added
Tests/Runtime/BridgeContractTests.cscovering the async-response contract, Configure success/failure paths, and the delegate/handler payload shapes for the regressions fixed in this release.
CI
- Added
.github/workflows/native.yml— builds the iOS Swift bridge via SPM on macOS and the Android.androidlibvia Gradle on Ubuntu, on every push and PR. No Unity license required. - Added parked
.github/workflows/unity.ymlfor full game-ci Unity build + test runs, documented with the licensing secrets and wrapping-project steps needed to enable it. - CI harness scaffolding lives under
ci~/(tilde-suffixed so Unity ignores it during package import — never copied into player builds).
Compatibility
- Minimum Unity version lowered from
6000.4to6000.3.
0.2.1
[0.2.1]
Enhancements
New APIs
SetLocalResources(Dictionary<string, string>)— map asset names to local file paths for paywall WebViews (Android only)
Delegate Fixes
- Android: added
willRedeemLink,didRedeemLink,userAttributesDidChangedelegate callbacks - iOS: added
handleSuperwallDeepLink,userAttributesDidChangedelegate callbacks - iOS: added
ShowAlertno-op stub to prevent missing symbol crash