Google is committed to advancing racial equity for Black communities. See how.

VariantOutput

@Incubating interface VariantOutput : VariantOutputConfiguration
com.android.build.api.variant.VariantOutput

Defines a variant output.

Summary

Properties

abstract Property<Boolean>

Returns a modifiable Property to enable or disable the production of this VariantOutput

abstract Property<Int?>

Returns a modifiable Property representing the variant output version code.

abstract Property<String?>

Returns a modifiable Property representing the variant output version name.

Inherited properties

Properties

enabled

abstract val enabled: Property<Boolean>

Returns a modifiable Property to enable or disable the production of this VariantOutput

Return
a Property to enable or disable this output.

versionCode

abstract val versionCode: Property<Int?>

Returns a modifiable Property representing the variant output version code.

This will be initialized with the variant's merged flavor value or read from the manifest file if unset.

versionName

abstract val versionName: Property<String?>

Returns a modifiable Property representing the variant output version name.

This will be initialized with the variant's merged flavor value, or it will be read from the manifest source file if it's not set via the DSL, or it will be null if it's also not set in the manifest.