Skip to content

Fix flutter analyze deprecation warnings#872

Merged
tonidero merged 1 commit into
mainfrom
fix-flutter-analyze
Nov 17, 2023
Merged

Fix flutter analyze deprecation warnings#872
tonidero merged 1 commit into
mainfrom
fix-flutter-analyze

Conversation

@tonidero

@tonidero tonidero commented Nov 17, 2023

Copy link
Copy Markdown
Contributor

Looks like describeEnum was deprecated in the latest Flutter version and substituted with name. This PR changes current usages of that to fix the linter.

From what I've been able to figure out, this name property is available since Dart 2.15, which is our minimum version so we should be good

@tonidero tonidero requested a review from a team November 17, 2023 16:53
@tonidero tonidero merged commit 050a8d6 into main Nov 17, 2023
@tonidero tonidero deleted the fix-flutter-analyze branch November 17, 2023 17:04
NachoSoto pushed a commit that referenced this pull request Nov 23, 2023
Looks like `describeEnum` was deprecated in the latest Flutter version
and substituted with `name`. This PR changes current usages of that to
fix the linter.

From what I've been able to figure out, this `name` property is
available since Dart 2.15, which is our minimum version so we should be
good
NachoSoto pushed a commit that referenced this pull request Nov 23, 2023
Looks like `describeEnum` was deprecated in the latest Flutter version
and substituted with `name`. This PR changes current usages of that to
fix the linter.

From what I've been able to figure out, this `name` property is
available since Dart 2.15, which is our minimum version so we should be
good
NachoSoto pushed a commit that referenced this pull request Nov 23, 2023
Looks like `describeEnum` was deprecated in the latest Flutter version
and substituted with `name`. This PR changes current usages of that to
fix the linter.

From what I've been able to figure out, this `name` property is
available since Dart 2.15, which is our minimum version so we should be
good
tonidero pushed a commit that referenced this pull request Nov 23, 2023
**This is an automatic release.**

### New Features
* `Trusted Entitlements`: add support for setting
`EntitlementVerificationMode` and getting verification result in
`EntitlementInfos` and `EntitlementInfo` (#753) via NachoSoto
(@NachoSoto)
### Dependency Updates
* [AUTOMATIC BUMP] Updates purchases-hybrid-common to 8.0.0 (#878) via
RevenueCat Git Bot (@RCGitBot)
* [Android
7.2.4](https://github.com/RevenueCat/purchases-android/releases/tag/7.2.4)
* [AUTOMATIC BUMP] Updates purchases-hybrid-common to 7.4.0 (#871) via
RevenueCat Git Bot (@RCGitBot)
* [Android
7.2.4](https://github.com/RevenueCat/purchases-android/releases/tag/7.2.4)
* Bump fastlane from 2.216.0 to 2.217.0 (#865) via dependabot[bot]
(@dependabot[bot])
* Bump danger from 9.3.2 to 9.4.0 (#866) via dependabot[bot]
(@dependabot[bot])
### Other Changes
* Fix flutter analyze deprecation warnings (#872) via Toni Rico
(@tonidero)
* `CI`: disable `prepare-next-version` (#869) via NachoSoto (@NachoSoto)
@tonidero tonidero mentioned this pull request Dec 22, 2023
tonidero added a commit that referenced this pull request Dec 22, 2023
### 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`.
- Update `purchases-flutter` in your `pubspec.yaml`:
```yaml
dependencies:
  purchases_flutter: 6.6.0-beta.3
```

#### Usage:
```dart
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
* Fix `presentPaywallIfNeeded` (#904) via Toni Rico (@tonidero)

### Other Changes
* Update paywalls latest main (#906) via Toni Rico (@tonidero)
* Update to use PHC PaywallHelpers instead of custom activity (#903) via
Toni Rico (@tonidero)
* Fix flutter analyze deprecation warnings (#872)
Jethro87 pushed a commit to Jethro87/purchases-flutter that referenced this pull request Jan 4, 2025
Looks like `describeEnum` was deprecated in the latest Flutter version
and substituted with `name`. This PR changes current usages of that to
fix the linter.

From what I've been able to figure out, this `name` property is
available since Dart 2.15, which is our minimum version so we should be
good
Jethro87 pushed a commit to Jethro87/purchases-flutter that referenced this pull request Jan 4, 2025
**This is an automatic release.**

### New Features
* `Trusted Entitlements`: add support for setting
`EntitlementVerificationMode` and getting verification result in
`EntitlementInfos` and `EntitlementInfo` (RevenueCat#753) via NachoSoto
(@NachoSoto)
### Dependency Updates
* [AUTOMATIC BUMP] Updates purchases-hybrid-common to 8.0.0 (RevenueCat#878) via
RevenueCat Git Bot (@RCGitBot)
* [Android
7.2.4](https://github.com/RevenueCat/purchases-android/releases/tag/7.2.4)
* [AUTOMATIC BUMP] Updates purchases-hybrid-common to 7.4.0 (RevenueCat#871) via
RevenueCat Git Bot (@RCGitBot)
* [Android
7.2.4](https://github.com/RevenueCat/purchases-android/releases/tag/7.2.4)
* Bump fastlane from 2.216.0 to 2.217.0 (RevenueCat#865) via dependabot[bot]
(@dependabot[bot])
* Bump danger from 9.3.2 to 9.4.0 (RevenueCat#866) via dependabot[bot]
(@dependabot[bot])
### Other Changes
* Fix flutter analyze deprecation warnings (RevenueCat#872) via Toni Rico
(@tonidero)
* `CI`: disable `prepare-next-version` (RevenueCat#869) via NachoSoto (@NachoSoto)
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.

3 participants