Remove unnecessary script

This commit is contained in:
Victor Shcherb 2020-04-21 16:57:43 +02:00
parent 7273372040
commit 67eb1cfc8d
3 changed files with 26 additions and 11 deletions

7
OsmAnd/.gitignore vendored
View file

@ -27,6 +27,13 @@ res/drawable-large/widget_*
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_*
valgrind/
bin/
dist/

View file

@ -362,13 +362,25 @@ task copyPoiCategiry(type: Copy) {
task copyStyleIcons(type: Copy) {
from "../../resources/rendering_styles/style-icons/"
into "res/"
include "**/*.png"
includes ["**/*.png", "**/*.xml"]
}
task copyWidgetIcons(type: Exec) {
if (!Os.isFamily(Os.FAMILY_WINDOWS)) {
commandLine 'sh', file("./copy_widget_icons.sh").getAbsolutePath()
}
task copyWidgetIconsXhdpi(type: Copy) {
from "res/drawable-xxhdpi/"
into "res/drawable-large-hxdpi/"
includes ["**/widget_*.png", "**/widget_*.xml", "**/map_*.xml", "**/map_*.png"]
}
task copyWidgetIconsHdpi(type: Copy) {
from "res/drawable-xhdpi/"
into "res/drawable-large-hdpi/"
includes ["**/widget_*.png", "**/widget_*.xml", "**/map_*.xml", "**/map_*.png"]
}
task copyWidgetIcons(type: Copy) {
from "res/drawable-hdpi/"
into "res/drawable-large/"
includes ["**/widget_*.png", "**/widget_*.xml", "**/map_*.xml", "**/map_*.png"]
}
task collectExternalResources {
@ -380,6 +392,8 @@ task collectExternalResources {
updateNoTranslate,
validateTranslate,
copyWidgetIcons,
copyWidgetIconsHdpi,
copyWidgetIconsXhdpi,
copyPoiCategiry,
downloadWorldMiniBasemap

View file

@ -1,6 +0,0 @@
cp -f res/drawable-hdpi/widget_* res/drawable-large/
cp -f res/drawable-xxhdpi/widget_* res/drawable-large-hdpi/
cp -f res/drawable-xhdpi/widget_* res/drawable-large-xhdpi/
cp -f res/drawable-hdpi/map_* res/drawable-large/
cp -f res/drawable-xhdpi/map_* res/drawable-large-hdpi/
cp -f res/drawable-xxhdpi/map_* res/drawable-large-xhdpi/