VariantFilter

Added in 4.2.0
Deprecated in 7.2.0

interface VariantFilter


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

Summary

Public properties

BuildType

Returns the Build Type.

ProductFlavor

Returns the ProductFlavor that represents the default config.

List<ProductFlavor>

Returns the list of flavors, or an empty list.

Boolean

Whether or not to ignore this particular variant.

String

Returns the unique variant name.

Public properties

buildType

Added in 4.2.0
Deprecated in 7.2.0
val buildTypeBuildType

Returns the Build Type.

defaultConfig

Added in 4.2.0
Deprecated in 7.2.0
val defaultConfigProductFlavor

Returns the ProductFlavor that represents the default config.

flavors

Added in 4.2.0
Deprecated in 7.2.0
val flavorsList<ProductFlavor>

Returns the list of flavors, or an empty list.

ignore

Added in 4.2.0
Deprecated in 7.2.0
var ignoreBoolean

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

name

Added in 4.2.0
Deprecated in 7.2.0
val nameString

Returns the unique variant name.