VariantOutput

interface VariantOutput : VariantOutputConfiguration


Defines a variant output.

Summary

Public properties

Property<Boolean>

This property is deprecated. Replaced by enable

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 class 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

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

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

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

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.