VariantFilter

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

val buildType: BuildType

Returns the Build Type.

defaultConfig

val defaultConfig: ProductFlavor

Returns the ProductFlavor that represents the default config.

flavors

val flavors: List<ProductFlavor>

Returns the list of flavors, or an empty list.

ignore

val ignore: Boolean

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

name

val name: String

Returns the unique variant name.