Component

interface Component : ComponentIdentity

Known direct subclasses
TestComponent
TestFixtures
Variant

Parent interface for all types of variants.

Known indirect subclasses
AndroidTest

Properties for the android test Variant of a module.

ApplicationVariant

Properties for the main Variant of an application.

DynamicFeatureVariant
LibraryVariant

Variant for Library projects

TestVariant

Variant for test-only modules.

UnitTest

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

UnitTest

Summary

Public functions

Unit

This function is deprecated. Use the instrumentation block.

Unit
<ParamT : InstrumentationParameters?> transformClassesWith(
    classVisitorFactoryImplClass: Class<AsmClassVisitorFactory<ParamT?>?>?,
    scope: InstrumentationScope?,
    instrumentationParamsConfig: ((ParamT) -> Unit)?
)

This function is deprecated. Use the instrumentation block.

Public properties

Artifacts

Access to the variant's buildable artifacts for build customization.

Instrumentation

Access to the variant's instrumentation options.

JavaCompilation

Access to the variant's java compilation options.

Sources

Access to variant's source files.

Public functions

setAsmFramesComputationMode

fun setAsmFramesComputationMode(mode: FramesComputationMode?): Unit

transformClassesWith

fun <ParamT : InstrumentationParameters?> transformClassesWith(
    classVisitorFactoryImplClass: Class<AsmClassVisitorFactory<ParamT?>?>?,
    scope: InstrumentationScope?,
    instrumentationParamsConfig: ((ParamT) -> Unit)?
): Unit

Public properties

artifacts

val artifactsArtifacts

Access to the variant's buildable artifacts for build customization.

instrumentation

val instrumentationInstrumentation

Access to the variant's instrumentation options.

javaCompilation

val javaCompilationJavaCompilation

Access to the variant's java compilation options.

sources

val sourcesSources

Access to variant's source files.