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 buildType: BuildType

Returns the Build Type.

defaultConfig

Added in 4.2.0
Deprecated in 7.2.0
val defaultConfig: ProductFlavor

Returns the ProductFlavor that represents the default config.

flavors

Added in 4.2.0
Deprecated in 7.2.0
val flavors: List<ProductFlavor>

Returns the list of flavors, or an empty list.

ignore

Added in 4.2.0
Deprecated in 7.2.0
var ignore: Boolean

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

name

Added in 4.2.0
Deprecated in 7.2.0
val name: String

Returns the unique variant name.