public class VariantManager extends Object
Class to create, manage variants.
| Modifiers | Name | Description | 
|---|---|---|
protected static String  | 
                            COM_ANDROID_SUPPORT_MULTIDEX | 
                            
| Constructor and description | 
|---|
                                VariantManager
                                (org.gradle.api.Project project, BasePlugin basePlugin, BaseExtension extension, VariantFactory variantFactory) | 
                        
| Type | Name and description | 
|---|---|
void | 
                            addBuildType(BuildType buildType)Adds new BuildType, creating a BuildTypeData, and the associated source set, and adding it to the map.  | 
                        
void | 
                            addProductFlavor(GroupableProductFlavor productFlavor)Adds a new ProductFlavor, creating a ProductFlavorData and associated source sets, and adding it to the map.  | 
                        
void | 
                            addSigningConfig(SigningConfig signingConfig) | 
                        
void | 
                            createAndroidTasks(com.android.builder.model.SigningConfig signingOverride)Task creation entry point.  | 
                        
void | 
                            createTasksForVariantData(org.gradle.api.tasks.TaskContainer tasks, BaseVariantData variantData)Create tasks for the specified variantData.  | 
                        
TestVariantData | 
                            createTestVariantData(BaseVariantData testedVariantData, com.android.builder.model.SigningConfig signingOverride)Create a TestVariantData for the specified testedVariantData.  | 
                        
BaseVariantData<? extends BaseVariantOutputData> | 
                            createVariantData(com.android.builder.model.BuildType buildType, List<GroupableProductFlavor> productFlavorList, com.android.builder.model.SigningConfig signingOverride)Create a VariantData for a specific combination of BuildType and GroupableProductFlavor list.  | 
                        
Map<String, BuildTypeData> | 
                            getBuildTypes() | 
                        
ProductFlavorData<ProductFlavor> | 
                            getDefaultConfig() | 
                        
Map<String, ProductFlavorData<GroupableProductFlavor>> | 
                            getProductFlavors() | 
                        
Map<String, SigningConfig> | 
                            getSigningConfigs() | 
                        
List<BaseVariantData<? extends BaseVariantOutputData>> | 
                            getVariantDataList()Return a list of all created VariantData.  | 
                        
void | 
                            populateVariantDataList(com.android.builder.model.SigningConfig signingOverride)Create all variants.  | 
                        
Adds new BuildType, creating a BuildTypeData, and the associated source set, and adding it to the map.
buildType -  the build type.Adds a new ProductFlavor, creating a ProductFlavorData and associated source sets, and adding it to the map.
productFlavor -  the product flavorTask creation entry point.
Create tasks for the specified variantData.
Create a TestVariantData for the specified testedVariantData.
Create a VariantData for a specific combination of BuildType and GroupableProductFlavor list.
Return a list of all created VariantData.
Create all variants.
signingOverride -  a signing override. Generally driven through the IDE.