Stay organized with collections
Save and categorize content based on your preferences.
DependencyVariantSelection
@Incubating interface DependencyVariantSelection
Specifies options for doing variant selection for external Android dependencies based on build types and product flavours
Summary
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.
|
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.
|
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.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# DependencyVariantSelection\n==========================\n\n\n```\n@Incubating interface DependencyVariantSelection\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nSpecifies options for doing variant selection for external Android dependencies based on build types and product flavours\n\nSummary\n-------\n\n| ### Public properties ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ListProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/ListProperty.html)`\u003c`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`\u003e` | [buildTypes](/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. |\n| [MapProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/MapProperty.html)`\u003c`[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)`\u003c`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`\u003e\u003e` | [productFlavors](/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. |\n\nPublic properties\n-----------------\n\n### buildTypes\n\n```\nval buildTypes: ListProperty\u003cString\u003e\n```\n\nSpecifies a list of build types that the plugin should try to use when a direct variant match with a dependency is not possible. \n\n### productFlavors\n\n```\nval productFlavors: MapProperty\u003cString, List\u003cString\u003e\u003e\n```\n\nSpecifies a map of product flavors that the plugin should try to use when a direct variant match with a dependency is not possible."]]