LocalDependencySelection

Added in 8.12.0-alpha01

interface LocalDependencySelection


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

Note that this only affects dependency selection within this gradle project and does not affect the resolution of dependencies in other Gradle projects that depend on this project or the artifacts published from this project

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-alpha01
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-alpha01
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()