ComponentIdentity

Added in 7.0.0

interface ComponentIdentity

Known direct subclasses
ComponentBuilder

Model for components that only contains configuration-time properties that impacts the build flow.

Component

Model for components that only contains build-time properties

Known indirect subclasses
AndroidTest

Model for Android Test components that contains build-time properties

ApplicationVariantBuilder

Model for application components that only contains configuration-time properties that impacts the build flow.

ApplicationVariant

Model for application components that only contains build-time properties.

DeviceTest

Model for Device Test components that contains build-time properties

DynamicFeatureVariantBuilder

Model for dynamic feature components that only contains configuration-time properties that impacts the build flow.

DynamicFeatureVariant

Model for dynamic feature components that only contains build-time properties.

HostTest

Model for Host Test components that contains build-time properties.

LibraryVariantBuilder

Model for library components that only contains configuration-time properties that impacts the build flow.

LibraryVariant

Model for library components that only contains build-time properties.

TestComponent

Model for test components that contains build-time properties.

TestFixtures

Model for Test Fixtures components that contains build-time properties

TestVariantBuilder

Model for test components that only contains configuration-time properties that impacts the build flow.

TestVariant

Model for test components that only contains build-time properties.

UnitTest

This interface is deprecated. Use the com.android.build.api.variant package

UnitTest

Component for unit tests

VariantBuilder

Model for variant components that only contains configuration-time properties that impacts the build flow.

Variant

Model for variant components that only contains build-time properties


Variant Configuration represents the identify of a variant

This is computed from the list of build types and flavors.

Summary

Public properties

String?

Build type name.

String?

The multi-flavor name of the variant.

String

Component's name.

List<Pair<StringString>>

List of flavor names.

Public properties

buildType

Added in 7.0.0
val buildTypeString?

Build type name.

flavorName

Added in 7.0.0
val flavorNameString?

The multi-flavor name of the variant.

This does not include the build type. If no flavors are present, this will return null

The full name of the variant is queried via name.

name

Added in 7.0.0
val nameString

Component's name.

productFlavors

Added in 7.0.0
val productFlavorsList<Pair<StringString>>

List of flavor names.

The order is properly sorted based on the associated dimension order.