VariantFilter

API Documentation:VariantFilter

An object representing a Variant (made of a build type and one or more flavors), and a boolean controlling whether this variant is to be excluded.

Properties

PropertyDescription
buildType

The Build Type used by the variant. This is Read-Only version, as changing this object would have global impact.

defaultConfig

The default config. This is a Read-Only version of the global android.defaultConfig object.

flavors

The list of Product Flavors for this variant. These are returned as Read-Only versions, as changing these objects would have global impact.

ignore

Whether to ignore this variant.

Methods

No methods

Script blocks

No script blocks

Property details

com.android.builder.model.BuildType buildType (read-only)

The Build Type used by the variant. This is Read-Only version, as changing this object would have global impact.

com.android.builder.model.ProductFlavor defaultConfig (read-only)

The default config. This is a Read-Only version of the global android.defaultConfig object.

List<GroupableProductFlavor> flavors (read-only)

The list of Product Flavors for this variant. These are returned as Read-Only versions, as changing these objects would have global impact.

boolean ignore

Whether to ignore this variant.