use of com.android.tools.idea.gradle.project.model.NdkModuleModel.NdkVariant in project android by JetBrains.
the class BuildVariantUpdater method updateSelectedVariant.
private static boolean updateSelectedVariant(@NotNull NdkFacet ndkFacet, @NotNull NdkModuleModel ndkModuleModel, @NotNull String variantToSelect) {
NdkVariant selectedVariant = ndkModuleModel.getSelectedVariant();
if (variantToSelect.equals(selectedVariant.getName())) {
return false;
}
ndkModuleModel.setSelectedVariantName(variantToSelect);
ndkFacet.getConfiguration().SELECTED_BUILD_VARIANT = ndkModuleModel.getSelectedVariant().getName();
setUpModule(ndkFacet.getModule(), ndkModuleModel);
// TODO: Also update the dependent modules variants.
return true;
}
Aggregations