Stay organized with collections Save and categorize content based on your preferences.

SingleArtifact

sealed class SingleArtifact<T : FileSystemLocation> : Artifact.Single

Known direct subclasses
SingleArtifact.AAR

The final AAR file as it would be published.

SingleArtifact.APK

Directory where APK files will be located.

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.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.


Public Artifact for Android Gradle plugin.

These are Artifact.Single, see MultipleArtifact for multiple ones.

All methods in the Artifacts class should be supported with any subclass of this class.

Summary

Nested types

SingleArtifact.AAR

The final AAR file as it would be published.

SingleArtifact.APK

Directory where APK files will be located.

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.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.

Public functions

open String

Inherited functions

From class com.android.build.api.artifact.Artifact
open String
String

Provide a unique name for the artifact type.

Public functions

getFileSystemLocationName

open fun getFileSystemLocationName(): String
Returns
String

Depending on T, returns the file name of the folder under the variant-specific folder or an empty string to use defaults.