# SingleArtifact

# SingleArtifact

<br />

```
sealed class SingleArtifact<T : FileSystemLocation?> : Artifact, Artifact.Single
```

<br />

|---|---|---|------------------------------------------------------------------------------------------------------------------------------|
| [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                            ||||
| ↳ | [Artifact](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/Artifact)                   |||
|   | ↳ | [Artifact.Single](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/Artifact.Single)  ||
|   |   | ↳ | [SingleArtifact](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/SingleArtifact) |

Known direct subclasses  
[SingleArtifact.AAR](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/SingleArtifact.AAR),[SingleArtifact.APK](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/SingleArtifact.APK),[SingleArtifact.BUNDLE](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/SingleArtifact.BUNDLE),[SingleArtifact.MERGED_MANIFEST](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/SingleArtifact.MERGED_MANIFEST),[SingleArtifact.METADATA_LIBRARY_DEPENDENCIES_REPORT](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/SingleArtifact.METADATA_LIBRARY_DEPENDENCIES_REPORT),[SingleArtifact.OBFUSCATION_MAPPING_FILE](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/SingleArtifact.OBFUSCATION_MAPPING_FILE),[SingleArtifact.PUBLIC_ANDROID_RESOURCES_LIST](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/SingleArtifact.PUBLIC_ANDROID_RESOURCES_LIST)  

|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------|
| [SingleArtifact.AAR](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/SingleArtifact.AAR)                                                                   | The final AAR file as it would be published.                                       |
| [SingleArtifact.APK](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/SingleArtifact.APK)                                                                   | Directory where APK files will be located.                                         |
| [SingleArtifact.BUNDLE](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/SingleArtifact.BUNDLE)                                                             | The final Bundle ready for consumption at Play Store.                              |
| [SingleArtifact.MERGED_MANIFEST](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/SingleArtifact.MERGED_MANIFEST)                                           | Merged manifest file that will be used in the APK, Bundle and InstantApp packages. |
| [SingleArtifact.METADATA_LIBRARY_DEPENDENCIES_REPORT](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/SingleArtifact.METADATA_LIBRARY_DEPENDENCIES_REPORT) | The metadata for the library dependencies.                                         |
| [SingleArtifact.OBFUSCATION_MAPPING_FILE](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/SingleArtifact.OBFUSCATION_MAPPING_FILE)                         |                                                                                    |
| [SingleArtifact.PUBLIC_ANDROID_RESOURCES_LIST](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/SingleArtifact.PUBLIC_ANDROID_RESOURCES_LIST)               | A file containing the list of public resources exported by a library project.      |

*** ** * ** ***

Public[Artifact](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/Artifact)for Android Gradle plugin.

These are[Artifact.Single](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/Artifact.Single), see[MultipleArtifact](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/MultipleArtifact)for multiple ones.

All methods in the[Artifacts](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/Artifacts)class should be supported with any subclass of this class.

## Summary

|                                                                                                                                      ### Nested types                                                                                                                                      ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------|
| [SingleArtifact.AAR](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/SingleArtifact.AAR)                                                                   | The final AAR file as it would be published.                                       |
| [SingleArtifact.APK](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/SingleArtifact.APK)                                                                   | Directory where APK files will be located.                                         |
| [SingleArtifact.BUNDLE](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/SingleArtifact.BUNDLE)                                                             | The final Bundle ready for consumption at Play Store.                              |
| [SingleArtifact.MERGED_MANIFEST](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/SingleArtifact.MERGED_MANIFEST)                                           | Merged manifest file that will be used in the APK, Bundle and InstantApp packages. |
| [SingleArtifact.METADATA_LIBRARY_DEPENDENCIES_REPORT](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/SingleArtifact.METADATA_LIBRARY_DEPENDENCIES_REPORT) | The metadata for the library dependencies.                                         |
| [SingleArtifact.OBFUSCATION_MAPPING_FILE](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/SingleArtifact.OBFUSCATION_MAPPING_FILE)                         |                                                                                    |
| [SingleArtifact.PUBLIC_ANDROID_RESOURCES_LIST](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/SingleArtifact.PUBLIC_ANDROID_RESOURCES_LIST)               | A file containing the list of public resources exported by a library project.      |

|                                                                                                                       ### Public functions                                                                                                                       ||
|-----------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `open `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [getFileSystemLocationName](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/SingleArtifact#getFileSystemLocationName())`()` |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                        ### Inherited functions                                                                                                                                                                                                                                                                                                                                                                                                                                                         ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| From class[Artifact](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/Artifact) |-----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `open `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [getFolderName](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/Artifact#getFolderName())`()`                            | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)        | [name](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/Artifact#name())`()` Provide a unique name for the artifact type. | |

## Public functions

### getFileSystemLocationName

```
open fun getFileSystemLocationName(): String
```  

|                                                                                                                                                         Returns                                                                                                                                                          ||
|----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | Depending on[T](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/artifact/SingleArtifact), returns the file name of the folder under the variant-specific folder or an empty string to use defaults. |