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

com.android.builder.model.BuildType

This property is deprecated. Use AndroidComponentsExtension.beforeVariants API to disable specific variants

com.android.builder.model.ProductFlavor

This property is deprecated. Use AndroidComponentsExtension.beforeVariants API to disable specific variants

List<com.android.builder.model.ProductFlavor>

This property is deprecated. Use AndroidComponentsExtension.beforeVariants API to disable specific variants

Boolean

This property is deprecated. Use AndroidComponentsExtension.beforeVariants API to disable specific variants

String

This property is deprecated. Use AndroidComponentsExtension.beforeVariants API to disable specific variants

Public properties

buildType

Added in 4.2.0
Deprecated in 7.2.0
val buildType: com.android.builder.model.BuildType

Returns the Build Type.

defaultConfig

Added in 4.2.0
Deprecated in 7.2.0
val defaultConfig: com.android.builder.model.ProductFlavor

Returns the ProductFlavor that represents the default config.

flavors

Added in 4.2.0
Deprecated in 7.2.0
val flavors: List<com.android.builder.model.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.