Releases: RevenueCat/purchases-flutter
Releases · RevenueCat/purchases-flutter
6.18.0
RevenueCatUI
Paywalls
:displayCloseButton
parameter (#948) via NachoSoto (@NachoSoto)Paywalls
: addedOffering
parameter topresentPaywall
methods (#947) via NachoSoto (@NachoSoto)
Dependency Updates
- [AUTOMATIC BUMP] Updates purchases-hybrid-common to 9.2.0 (#952) via RevenueCat Git Bot (@RCGitBot)
- [AUTOMATIC BUMP] Updates purchases-hybrid-common to 9.1.0 (#951) via RevenueCat Git Bot (@RCGitBot)
- [AUTOMATIC BUMP] Updates purchases-hybrid-common to 9.0.1 (#949) via RevenueCat Git Bot (@RCGitBot)
Other Changes
6.17.0
RevenueCatUI
Paywalls
: separatePurchasesHybridCommonUI
(#943) via NachoSoto (@NachoSoto)
Dependency Updates
6.16.1
6.16.0
6.15.0
New features
- 📱 Initial support for cross-platform RevenueCat Paywalls 🐾 🧱 (#931)
Instructions:
- For Android, you need to change your
MainActivity
to subclassFlutterFragmentActivity
instead ofFlutterActivity
. Also, the min sdk version of the new package is24
. Please make sure your app'sandroid/build.gradle
minSdkVersion has that or a higher version. - Add
purchases-ui-flutter
in yourpubspec.yaml
:
dependencies:
purchases_ui_flutter: 6.15.0
Usage:
import 'package:purchases_ui_flutter/purchases_ui_flutter.dart';
await RevenueCatUI.presentPaywallIfNeeded("pro");
Limitations:
- Currently only full screen paywalls are supported
- There is no way to detect paywall events other than using
addCustomerInfoUpdateListener
6.15.0-beta.4
New features
- 📱 Initial support for cross-platform RevenueCat Paywalls 🐾 🧱 (#852)
Instructions:
- For Android, you need to change your
MainActivity
to subclassFlutterFragmentActivity
instead ofFlutterActivity
. Also, the min sdk version of the new package is24
. Please make sure your app'sandroid/build.gradle
minSdkVersion has that or a higher version. - Add
purchases-ui-flutter
in yourpubspec.yaml
:
dependencies:
purchases_ui_flutter: 6.15.0-beta.4
Usage:
import 'package:purchases_ui_flutter/purchases_ui_flutter.dart';
await RevenueCatUI.presentPaywallIfNeeded("pro");
Limitations:
- Currently only full screen paywalls are supported
- There is no way to detect paywall events other than using
addCustomerInfoUpdateListener
Breaking changes from previous beta:
- Paywalls functionality has been extracted into a new dependency called purchases_ui_flutter. Add purchases_ui_flutter to your pubspec.yaml. Before this release, it was part of the main RevenueCat SDK
purchases_flutter
. - A new import is required to use this functionality:
import 'package:purchases_ui_flutter/purchases_ui_flutter.dart';
- Usage has changed the class from
Purchases.presentPaywall
toRevenueCatUI.presentPaywall
. presentPaywall
andpresentPaywallIfNeeded
now don't return a result. To detect purchases, please usePurchases.getCustomerInfo
from thepurchases_flutter
SDK. A return value will be added in future releases.
Other Changes
- Fix pub score for
purchases-ui-flutter
(#924) via Toni Rico (@tonidero) - Update
paywalls
to latestmain
(#923) via Toni Rico (@tonidero) - Rename
purchases_flutter_ui
topurchases_ui_flutter
(#921) via Toni Rico (@tonidero) - Separate paywalls into a different package (#919) via Toni Rico (@tonidero)
- Remove result from presentPaywall methods (#916) via Toni Rico (@tonidero)
- Update to use PHC PaywallHelpers instead of custom activity (#903) via Toni Rico (@tonidero)
6.6.0
Dependency Updates
- [AUTOMATIC BUMP] Updates purchases-hybrid-common to 8.2.1 (#912) via RevenueCat Git Bot (@RCGitBot)
- Bump fastlane from 2.217.0 to 2.218.0 (#918) via dependabot[bot] (@dependabot[bot])
- Bump danger from 9.4.1 to 9.4.2 (#896) via dependabot[bot] (@dependabot[bot])
Other Changes
6.6.0-beta.3
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
Other Changes
6.5.1
Dependency Updates
- [AUTOMATIC BUMP] Updates purchases-hybrid-common to 8.1.1 (#892) via RevenueCat Git Bot (@RCGitBot)
- Bump danger from 9.4.0 to 9.4.1 (#889) via dependabot[bot] (@dependabot[bot])
6.5.0
Dependency Updates
- [AUTOMATIC BUMP] Updates purchases-hybrid-common to 8.1.0 (#890) via RevenueCat Git Bot (@RCGitBot)
- Bump cocoapods from 1.14.2 to 1.14.3 (#876) via dependabot[bot] (@dependabot[bot])