Artifact
abstract class Artifact<T : FileSystemLocation> : Serializable
Artifact.Multiple |
Denotes possible multiple |
Artifact.Single |
Denotes a single |
MultipleArtifact.ALL_CLASSES_DIRS |
Classes that will eventually be dex'ed for this module, that were generated, or processed as directories. |
MultipleArtifact.ALL_CLASSES_JARS |
Classes that will eventually be dex'ed for this module, that were generated, or processed as jar files. |
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 |
Public |
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. |
SingleArtifact |
Public |
Defines a type of artifact handled by the Android Gradle Plugin.
Each instance of Artifact
is produced by a org.gradle.api.Task
and potentially consumed by any number of tasks.
An artifact can potentially be produced by more than one task (each task acting in an additive behavior), but consumers must be aware when more than one artifact can be present, implementing the Multiple
interface will indicate such requirement.
An artifact must be one of the supported ArtifactKind
and must be provided when the constructor is called. ArtifactKind also defines the specific FileSystemLocation
subclass used.
Summary
Nested types |
|
---|---|
Artifact.Appendable |
Denotes an artifact type that can be appended to. |
Artifact.Category |
Defines the kind of artifact type. this will be used to determine the output file location for instance. |
Artifact.ContainsMany |
Denotes a single |
Artifact.Multiple |
Denotes possible multiple |
Artifact.Replaceable |
Denotes an artifact type that can be replaced. |
Artifact.Single |
Denotes a single |
Artifact.Transformable |
Denotes an artifact type that can transformed. |
Public companion properties |
|
---|---|
ArtifactKind.DIRECTORY |
|
ArtifactKind.FILE |
Public constructors |
|
---|---|
<T : FileSystemLocation> Artifact( |
Public properties |
|
---|---|
Artifact.Category |
|
ArtifactKind<T> |
Public companion properties
Public constructors
Public functions
getFolderName
open fun getFolderName(): String
Returns | |
---|---|
String |
The folder name under which the artifact files or folders should be stored. |
name
fun name(): String
Provide a unique name for the artifact type. For external plugins defining new types, consider adding the plugin name to the artifact's name to avoid collision with other plugins.