Skip to content

Fix pub score for purchases-ui-flutter#924

Merged
tonidero merged 3 commits into
paywallsfrom
fix-pub-score
Jan 5, 2024
Merged

Fix pub score for purchases-ui-flutter#924
tonidero merged 3 commits into
paywallsfrom
fix-pub-score

Conversation

@tonidero

@tonidero tonidero commented Jan 5, 2024

Copy link
Copy Markdown
Contributor

This fixes some issues found in the pub score for the new package purchases-ui-flutter

description: "Flutter plugin that integrates RevenueCat Paywalls. This plugin supports iOS and Android."
version: 6.6.0-beta.3
homepage: https://www.revenuecat.com/
repository: https://github.com/RevenueCat/purchases-flutter

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.

Had to remove this since we don't have a top-level repo with a purchases-ui-flutter pubspec.yaml`. Running the score locally seems that it reaches the max score without this.

@tonidero tonidero marked this pull request as ready for review January 5, 2024 10:35
@tonidero tonidero merged commit e299209 into paywalls Jan 5, 2024
@tonidero tonidero deleted the fix-pub-score branch January 5, 2024 10:43
@tonidero tonidero mentioned this pull request Jan 5, 2024
tonidero added a commit that referenced this pull request Jan 5, 2024
### New features
* 📱 Initial support for cross-platform RevenueCat Paywalls 🐾 🧱 (#852)

#### 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-beta.4
```

#### 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`

#### 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` to
`RevenueCatUI.presentPaywall`.
- `presentPaywall` and `presentPaywallIfNeeded` now don't return a
result. To detect purchases, please use `Purchases.getCustomerInfo` from
the `purchases_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 latest `main` (#923) via Toni Rico (@tonidero)
* Rename `purchases_flutter_ui` to `purchases_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)
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