VariantSelector
interface VariantSelector
Selector to reduce the number of variants that are of interests when calling any of the variant API like AndroidComponentsExtension.beforeVariants.
Summary
| Public functions | |
|---|---|
| VariantSelector | all()Creates a  | 
| VariantSelector | withBuildType(buildType: String)Returns a new selector for  | 
| VariantSelector | withFlavor(flavorToDimension: Pair<String, String>)Returns a new selector for  | 
| VariantSelector | Returns a new selector for  | 
| VariantSelector | Returns a new selector for  | 
Public functions
all
fun all(): VariantSelector
Creates a VariantSelector of ComponentIdentity that includes all the variants for the current module.
| Returns | |
|---|---|
| VariantSelector | a  | 
withBuildType
fun withBuildType(buildType: String): VariantSelector
Returns a new selector for ComponentIdentity objects with a given build type.
| Parameters | |
|---|---|
| buildType: String | Build type to filter  | 
| Returns | |
|---|---|
| VariantSelector | An instance of  | 
withFlavor
fun withFlavor(flavorToDimension: Pair<String, String>): VariantSelector
Returns a new selector for ComponentIdentity objects with a given (dimension, flavorName).
| Parameters | |
|---|---|
| flavorToDimension: Pair<String, String> | Dimension and flavor to filter  | 
| Returns | |
|---|---|
| VariantSelector | 
 | 
withName
fun withName(pattern: Pattern): VariantSelector
Returns a new selector for ComponentIdentity  objects with a given name pattern.
| Parameters | |
|---|---|
| pattern: Pattern | 
 | 
withName
fun withName(name: String): VariantSelector
Returns a new selector for ComponentIdentity  objects with a given name.
| Parameters | |
|---|---|
| name: String | 
 | 
