com.android.build.api.artifact

Interfaces

Artifact.Appendable

Denotes an artifact type that can be appended to.

Artifact.ContainsMany

Denotes a single DIRECTORY that may contain zero to many com.android.build.api.variant.BuiltArtifact.

Artifact.Replaceable

Denotes an artifact type that can be replaced.

Artifact.Transformable

Denotes an artifact type that can transformed.

ArtifactTransformationRequest

When a Directory contains more than one artifact (for example, consider SingleArtifact.APK with multiple APKs for different screen densities), this object will abstract away having to deal with BuiltArtifacts and manually load and write the metadata files.

Artifacts

Access to the artifacts on a Variant object.

CombiningOperationRequest
InAndOutDirectoryOperationRequest
InAndOutFileOperationRequest

Operations performed by a Task with a single RegularFile or Directory output.

MultipleArtifactTypeOutOperationRequest

Read-only Operations performed by a Task with a multiple RegularFile or Directory output.

OutOperationRequest

Operations performed by a Task with a single RegularFile or Directory output.

TaskBasedOperation

Interface with methods to wire input and output method references to Task-based operations.

Classes

Artifact

Defines a type of artifact handled by the Android Gradle Plugin.

Artifact.Multiple

Denotes possible multiple FileSystemLocation instances for this artifact type.

Artifact.Single

Denotes a single FileSystemLocation instance of this artifact type at a given time.

ArtifactKind

Exhaustive list of artifact file representations supported by the Android Gradle plugin.

MultipleArtifact

Public Artifact for Android Gradle plugin.

ScopedArtifact

List of ScopedArtifacts.Scope artifacts.

SingleArtifact

Public Artifact for Android Gradle plugin.

Objects

ArtifactKind.DIRECTORY

A type of artifact file that is a Directory

ArtifactKind.FILE

A Type of artifact that is a RegularFile

MultipleArtifact.MULTIDEX_KEEP_PROGUARD

Text files with additional ProGuard rules to be used to determine which classes are compiled into the main dex file.

MultipleArtifact.NATIVE_DEBUG_METADATA

Directories with native debug metadata

MultipleArtifact.NATIVE_SYMBOL_TABLES

Directories with debug symbol table

ScopedArtifact.CLASSES

.class files, result of sources compilation and/or external dependencies depending on the scope; includes users' transformation, but does not include Jacoco instrumentation

ScopedArtifact.JAVA_RES
SingleArtifact.AAR

The final AAR file as it would be published.

SingleArtifact.APK

Directory where APK files will be located.

SingleArtifact.APK_FROM_BUNDLE

Universal APK that contains assets for all screen densities.

SingleArtifact.ASSETS

Assets that will be packaged in the resulting APK or Bundle.

SingleArtifact.BUNDLE

The final Bundle ready for consumption at Play Store.

SingleArtifact.MERGED_MANIFEST

Merged manifest file that will be used in the APK, Bundle and InstantApp packages.

SingleArtifact.MERGED_NATIVE_LIBS

The directory containing all the native library (.so) files that will be packaged in the APK, AAR, or Bundle.

SingleArtifact.METADATA_LIBRARY_DEPENDENCIES_REPORT

The metadata for the library dependencies.

SingleArtifact.OBFUSCATION_MAPPING_FILE
SingleArtifact.PUBLIC_ANDROID_RESOURCES_LIST

A file containing the list of public resources exported by a library project.

SingleArtifact.RUNTIME_SYMBOL_LIST

The text symbol output file (R.txt) containing a list of resources and their ids (including of transitive dependencies).

Enums

Artifact.Category

Defines the kind of artifact type. this will be used to determine the output file location for instance.