New Features
- 📱 Initial support for cross-platform RevenueCat Paywalls 🐾 🧱 (#852)
Instructions:
- For Android, you need to change your
MainActivity
to subclassFlutterFragmentActivity
instead ofFlutterActivity
. - Update
purchases-flutter
in yourpubspec.yaml
:
dependencies:
purchases_flutter: 6.6.0-beta.3
Usage:
await Purchases.presentPaywallIfNeeded("pro");
Limitations:
- Currently only full screen paywalls are supported
- There is no way to detect paywall events other than using
addCustomerInfoUpdateListener
- Android's
minSdkVersion
is temporarily increased from19
to24
to support paywalls. This will be reverted in a future release as we splitpurchases_flutter
andpurchases_flutter_ui
Breaking changes from previous beta
PurchasesFlutterActivity
has been removed. UseFlutterFragmentActivity
provided by Flutter instead
Fixes from previous beta
- Fix
presentPaywallIfNeeded
(#904) via Toni Rico (@tonidero)
Other Changes
- Update paywalls latest main (#906) via Toni Rico (@tonidero)
- Update to use PHC PaywallHelpers instead of custom activity (#903) via Toni Rico (@tonidero)
- Fix flutter analyze deprecation warnings (#872)
To view new release, visit https://github.com/RevenueCat/purchases-flutter/releases/tag/6.6.0-beta.3