mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53: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 {
|
||||
id 'com.android.library'
|
||||
}
|
||||
@@ -105,8 +107,6 @@ android {
|
||||
disable 'MissingTranslation'
|
||||
// https://github.com/organicmaps/organicmaps/issues/3551
|
||||
disable 'MissingQuantity', 'UnusedQuantity'
|
||||
// https://github.com/organicmaps/organicmaps/issues/3550
|
||||
disable 'ByteOrderMark'
|
||||
// https://github.com/organicmaps/organicmaps/issues/1077
|
||||
disable 'CustomSplashScreen'
|
||||
// https://github.com/organicmaps/organicmaps/issues/3610
|
||||
@@ -149,11 +149,14 @@ project.afterEvaluate {
|
||||
exec {
|
||||
workingDir '../..'
|
||||
|
||||
def isWindows = DefaultNativePlatform.getCurrentOperatingSystem().isWindows()
|
||||
def bash = isWindows ? 'C:/Program Files/Git/bin/bash.exe' : 'bash'
|
||||
|
||||
if (!taskName.toString().contains('Google')) {
|
||||
environment 'SKIP_MAP_DOWNLOAD', '1'
|
||||
}
|
||||
|
||||
commandLine './configure.sh'
|
||||
commandLine bash, './configure.sh'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user