ComponentBuilder

interface ComponentBuilder : ComponentIdentity

Known direct subclasses
VariantBuilder

Variant object that contains properties that must be set during configuration time as it changes the build flow for the variant.

Known indirect subclasses
ApplicationVariantBuilder

Application specific variant object that contains properties that will determine the variant's build flow.

DynamicFeatureVariantBuilder
LibraryVariantBuilder

VariantBuilder type for library projects

TestVariantBuilder

VariantBuilder type for tests associated with a module.


Component object that contains properties that must be set during configuration time as it changes the build flow for the variant.

Summary

Public properties

Boolean

Set to true if the variant is active and should be configured, false otherwise.

Boolean

This property is deprecated. Will be removed in 8.0

Inherited properties

From class com.android.build.api.variant.ComponentIdentity
String?

Build type name, might be replaced with access to locked DSL object once ready.

String?

The multi-flavor name of the variant.

String

Component's name.

List<Pair<StringString>>

List of flavor names, might be replaced with access to locked DSL objects once ready.

Public properties

enable

var enableBoolean

Set to true if the variant is active and should be configured, false otherwise.

enabled

var enabledBoolean