I have a bunch of product flavors defined for my build. However in some scenarios I want to build without a flavor.
However when I try to build a release with no flavor, ie
gradlew assembleRelease
It goes through and builds all of the variants, which takes a really long time. I would like to kick off a release build and ignore all flavors. Is that possible?
I am sure I could add an empty flavor called 'default, and build that. Seems like I should not have to do that.
EDIT:
defaultConfig {
resValue "string", "hello", "Hello default"
}
productFlavors {
foo {
resValue "string", "hello", "Hello Foo"
}
bar {
resValue "string", "hello", "Hello Bar"
}
}
Seems the answer at the moment is to provide your own 'default' flavor
productFlavors {
defaults {
// yup its empty cause I just want to build with the defaults
// that are already defined.
}
foo {
resValue "string", "hello", "Hello Foo"
}
bar {
resValue "string", "hello", "Hello Bar"
}
}