Stay organized with collections
Save and categorize content based on your preferences.
BuiltArtifact
interface BuiltArtifact : VariantOutputConfiguration
Represents a built artifact that is present in the file system.
Summary
Properties
|
abstract String |
Absolute path to the built file
|
abstract Int? |
Returns a read-only version code.
|
abstract String? |
Returns a read-only version name.
|
Properties
outputFile
abstract val outputFile: String
Absolute path to the built file
Return |
the output file path. |
versionCode
abstract val versionCode: Int?
Returns a read-only version code.
Return |
version code or null if the version code is unknown (not set in manifest nor DSL) |
versionName
abstract val versionName: String?
Returns a read-only version name.
Return |
version name or null if the version name is unknown (not set in manifest nor DSL) |
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,["# BuiltArtifact\n=============\n\n```\ninterface BuiltArtifact : VariantOutputConfiguration\n```\n\n|--------------------------------------------------|\n| [com.android.build.api.variant.BuiltArtifact](#) |\n\nRepresents a built artifact that is present in the file system.\n\nSummary\n-------\n\n| ### Properties ||\n|--------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------|\n| abstract [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [outputFile](#outputFile:kotlin.String) Absolute path to the built file |\n| abstract [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)? | [versionCode](#versionCode:kotlin.Int) Returns a read-only version code. |\n| abstract [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | [versionName](#versionName:kotlin.String) Returns a read-only version name. |\n\n| ### Inherited properties ||\n|---|---|\n| From class [VariantOutputConfiguration](/reference/tools/gradle-api/7.1/com/android/build/api/variant/VariantOutputConfiguration) |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Collection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-collection/index.html)\u003c[FilterConfiguration](/reference/tools/gradle-api/7.1/com/android/build/api/variant/FilterConfiguration)\u003e | [filters](/reference/tools/gradle-api/7.1/com/android/build/api/variant/VariantOutputConfiguration#filters:kotlin.collections.Collection) Returns a possibly empty list of [FilterConfiguration](/reference/tools/gradle-api/7.1/com/android/build/api/variant/FilterConfiguration) for this output. If the list is empty, this means there is no filter associated to this output. \u003cbr /\u003e | | [VariantOutputConfiguration.OutputType](/reference/tools/gradle-api/7.1/com/android/build/api/variant/VariantOutputConfiguration.OutputType) | [outputType](/reference/tools/gradle-api/7.1/com/android/build/api/variant/VariantOutputConfiguration#outputType:com.android.build.api.variant.VariantOutputConfiguration.OutputType) Returns the output type of the referenced APK. \u003cbr /\u003e | ||\n\nProperties\n----------\n\n### outputFile\n\n```\nabstract val outputFile: String\n```\n\nAbsolute path to the built file\n\n| Return ||\n|---|---|\n| the output file path. ||\n\n### versionCode\n\n```\nabstract val versionCode: Int?\n```\n\nReturns a read-only version code.\n\n| Return ||\n|---|---|\n| version code or null if the version code is unknown (not set in manifest nor DSL) ||\n\n### versionName\n\n```\nabstract val versionName: String?\n```\n\nReturns a read-only version name.\n\n| Return ||\n|---|---|\n| version name or null if the version name is unknown (not set in manifest nor DSL) ||"]]