DependencySelection

Added in 8.12.0-alpha09

interface DependencySelection


Specifies options for doing Gradle variant selection for external Android dependencies based on build types and product flavors.

Summary

Public functions

Unit
productFlavorDimension(
    dimension: String,
    action: Action<ProductFlavorDimensionSpec>
)

Configures a single product flavor dimension that the plugin should try to use when a direct variant match with a dependency is not possible.

Public properties

ListProperty<String>

Specifies a list of build types that the plugin should try to use when a direct variant match with a dependency is not possible.

Public functions

productFlavorDimension

Added in 8.12.0-alpha09
fun productFlavorDimension(
    dimension: String,
    action: Action<ProductFlavorDimensionSpec>
): Unit

Configures a single product flavor dimension that the plugin should try to use when a direct variant match with a dependency is not possible.

Public properties

selectBuildTypeFrom

Added in 8.12.0-alpha09
val selectBuildTypeFromListProperty<String>

Specifies a list of build types that the plugin should try to use when a direct variant match with a dependency is not possible.

If the list is left empty, the default variant for the dependencies being consumed will be of build type "release"

If you want to preserve the default value use selectBuildTypeFrom.add() and if you would like to set your own list of build types use selectBuildTypeFrom.set()