com.android.build.api.variant
Interfaces
AarMetadata |
Build-time properties for AAR Metadata inside a |
Aidl |
Provides structured access to various AIDL tools such as the aidl compiler executable and aidl framework. |
AndroidComponents |
|
AndroidComponentsExtension |
Generic extension for Android Gradle Plugin related components. |
AndroidResources |
Build-time properties for Android Resources inside a |
AndroidTest |
Model for Android Test components that contains build-time properties |
AndroidTestBuilder |
|
AndroidVersion |
A version of the Android platform. |
AnnotationProcessor |
Build-time properties for Java annotation processors inside a |
ApkPackaging |
Build-time properties for APK packaging inside a |
ApplicationAndroidComponentsExtension |
Extension for the Android Application Gradle Plugin components. |
ApplicationVariant |
Model for application components that only contains build-time properties. |
ApplicationVariantBuilder |
Model for application components that only contains configuration-time properties that impacts the build flow. |
BuiltArtifact |
Represents a built artifact that is present in the file system. |
BuiltArtifacts |
Represents a |
BuiltArtifacts.TransformParams |
Specialized version of Gradle's |
BuiltArtifactsLoader |
Facility to load |
BundleConfig |
Information related to the actions creating a bundle (.aab) file for the variant. |
CanMinifyAndroidResources |
Build-time properties for |
CanMinifyAndroidResourcesBuilder |
Interface for component builder that can shrink resources |
CanMinifyCode |
Build-time properties for |
CanMinifyCodeBuilder |
Interface for component builder that can minify code |
CodeTransparency |
|
Component |
Model for components that only contains build-time properties |
ComponentBuilder |
Model for components that only contains configuration-time properties that impacts the build flow. |
ComponentIdentity |
Variant Configuration represents the identify of a variant |
DependenciesInfo |
Read-only object to access dependencies information properties during com.android.build.api.variant.AndroidComponentsExtension#onVariants |
DependenciesInfoBuilder |
Interface for component builder that specifies whether to include SDK dependency information in APKs and Bundles for the variant |
DexPackagingOptions |
Build-time properties for packaging dex files inside an APK |
Dexing |
Settings related to how dex files are produced. |
DslLifecycle |
|
DynamicFeatureAndroidComponentsExtension |
Extension for the Android Dynamic Feature Gradle Plugin components. |
DynamicFeatureVariant |
Model for dynamic feature components that only contains build-time properties. |
DynamicFeatureVariantBuilder |
Model for dynamic feature components that only contains configuration-time properties that impacts the build flow. |
ExternalNativeBuild |
Parameters to use when building native components. |
ExternalNdkBuild |
Interface for ndk-build per-variant info. |
FilterConfiguration |
Immutable filter configuration. |
GeneratesAar |
Build-time properties for |
GeneratesApk |
Build-time properties for |
GeneratesApkBuilder |
Configuration-time properties |
GeneratesTestApk |
Build-time properties for |
HasAndroidResources |
Build-time properties for |
HasAndroidTest |
|
HasAndroidTestBuilder |
Interface that marks the potential existence of |
HasTestFixtures |
|
HasTestFixturesBuilder |
Interface that marks the potential existence of |
HasUnitTest |
|
HasUnitTestBuilder |
Interface that marks the potential existence of |
Instrumentation |
Options to register asm class visitors and to configure the instrumentation process. |
JavaCompilation |
Build-time properties for Java compile inside a |
JniLibsApkPackaging |
Build-time properties for packaging native libraries (.so) inside an APK |
JniLibsPackaging |
Build-time properties for packaging native libraries (.so) inside a |
KotlinMultiplatformAndroidComponentsExtension |
Components extension for KMP Android Gradle Plugin related components. |
KotlinMultiplatformAndroidVariant |
Properties for the main Variant of a kotlin multiplatform android library |
LibraryAndroidComponentsExtension |
Extension for the Android Library Gradle Plugin components. |
LibraryVariant |
Model for library components that only contains build-time properties. |
LibraryVariantBuilder |
Model for library components that only contains configuration-time properties that impacts the build flow. |
LifecycleTasks |
Lifecycle tasks created by the AGP plugins. |
LintLifecycleExtension |
|
ManifestFiles |
Defines a set of manifests for particular variant. |
Packaging |
Build-time properties for common packaging inside a |
Renderscript |
Build-time properties for renderscript inside a |
ResValue.Key |
a generated resource is identified by its type+name as you can create |
ResourcesPackaging |
Build-time properties for packaging Java resources inside a |
ScopedArtifacts |
Scoped artifacts are artifacts that can be made available in the current variant scope, or may be optionally include the project's dependencies in the results. |
ScopedArtifactsOperation |
Defines all possible operations on a |
SigningConfig |
Defines a variant's signing config. |
SourceDirectories |
Defines all common behaviors to sources access in AGP. |
SourceDirectories.Flat |
Represents all the source folders for a source type in the variant. |
SourceDirectories.Layered |
Represent a collection of directories that have overlay properties to each other. |
Sources |
Provides access to all source directories for a |
TestAndroidComponentsExtension |
Extension for the Android Test Gradle Plugin components. |
TestComponent |
Model for test components that contains build-time properties. |
TestFixtures |
Model for Test Fixtures components that contains build-time properties |
TestVariant |
Model for test components that only contains build-time properties. |
TestVariantBuilder |
Model for test components that only contains configuration-time properties that impacts the build flow. |
UnitTest |
Model for Unit Test components that contains build-time properties |
Variant |
Model for variant components that only contains build-time properties |
VariantBuilder |
Model for variant components that only contains configuration-time properties that impacts the build flow. |
VariantExtension |
Marker type for |
VariantExtensionConfig |
Configuration object passed to the lambda responsible for creating a |
VariantFilter |
This interface is deprecated. Use AndroidComponentsExtension.beforeVariants API to disable specific variants |
VariantInfo |
This interface is deprecated. |
VariantOutput |
Defines a variant output. |
VariantOutputConfiguration |
|
VariantSelector |
Selector to reduce the number of variants that are of interests when calling any of the variant API like |
Classes
BuildConfigField |
Field definition for the generated BuildConfig class. |
DslExtension |
Third party DSL extension configuration. |
DslExtension.Builder |
Creates a |
ResValue |
Resource to be generated by the build system. |
Exceptions
PropertyAccessNotAllowedException |
Exception thrown when users are trying to access |
Enums
FilterConfiguration.FilterType |
Split dimension type |
ScopedArtifacts.Scope |
Defines possible scopes. |
VariantOutputConfiguration.OutputType |
Type of package file, either the main APK or a full split APK file containing resources for a particular split dimension. |