You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current documentation for the 'flutter_config' package on pub.dev does not explain how to add the required Gradle files using the new DSL (Domain-Specific Language) syntax. This is crucial because all new Flutter projects now use DSL syntax by default.
Context
To build a Flutter app for Android, Flutter's Gradle plugins must be applied. Historically, this was done using Gradle's legacy, imperative apply script method. However, starting from Flutter 3.16, support was added for applying these plugins with Gradle's declarative plugins {} block (also known as the Plugin DSL), which is now the recommended approach.
Since Flutter 3.16, projects generated with flutter create use the Plugin DSL to apply Gradle plugins. Projects created with versions of Flutter prior to 3.16 need to be migrated manually.
Applying Gradle plugins using the plugins {} block executes the same code as before and should produce equivalent app binaries.
Request
Please provide updated documentation on pub.dev that includes instructions on how to configure the required Gradle files using the new Plugin DSL syntax. This will help ensure that developers using the 'flutter_config' package can easily set up their projects with the latest standards.
For more information about the advantages of the new Plugin DSL syntax over the legacy apply script syntax, you can refer to the DSL Migration Documentation.
Thank you for your attention to this matter.
The text was updated successfully, but these errors were encountered:
Not sure if the is best way, but I added this line after plugins, and it worked to me
plugins {
id "com.android.application"
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
}
+ apply from: project(':flutter_config').projectDir.getPath() + "/dotenv.gradle"
Description
The current documentation for the 'flutter_config' package on pub.dev does not explain how to add the required Gradle files using the new DSL (Domain-Specific Language) syntax. This is crucial because all new Flutter projects now use DSL syntax by default.
Context
To build a Flutter app for Android, Flutter's Gradle plugins must be applied. Historically, this was done using Gradle's legacy, imperative
apply
script method. However, starting from Flutter 3.16, support was added for applying these plugins with Gradle's declarativeplugins {}
block (also known as the Plugin DSL), which is now the recommended approach.Since Flutter 3.16, projects generated with
flutter create
use the Plugin DSL to apply Gradle plugins. Projects created with versions of Flutter prior to 3.16 need to be migrated manually.Applying Gradle plugins using the
plugins {}
block executes the same code as before and should produce equivalent app binaries.Request
Please provide updated documentation on pub.dev that includes instructions on how to configure the required Gradle files using the new Plugin DSL syntax. This will help ensure that developers using the 'flutter_config' package can easily set up their projects with the latest standards.
For more information about the advantages of the new Plugin DSL syntax over the legacy apply script syntax, you can refer to the DSL Migration Documentation.
Thank you for your attention to this matter.
The text was updated successfully, but these errors were encountered: