Stay organized with collections
Save and categorize content based on your preferences.
SingleArtifact
sealed class SingleArtifact<T : FileSystemLocation> : Artifact.Single<T>
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 classes
|
|
The final AAR file as it would be published.
|
|
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,["# SingleArtifact\n==============\n\n```\nsealed class SingleArtifact\u003cT : FileSystemLocation\u003e : Artifact.Single\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.Single](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/Artifact.Single)\\\u003cT\\\u003e ||\n| | | ↳ | [com.android.build.api.artifact.SingleArtifact](#) |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [SingleArtifact.AAR](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.AAR), [SingleArtifact.APK](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.APK), [SingleArtifact.BUNDLE](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.BUNDLE), [SingleArtifact.MERGED_MANIFEST](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.MERGED_MANIFEST), [SingleArtifact.OBFUSCATION_MAPPING_FILE](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.OBFUSCATION_MAPPING_FILE), [SingleArtifact.PUBLIC_ANDROID_RESOURCES_LIST](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.PUBLIC_ANDROID_RESOURCES_LIST) |-------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------| | [SingleArtifact.AAR](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.AAR) | The final AAR file as it would be published. | | [SingleArtifact.APK](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.APK) | Directory where APK files will be located. | | [SingleArtifact.BUNDLE](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.BUNDLE) | The final Bundle ready for consumption at Play Store. | | [SingleArtifact.MERGED_MANIFEST](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.MERGED_MANIFEST) | Merged manifest file that will be used in the APK, Bundle and InstantApp packages. | | [SingleArtifact.OBFUSCATION_MAPPING_FILE](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.OBFUSCATION_MAPPING_FILE) | \u003cbr /\u003e | | [SingleArtifact.PUBLIC_ANDROID_RESOURCES_LIST](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.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.Single](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/Artifact.Single), see [MultipleArtifact](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/MultipleArtifact) 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/SingleArtifact.AAR) The final AAR file as it would be published. |\n| | [APK](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.APK) Directory where APK files will be located. |\n| | [BUNDLE](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.BUNDLE) The final Bundle ready for consumption at Play Store. |\n| | [MERGED_MANIFEST](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.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/SingleArtifact.OBFUSCATION_MAPPING_FILE) \u003cbr /\u003e |\n| | [PUBLIC_ANDROID_RESOURCES_LIST](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.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. ||"]]