VariantOutput

Added in 4.2.0

interface VariantOutput : VariantOutputConfiguration


Defines a variant output.

Summary

Public properties

Property<Boolean>

This property is deprecated. Replaced by enabled

Property<Boolean>

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

Property<Int?>

Returns a modifiable Property representing the variant output version code.

Property<String?>

Returns a modifiable Property representing the variant output 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

enable

Added in 4.2.0
Deprecated in 4.2.0
val enableProperty<Boolean>

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

Returns
Property<Boolean>

a Property to enable or disable this output.

enabled

Added in 4.2.0
val enabledProperty<Boolean>

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

Returns
Property<Boolean>

a Property to enable or disable this output.

versionCode

Added in 4.2.0
val versionCodeProperty<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

Added in 4.2.0
val versionNameProperty<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.