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.

Inherited properties

Collection<FilterConfiguration> filters

Returns a possibly empty list of FilterConfiguration for this output. If the list is empty, this means there is no filter associated to this output.

VariantOutputConfiguration.OutputType outputType

Returns the output type of the referenced APK.

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)