BuiltArtifact

public interface BuiltArtifact extends VariantOutputConfiguration


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

Summary

Public methods

abstract @NonNull String

Absolute path to the built file

abstract Integer

Returns a read-only version code.

abstract String

Returns a read-only version name.

Inherited methods

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

Returns a possibly empty list of FilterConfiguration for this output.

abstract @NonNull VariantOutputConfiguration.OutputType

Returns the output type of the referenced APK.

Public methods

getOutputFile

abstract @NonNull String getOutputFile()

Absolute path to the built file

Returns
@NonNull String

the output file path.

getVersionCode

abstract Integer getVersionCode()

Returns a read-only version code.

Returns
Integer

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

getVersionName

abstract String getVersionName()

Returns a read-only version name.

Returns
String

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