Interface for variant control, allowing to query a variant for some base data and allowing to disable some variants.
Type | Name and description |
---|---|
BuildType |
getBuildType() Returns the Build Type. |
ProductFlavor |
getDefaultConfig() Returns the ProductFlavor that represents the default config. |
java.util.List<ProductFlavor> |
getFlavors() Returns the list of flavors, or an empty list. |
void |
setIgnore(boolean ignore) Sets whether or not to ignore this particular variant. |
Returns the Build Type.
Returns the ProductFlavor that represents the default config.
Returns the list of flavors, or an empty list.
Sets whether or not to ignore this particular variant. Default is false.
ignore
- whether to ignore the variant