Interface for Variant Factory. While VariantManager is the general variant management, implementation of this interface provides variant type (app, lib) specific implementation.
Type | Name and description |
---|---|
void |
createTasks(BaseVariantData<?> variantData, org.gradle.api.Task assembleTask) Creates the tasks for a given BaseVariantData. |
BaseVariant |
createVariantApi(BaseVariantData<? extends BaseVariantOutputData> variantData, ReadOnlyObjectProvider readOnlyObjectProvider) |
T |
createVariantData(GradleVariantConfiguration variantConfiguration, Set<String> densities, Set<String> abi, Set<String> compatibleScreens) |
Type |
getVariantConfigurationType() |
boolean |
isLibrary() |
void |
validateModel(VariantModel model) Fail if the model is configured incorrectly. |
Creates the tasks for a given BaseVariantData.
variantData
- the non-null BaseVariantData.assembleTask
- an optional assembleTask to be used. If null, a new one is created.Fail if the model is configured incorrectly.
model
- the non-null model to validate, as implemented by the VariantManager.