Component
interface Component : ComponentIdentity
TestComponent |
|
TestFixtures |
|
Variant |
Parent interface for all types of variants. |
AndroidTest |
Properties for the android test Variant of a module. |
ApplicationVariant |
Properties for the main Variant of an application. |
DynamicFeatureVariant |
|
LibraryVariant |
|
TestVariant |
|
UnitTest |
This interface is deprecated. Use the com.android.build.api.variant package |
UnitTest |
Summary
Public functions |
|
---|---|
Unit |
This function is deprecated. Will be removed in v9.0, use the instrumentation block. |
Unit |
<ParamT : InstrumentationParameters> This function is deprecated. Will be removed in v9.0, use the instrumentation block. |
Public properties |
|
---|---|
Configuration |
Access to the variant's annotation processor |
Artifacts |
Access to the variant's buildable artifacts for build customization. |
FileCollection |
Access to the variant's compile classpath. |
Configuration |
Access to the variant's compile |
Instrumentation |
Access to the variant's instrumentation options. |
JavaCompilation |
Access to the variant's java compilation options. |
Provider<String> |
The namespace of the generated R and BuildConfig classes. |
Configuration |
Access to the variant's runtime |
Sources |
Access to variant's source files. |
Inherited properties |
|
---|---|
Public functions
transformClassesWith
fun <ParamT : InstrumentationParameters>transformClassesWith(
classVisitorFactoryImplClass: Class<AsmClassVisitorFactory<ParamT>>,
scope: InstrumentationScope,
instrumentationParamsConfig: (ParamT) -> Unit
): Unit
Public properties
annotationProcessorConfiguration
val annotationProcessorConfiguration: Configuration
Access to the variant's annotation processor Configuration
; for example, the debugAnnotationProcessor Configuration
for the debug variant.
The returned Configuration
should not be resolved until execution time.
artifacts
val artifacts: Artifacts
Access to the variant's buildable artifacts for build customization.
compileClasspath
val compileClasspath: FileCollection
Access to the variant's compile classpath.
The returned FileCollection
should not be resolved until execution time.
compileConfiguration
val compileConfiguration: Configuration
Access to the variant's compile Configuration
; for example, the debugCompileClasspath Configuration
for the debug variant.
The returned Configuration
should not be resolved until execution time.
instrumentation
val instrumentation: Instrumentation
Access to the variant's instrumentation options.
javaCompilation
val javaCompilation: JavaCompilation
Access to the variant's java compilation options.
namespace
val namespace: Provider<String>
The namespace of the generated R and BuildConfig classes. Also, the namespace used to resolve any relative class names that are declared in the AndroidManifest.xml.
runtimeConfiguration
val runtimeConfiguration: Configuration
Access to the variant's runtime Configuration
; for example, the debugRuntimeClasspath Configuration
for the debug variant.
The returned Configuration
should not be resolved until execution time.