VariantFilter

Exposes a read-only view of a variant as well as a flag that can be used to signal that the variant should be ignored.

Properties

PropertyDescription
buildType

Returns a read-only Build Type.

defaultConfig

Returns a read-only ProductFlavor that represents the default config.

flavors

The list of read-only flavors, or an empty list.

ignore

Whether to ignore this variant.

Methods

No methods

Script blocks

No script blocks

Property details

com.android.builder.model.BuildType buildType

Returns a read-only Build Type.

See BuildType for properties present on the returned object.

com.android.builder.model.ProductFlavor defaultConfig

Returns a read-only ProductFlavor that represents the default config.

See ProductFlavor for properties present on the returned object.

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

The list of read-only flavors, or an empty list.

See ProductFlavor for properties present on the returned objects.

boolean ignore

Whether to ignore this variant.