yanncabral / open_settings_plus

The most complete flutter plugin packages for open various settings screen in Android and newer iOS.
MIT License
18 stars 13 forks source link

(chore): Migrate to declarative plugins block for Gradle application #11

Open yanncabral opened 7 months ago

yanncabral commented 7 months ago

This issue reports a warning encountered when trying to run a Flutter application that uses plugins. The warning message indicates the deprecated usage of the apply script method for applying Gradle plugins.

Expected Behavior:

Gradle plugins should be applied using the declarative plugins block according to Flutter's best practices.

Actual Behavior:

The following warning message is displayed during application execution:

You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply

You are applying Flutter's main Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply

Steps to Reproduce:

Open a Flutter project that uses plugins. Try to run the application (e.g., flutter run).

References:

https://docs.flutter.dev/release/breaking-changes/flutter-gradle-plugin-apply