VariantFilter

Interface for variant control, allowing to query a variant for some base data and allowing to disable some variants.

Properties

PropertyDescription
buildType

The Build Type.

defaultConfig

The ProductFlavor that represents the default config.

flavors

The list of flavors, or an empty list.

Methods

MethodDescription
setIgnore(ignore)

Sets whether or not to ignore this particular variant. Default is false.

Script blocks

No script blocks

Property details

com.android.builder.model.BuildType buildType

The Build Type.

com.android.builder.model.ProductFlavor defaultConfig

The ProductFlavor that represents the default config.

List<com.android.builder.model.ProductFlavor> flavors

The list of flavors, or an empty list.

Method details

void setIgnore(boolean ignore)

Sets whether or not to ignore this particular variant. Default is false.