# DependencyVariantSelection

# DependencyVariantSelection

<br />

```
@Incubating interface DependencyVariantSelection
```

<br />

*** ** * ** ***

Specifies options for doing variant selection for external Android dependencies based on build types and product flavours

## Summary

|                                                                                                                                                                                                                                                                                                                      ### Public properties                                                                                                                                                                                                                                                                                                                      ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ListProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/ListProperty.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>`                                                                                                                                                                               | [buildTypes](https://developer.android.com/reference/tools/gradle-api/8.2/com/android/build/api/dsl/DependencyVariantSelection#buildTypes()) Specifies a list of build types that the plugin should try to use when a direct variant match with a dependency is not possible.            |
| [MapProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/MapProperty.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>>` | [productFlavors](https://developer.android.com/reference/tools/gradle-api/8.2/com/android/build/api/dsl/DependencyVariantSelection#productFlavors()) Specifies a map of product flavors that the plugin should try to use when a direct variant match with a dependency is not possible. |

## Public properties

### buildTypes

```
val buildTypes: 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.  

### productFlavors

```
val productFlavors: MapProperty<String, List<String>>
```

Specifies a map of product flavors that the plugin should try to use when a direct variant match with a dependency is not possible.