# SingleArtifact

# SingleArtifact

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

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

|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [SingleArtifact.AAR](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.AAR),[SingleArtifact.APK](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.APK),[SingleArtifact.BUNDLE](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.BUNDLE),[SingleArtifact.MERGED_MANIFEST](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.MERGED_MANIFEST),[SingleArtifact.OBFUSCATION_MAPPING_FILE](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.OBFUSCATION_MAPPING_FILE),[SingleArtifact.PUBLIC_ANDROID_RESOURCES_LIST](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.PUBLIC_ANDROID_RESOURCES_LIST) |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------| | [SingleArtifact.AAR](https://developer.android.com/reference/tools/gradle-api/7.0/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.0/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.0/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.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](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.OBFUSCATION_MAPPING_FILE)           | <br />                                                                             | | [SingleArtifact.PUBLIC_ANDROID_RESOURCES_LIST](https://developer.android.com/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.      | |

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

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

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

## Summary

|                                                                                                                     ### Nested classes                                                                                                                     ||
|---|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|   | [AAR](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.AAR) The final AAR file as it would be published.                                                                                      |
|   | [APK](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.APK) Directory where APK files will be located.                                                                                        |
|   | [BUNDLE](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.BUNDLE) The final Bundle ready for consumption at Play Store.                                                                       |
|   | [MERGED_MANIFEST](https://developer.android.com/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.                        |
|   | [OBFUSCATION_MAPPING_FILE](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.OBFUSCATION_MAPPING_FILE) <br />                                                                                  |
|   | [PUBLIC_ANDROID_RESOURCES_LIST](https://developer.android.com/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. |

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

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