Skip to content

New purchases_ui_flutter#931

Merged
NachoSoto merged 3 commits into
mainfrom
paywalls-2
Jan 12, 2024
Merged

New purchases_ui_flutter#931
NachoSoto merged 3 commits into
mainfrom
paywalls-2

Conversation

@NachoSoto

Copy link
Copy Markdown
Contributor

Squashed and rebased #852.

@NachoSoto NachoSoto requested a review from a team January 12, 2024 18:11
@NachoSoto NachoSoto force-pushed the paywalls-2 branch 2 times, most recently from 8a448df to 2779dc2 Compare January 12, 2024 18:12
@NachoSoto NachoSoto force-pushed the paywalls-2 branch 2 times, most recently from bedb739 to 5bd0c4b Compare January 12, 2024 18:15
Comment thread README.md

### Requirements
*purchases_flutter* requires XCode 13.3.1+ and minimum targets iOS 11.0+.
*purchases_flutter* requires Xcode 14.0+ and minimum targets iOS 11.0+.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated this (also XCode 🙈)

@NachoSoto NachoSoto added the pr:feat A new feature label Jan 12, 2024
@NachoSoto NachoSoto merged commit 335d9f5 into main Jan 12, 2024
@NachoSoto NachoSoto deleted the paywalls-2 branch January 12, 2024 18:57
This was referenced Jan 12, 2024
NachoSoto added a commit that referenced this pull request Jan 12, 2024
### New features
* 📱 Initial support for cross-platform RevenueCat Paywalls 🐾 🧱 (#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`
Jethro87 pushed a commit to Jethro87/purchases-flutter that referenced this pull request Jan 4, 2025
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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants