mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
[android] Fix Windows builds
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'com.android.library'
|
id 'com.android.library'
|
||||||
}
|
}
|
||||||
@@ -105,8 +107,6 @@ android {
|
|||||||
disable 'MissingTranslation'
|
disable 'MissingTranslation'
|
||||||
// https://github.com/organicmaps/organicmaps/issues/3551
|
// https://github.com/organicmaps/organicmaps/issues/3551
|
||||||
disable 'MissingQuantity', 'UnusedQuantity'
|
disable 'MissingQuantity', 'UnusedQuantity'
|
||||||
// https://github.com/organicmaps/organicmaps/issues/3550
|
|
||||||
disable 'ByteOrderMark'
|
|
||||||
// https://github.com/organicmaps/organicmaps/issues/1077
|
// https://github.com/organicmaps/organicmaps/issues/1077
|
||||||
disable 'CustomSplashScreen'
|
disable 'CustomSplashScreen'
|
||||||
// https://github.com/organicmaps/organicmaps/issues/3610
|
// https://github.com/organicmaps/organicmaps/issues/3610
|
||||||
@@ -149,11 +149,14 @@ project.afterEvaluate {
|
|||||||
exec {
|
exec {
|
||||||
workingDir '../..'
|
workingDir '../..'
|
||||||
|
|
||||||
|
def isWindows = DefaultNativePlatform.getCurrentOperatingSystem().isWindows()
|
||||||
|
def bash = isWindows ? 'C:/Program Files/Git/bin/bash.exe' : 'bash'
|
||||||
|
|
||||||
if (!taskName.toString().contains('Google')) {
|
if (!taskName.toString().contains('Google')) {
|
||||||
environment 'SKIP_MAP_DOWNLOAD', '1'
|
environment 'SKIP_MAP_DOWNLOAD', '1'
|
||||||
}
|
}
|
||||||
|
|
||||||
commandLine './configure.sh'
|
commandLine bash, './configure.sh'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user