Skip to content

Conversation

@mravn-google
Copy link
Contributor

@mravn-google mravn-google commented Jul 24, 2017

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 debug and release build types.

Fixes #11095

Copy link
Contributor

@jakobr-google jakobr-google left a 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) {
Copy link
Contributor

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. :)

@mravn-google mravn-google merged commit 87eec71 into flutter:master Jul 31, 2017
Hixie added a commit that referenced this pull request Jul 31, 2017
Hixie added a commit that referenced this pull request Aug 1, 2017
* 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.
@Hixie
Copy link
Contributor

Hixie commented Aug 1, 2017

This patch noticeably affected the build_time_millis benchmark.

@FullstackJack
Copy link

How do you run these buildTypes from the Flutter CLI?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support custom build variants on Android

5 participants