-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Support for custom build types on Android #11354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for custom build types on Android #11354
Conversation
jakobr-google
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, +1, would review again.
| * | ||
| * Note: The BuildType DSL type is not public, and is therefore just Object here. | ||
| */ | ||
| private void addFlutterJarCompileDependency(Project project, Object buildType) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe Groovy-style is to leave the type out when you can't/don't want to specify it for arguments (and use def when declaring untyped variables). Section 3 of http://groovy-lang.org/style-guide.html. :)
* Revert "Make plugins add their repos to projects in the consuming app (#11447)" This reverts commit abe1e25. * Revert "Support for custom build types on Android (#11354)" This reverts commit 87eec71. * Revert "add a profile() method (#11443)" This reverts commit 561d17a. * Revert "Fix documentation based on dartdoc's warnings (#11428)" This reverts commit 6655074. * Revert "Improve some docs around WillPopScope. (#11429)" This reverts commit 58a28a2. * Revert "temporarily disable broken driver test in integration_ui (#11440)" This reverts commit 764515e. * Revert "style fix" This reverts commit 00bfc86. * Revert "tests for waitFor/waitForAbsent" This reverts commit 31d2ee9. * Revert "Always evaluate the finder in `driver.waitFor()` and `driver.waitForAbsent()`" This reverts commit 11d7c79.
|
This patch noticeably affected the build_time_millis benchmark. |
|
How do you run these buildTypes from the Flutter CLI? |
Custom build variants are now supported by the Flutter Gradle plugin. This involves making sure that Flutter dependencies are injected into Gradle configurations and tasks beyond the default Android
debugandreleasebuild types.Fixes #11095