diff --git a/OsmAnd/.gitignore b/OsmAnd/.gitignore index d2b201e178..e3071e5fbf 100644 --- a/OsmAnd/.gitignore +++ b/OsmAnd/.gitignore @@ -28,11 +28,10 @@ res/drawable-large-hdpi/widget_* res/drawable-large-xhdpi/widget_* # rendering-styles/style-icons/ -res/drawable/mx_* -res/drawable-hdpi/mx_* -res/drawable-mdpi/mx_* -res/drawable-xhdpi/mx_* -res/drawable-xxhdpi/mx_* +h_* +g_* +mm_* +mx_* valgrind/ bin/ diff --git a/OsmAnd/build.gradle b/OsmAnd/build.gradle index 5a2212e790..4f649e8931 100644 --- a/OsmAnd/build.gradle +++ b/OsmAnd/build.gradle @@ -359,29 +359,45 @@ task copyPoiCategiry(type: Copy) { into "assets" } -task copyStyleIcons(type: Copy) { +task copyStyleIcons(type: Sync) { from "../../resources/rendering_styles/style-icons/" into "res/" include "**/*.png", "**/*.xml" + preserve { + include '**/*' + exclude "**/mx_*", "**/mm_*", "**/h_*" + } } -task copyWidgetIconsXhdpi(type: Copy) { +task copyWidgetIconsXhdpi(type: Sync) { from "res/drawable-xxhdpi/" into "res/drawable-large-xhdpi/" include "**/widget_*.png", "**/widget_*.xml", "**/map_*.xml", "**/map_*.png" + preserve { + include '*' + exclude "**/widget_*.png", "**/widget_*.xml", "**/map_*.xml", "**/map_*.png" + } } -task copyWidgetIconsHdpi(type: Copy) { +task copyWidgetIconsHdpi(type: Sync) { from "res/drawable-xhdpi/" into "res/drawable-large-hdpi/" include "**/widget_*.png", "**/widget_*.xml", "**/map_*.xml", "**/map_*.png" + preserve { + include '*' + exclude "**/widget_*.png", "**/widget_*.xml", "**/map_*.xml", "**/map_*.png" + } } -task copyWidgetIcons(type: Copy) { +task copyWidgetIcons(type: Sync) { from "res/drawable-hdpi/" into "res/drawable-large/" include "**/widget_*.png", "**/widget_*.xml", "**/map_*.xml", "**/map_*.png" + preserve { + include '*' + exclude "**/widget_*.png", "**/widget_*.xml", "**/map_*.xml", "**/map_*.png" + } } task collectExternalResources {