Stay organized with collections
Save and categorize content based on your preferences.
ArtifactType
@Incubating sealed class ArtifactType<T : FileSystemLocation> : Artifact.SingleArtifact<T>
Public Artifact for Android Gradle plugin.
These are Artifact.SingleArtifact, see MultipleArtifactType for multiple ones.
All methods in the Artifacts class should be supported with any subclass of this
class.
Summary
Nested classes
|
|
|
|
Directory where APK files will be located.
|
|
The final Bundle ready for consumption at Play Store.
|
|
Merged manifest file that will be used in the APK, Bundle and InstantApp packages.
|
|
|
|
A file containing the list of public resources exported by a library project.
|
Public methods
getFileSystemLocationName
open fun getFileSystemLocationName(): String
Return |
Depending on T, returns the file name of the folder under the variant-specific folder or
an empty string to use defaults. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ArtifactType\n============\n\n```\n@Incubating sealed class ArtifactType\u003cT : FileSystemLocation\u003e : Artifact.SingleArtifact\u003cT\u003e\n```\n\n|---|---|---|--------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||||\n| ↳ | [com.android.build.api.artifact.Artifact](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/Artifact)\\\u003cFileTypeT\\\u003e |||\n| | ↳ | [com.android.build.api.artifact.Artifact.SingleArtifact](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/Artifact.SingleArtifact)\\\u003cT\\\u003e ||\n| | | ↳ | [com.android.build.api.artifact.ArtifactType](#) |\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [ArtifactType.AAR](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/ArtifactType.AAR), [ArtifactType.APK](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/ArtifactType.APK), [ArtifactType.BUNDLE](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/ArtifactType.BUNDLE), [ArtifactType.MERGED_MANIFEST](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/ArtifactType.MERGED_MANIFEST), [ArtifactType.OBFUSCATION_MAPPING_FILE](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/ArtifactType.OBFUSCATION_MAPPING_FILE), [ArtifactType.PUBLIC_ANDROID_RESOURCES_LIST](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/ArtifactType.PUBLIC_ANDROID_RESOURCES_LIST) |---------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------| | [ArtifactType.AAR](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/ArtifactType.AAR) | \u003cbr /\u003e | | [ArtifactType.APK](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/ArtifactType.APK) | Directory where APK files will be located. | | [ArtifactType.BUNDLE](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/ArtifactType.BUNDLE) | The final Bundle ready for consumption at Play Store. | | [ArtifactType.MERGED_MANIFEST](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/ArtifactType.MERGED_MANIFEST) | Merged manifest file that will be used in the APK, Bundle and InstantApp packages. | | [ArtifactType.OBFUSCATION_MAPPING_FILE](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/ArtifactType.OBFUSCATION_MAPPING_FILE) | \u003cbr /\u003e | | [ArtifactType.PUBLIC_ANDROID_RESOURCES_LIST](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/ArtifactType.PUBLIC_ANDROID_RESOURCES_LIST) | A file containing the list of public resources exported by a library project. | |\n\nPublic [Artifact](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/Artifact) for Android Gradle plugin.\n\nThese are [Artifact.SingleArtifact](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/Artifact.SingleArtifact), see [MultipleArtifactType](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/MultipleArtifactType) for multiple ones.\n\nAll methods in the [Artifacts](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/Artifacts) class should be supported with any subclass of this\nclass.\n\nSummary\n-------\n\n| ### Nested classes ||\n|---|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [AAR](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/ArtifactType.AAR) \u003cbr /\u003e |\n| | [APK](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/ArtifactType.APK) Directory where APK files will be located. |\n| | [BUNDLE](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/ArtifactType.BUNDLE) The final Bundle ready for consumption at Play Store. |\n| | [MERGED_MANIFEST](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/ArtifactType.MERGED_MANIFEST) Merged manifest file that will be used in the APK, Bundle and InstantApp packages. |\n| | [OBFUSCATION_MAPPING_FILE](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/ArtifactType.OBFUSCATION_MAPPING_FILE) \u003cbr /\u003e |\n| | [PUBLIC_ANDROID_RESOURCES_LIST](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/ArtifactType.PUBLIC_ANDROID_RESOURCES_LIST) A file containing the list of public resources exported by a library project. |\n\n| ### Public methods ||\n|---------------------------------------------------------------------------------------|----------------------------------------------------------------------|\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [getFileSystemLocationName](#getFileSystemLocationName())`()` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### getFileSystemLocationName\n\n```\nopen fun getFileSystemLocationName(): String\n```\n\n| Return ||\n|---|---|\n| Depending on T, returns the file name of the folder under the variant-specific folder or an empty string to use defaults. ||"]]