BuiltArtifact

Added in 4.2.0

interface BuiltArtifact : VariantOutputConfiguration


Represents a built artifact that is present in the file system.

Summary

Public properties

String

Absolute path to the built file

Int?

Returns a read-only version code.

String?

Returns a read-only version name.

Inherited properties

From com.android.build.api.variant.VariantOutputConfiguration
Collection<FilterConfiguration>

Returns a possibly empty list of FilterConfiguration for this output.

VariantOutputConfiguration.OutputType

Returns the output type of the referenced APK.

Public properties

outputFile

Added in 4.2.0
val outputFileString

Absolute path to the built file

Returns
String

the output file path.

versionCode

Added in 4.2.0
val versionCodeInt?

Returns a read-only version code.

Returns
Int?

version code or null if the version code is unknown (not set in manifest nor DSL)

versionName

Added in 4.2.0
val versionNameString?

Returns a read-only version name.

Returns
String?

version name or null if the version name is unknown (not set in manifest nor DSL)