Android: Only include the repos in places where we need them #29700
Labels
c: new feature
Nothing broken; request for a new capability
P3
Issues that are less important to the Flutter project
platform-android
Android applications specifically
t: gradle
"flutter build" and "flutter run" on Android
team-android
Owned by Android platform team
tool
Affects the "flutter" command-line tool. See also t: labels.
triaged-android
Triaged by Android platform team
Projects
By default, Flutter generates the Android gradle scripts that most Flutter apps/plugins use. For the Flutter app generation, the gradle scripts put the follow at the top level gradle script:
This is great practice for a top level gradle script that is managing many modules, but it’s a not so good practice for an one module app. The one module app should place this at the lower level app level gradle script. For the official Flutter script, having gold standard practices would prevent propagating this misunderstanding.
For the Flutter plugin generation, we have the following:
It's forcing all apps that use this plugin to use those repositories and the plugin could only be used for that plugin. We should only be setting the repository only where it is needed.
References:
https://docs.gradle.org/current/userguide/multi_project_builds.html
https://guides.gradle.org/creating-multi-project-builds/#configure_from_above
The text was updated successfully, but these errors were encountered: