VariantOutput

public interface VariantOutput extends VariantOutputConfiguration


Defines a variant output.

Summary

Public methods

abstract @NonNull Property<@NonNull Boolean>

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

abstract @NonNull Property<@NonNull Boolean>

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

abstract @NonNull Property<Integer>

Returns a modifiable Property representing the variant output version code.

abstract @NonNull Property<String>

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

getEnable

abstract @NonNull Property<@NonNull BooleangetEnable()

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

Returns
@NonNull Property<@NonNull Boolean>

a Property to enable or disable this output.

getEnabled

abstract @NonNull Property<@NonNull BooleangetEnabled()

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

Returns
@NonNull Property<@NonNull Boolean>

a Property to enable or disable this output.

getVersionCode

abstract @NonNull Property<IntegergetVersionCode()

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.

getVersionName

abstract @NonNull Property<StringgetVersionName()

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.