# DependencyVariantSelection

[View Source](https://cs.android.com/search?q=file:com/android/build/api/dsl/DependencyVariantSelection.kt+class:com.android.build.api.dsl.DependencyVariantSelection)  
Added in 8.2.0  
Deprecated in 8.13.2  

<br />

```
@Incubating
interface DependencyVariantSelection
```

<br />

*** ** * ** ***

| **This interface is deprecated.**   
| Replaced by LocalDependencySelection

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

## 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.13/com/android/build/api/dsl/DependencyVariantSelection#buildTypes()) **This property is deprecated.**Replaced by LocalDependencySelection.selectBuildTypeFrom            |
| [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.13/com/android/build/api/dsl/DependencyVariantSelection#productFlavors()) **This property is deprecated.**Replaced by LocalDependencySelection.productFlavorDimension |

## Public properties

### buildTypes

Added in 8.2.0  
Deprecated in 8.13.2  

```
val buildTypes: ListProperty<String>
```
| **This property is deprecated.**   
| Replaced by LocalDependencySelection.selectBuildTypeFrom

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 "debug"  

### productFlavors

Added in 8.2.0  
Deprecated in 8.13.2  

```
val productFlavors: MapProperty<String, List<String>>
```
| **This property is deprecated.**   
| Replaced by LocalDependencySelection.productFlavorDimension

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