Stay organized with collections
Save and categorize content based on your preferences.
ArtifactKind
sealed class ArtifactKind<T : FileSystemLocation?>
Exhaustive list of artifact file representations supported by the Android Gradle plugin.
As of now, only RegularFile
represented by FILE
and Directory
represented by DIRECTORY
are supported.
Summary
Public functions |
abstract KClass<T> |
|
Public functions
dataType
abstract fun dataType(): KClass<T>
Returns |
KClass<T> |
The data type used by Gradle to represent the file abstraction for this artifact kind.
|
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,["# ArtifactKind\n============\n\n\n```\nsealed class ArtifactKind\u003cT : FileSystemLocation?\u003e\n```\n\n\u003cbr /\u003e\n\nKnown direct subclasses \n[ArtifactKind.DIRECTORY](/reference/tools/gradle-api/7.2/com/android/build/api/artifact/ArtifactKind.DIRECTORY), [ArtifactKind.FILE](/reference/tools/gradle-api/7.2/com/android/build/api/artifact/ArtifactKind.FILE) \n\n|-----------------------------------------------------------------------------------------------------------------|---|\n| [ArtifactKind.DIRECTORY](/reference/tools/gradle-api/7.2/com/android/build/api/artifact/ArtifactKind.DIRECTORY) | |\n| [ArtifactKind.FILE](/reference/tools/gradle-api/7.2/com/android/build/api/artifact/ArtifactKind.FILE) | |\n\n*** ** * ** ***\n\nExhaustive list of artifact file representations supported by the Android Gradle plugin.\n\nAs of now, only [RegularFile](https://docs.gradle.org/current/javadoc/org/gradle/api/file/RegularFile.html) represented by [FILE](/reference/tools/gradle-api/7.2/com/android/build/api/artifact/ArtifactKind.FILE) and [Directory](https://docs.gradle.org/current/javadoc/org/gradle/api/file/Directory.html) represented by [DIRECTORY](/reference/tools/gradle-api/7.2/com/android/build/api/artifact/ArtifactKind.DIRECTORY) are supported.\n\nSummary\n-------\n\n| ### Nested types ||\n|-----------------------------------------------------------------------------------------------------------------|---|\n| [ArtifactKind.DIRECTORY](/reference/tools/gradle-api/7.2/com/android/build/api/artifact/ArtifactKind.DIRECTORY) | |\n| [ArtifactKind.FILE](/reference/tools/gradle-api/7.2/com/android/build/api/artifact/ArtifactKind.FILE) | |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------|\n| `abstract `[KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)`\u003cT\u003e` | [dataType](/reference/tools/gradle-api/7.2/com/android/build/api/artifact/ArtifactKind#dataType())`()` |\n\nPublic functions\n----------------\n\n### dataType\n\n```\nabstract fun dataType(): KClass\u003cT\u003e\n``` \n\n| Returns ||\n|------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------|\n| [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)`\u003cT\u003e` | The data type used by Gradle to represent the file abstraction for this artifact kind. |"]]