VariantFilter

public interface VariantFilter


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

Summary

Public methods

abstract @NonNull BuildType

Returns the Build Type.

abstract @NonNull ProductFlavor

Returns the ProductFlavor that represents the default config.

abstract @NonNull List<@NonNull ProductFlavor>

Returns the list of flavors, or an empty list.

abstract boolean

Whether or not to ignore this particular variant.

abstract @NonNull String

Returns the unique variant name.

abstract void
setIgnore(boolean ignore)

Whether or not to ignore this particular variant.

Public methods

getBuildType

abstract @NonNull BuildType getBuildType()

Returns the Build Type.

getDefaultConfig

abstract @NonNull ProductFlavor getDefaultConfig()

Returns the ProductFlavor that represents the default config.

getFlavors

abstract @NonNull List<@NonNull ProductFlavorgetFlavors()

Returns the list of flavors, or an empty list.

getIgnore

abstract boolean getIgnore()

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

getName

abstract @NonNull String getName()

Returns the unique variant name.

setIgnore

abstract void setIgnore(boolean ignore)

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