Stay organized with collections Save and categorize content based on your preferences.

MultipleVariants

interface MultipleVariants : PublishingOptions
com.android.build.api.dsl.MultipleVariants

Multi variant publishing options.

Summary

Public methods

abstract Unit

Publish all the variants to the component.

abstract Unit
includeBuildTypeValues(vararg buildTypes: String)

Publish variants to the component based on the specified build types.

abstract Unit
includeFlavorDimensionAndValues(dimension: String, vararg values: String)

Publish variants to the component based on the specified product flavor dimension and values.

Inherited functions

Public methods

allVariants

abstract fun allVariants(): Unit

Publish all the variants to the component.

includeBuildTypeValues

abstract fun includeBuildTypeValues(vararg buildTypes: String): Unit

Publish variants to the component based on the specified build types.

includeFlavorDimensionAndValues

abstract fun includeFlavorDimensionAndValues(
    dimension: String,
    vararg values: String
): Unit

Publish variants to the component based on the specified product flavor dimension and values.