Google is committed to advancing racial equity for Black communities. See how.

VariantFilter

interface VariantFilter
com.android.build.api.variant.VariantFilter

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

Summary

Properties

abstract BuildType

Returns the Build Type.

abstract ProductFlavor

Returns the ProductFlavor that represents the default config.

abstract List<ProductFlavor>

Returns the list of flavors, or an empty list.

abstract Boolean

Whether or not to ignore this particular variant.

abstract String

Returns the unique variant name.

Properties

buildType

abstract val buildType: BuildType

Returns the Build Type.

defaultConfig

abstract val defaultConfig: ProductFlavor

Returns the ProductFlavor that represents the default config.

flavors

abstract val flavors: List<ProductFlavor>

Returns the list of flavors, or an empty list.

ignore

abstract var ignore: Boolean

Whether or not to ignore this particular variant. Default is false.

name

abstract val name: String

Returns the unique variant name.