Skip to content

Release/6.15.0#932

Merged
NachoSoto merged 2 commits into
mainfrom
release/6.15.0
Jan 12, 2024
Merged

Release/6.15.0#932
NachoSoto merged 2 commits into
mainfrom
release/6.15.0

Conversation

@NachoSoto

Copy link
Copy Markdown
Contributor

New features

Instructions:

  • For Android, you need to change your MainActivity to subclass FlutterFragmentActivity instead of FlutterActivity. Also, the min sdk version of the new package is 24. Please make sure your app's android/build.gradle minSdkVersion has that or a higher version.
  • Add purchases-ui-flutter in your pubspec.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

@NachoSoto NachoSoto merged commit 6e250c4 into main Jan 12, 2024
@NachoSoto NachoSoto deleted the release/6.15.0 branch January 12, 2024 20:53
Jethro87 pushed a commit to Jethro87/purchases-flutter that referenced this pull request Jan 4, 2025
### New features
* 📱 Initial support for cross-platform RevenueCat Paywalls 🐾 🧱 (RevenueCat#931)

#### Instructions:
- For Android, you need to change your `MainActivity` to subclass
`FlutterFragmentActivity` instead of `FlutterActivity`. Also, the min
sdk version of the new package is `24`. Please make sure your app's
`android/build.gradle` minSdkVersion has that or a higher version.
- Add `purchases-ui-flutter` in your `pubspec.yaml`:
```yaml
dependencies:
  purchases_ui_flutter: 6.15.0
```

#### Usage:
```dart
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`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants