Skip to content

Release/6.6.0-beta.3#907

Merged
tonidero merged 2 commits into
paywallsfrom
release/6.6.0-beta.3
Dec 22, 2023
Merged

Release/6.6.0-beta.3#907
tonidero merged 2 commits into
paywallsfrom
release/6.6.0-beta.3

Conversation

@tonidero

@tonidero tonidero commented Dec 22, 2023

Copy link
Copy Markdown
Contributor

New Features

Instructions:

  • For Android, you need to change your MainActivity to subclass FlutterFragmentActivity instead of FlutterActivity.
  • Update purchases-flutter in your pubspec.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 from 19 to 24 to support paywalls. This will be reverted in a future release as we split purchases_flutter and purchases_flutter_ui

Breaking changes from previous beta

  • PurchasesFlutterActivity has been removed. Use FlutterFragmentActivity provided by Flutter instead

Fixes from previous beta

Other Changes

@tonidero tonidero requested a review from a team December 22, 2023 16:18
Comment thread CHANGELOG-LATEST.md

### Breaking changes from previous beta

- `PurchasesFlutterActivity` has been removed. Use `FlutterFragmentActivity` provided by Flutter instead

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.

This is a breaking change from the previous beta... But I thought it would be better to remove it as soon as possible to avoid later confusions.

Comment thread CHANGELOG-LATEST.md
- `PurchasesFlutterActivity` has been removed. Use `FlutterFragmentActivity` provided by Flutter instead

### Fixes from previous beta
* Fix `presentPaywallIfNeeded` (#904) via Toni Rico (@tonidero)

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.

This will deal with #902

Comment thread CHANGELOG-LATEST.md Outdated
dependencies:
purchases_flutter: 6.6.0-beta.3
```
- For Android, you need to change your `MainActivity` to subclass `FlutterFragmentActivity` instead of `FlutterActivity`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am worried folks stop reading after the first step of adding the yaml, should we put this first thing?

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.

Hmm yeah I think that makes sense!

@tonidero tonidero merged commit 9e9306a into paywalls Dec 22, 2023
@tonidero tonidero deleted the release/6.6.0-beta.3 branch December 22, 2023 16:40
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