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 |
---|---|
BaseVariant |
createVariantApi(BaseVariantData<? extends BaseVariantOutputData> variantData, ReadOnlyObjectProvider readOnlyObjectProvider) |
T |
createVariantData(GradleVariantConfiguration variantConfiguration, Set<String> densities, Set<String> abi, Set<String> compatibleScreens, TaskManager taskManager) |
VariantType |
getVariantConfigurationType() |
boolean |
isLibrary() |
void |
validateModel(VariantModel model) Fail if the model is configured incorrectly. |
Fail if the model is configured incorrectly.
model
- the non-null model to validate, as implemented by the VariantManager.