Update build.gradle
This commit is contained in:
parent
7c89ee09bd
commit
fadaeed1f6
1 changed files with 5 additions and 1 deletions
|
@ -31,6 +31,7 @@ task printc {
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 27
|
compileSdkVersion 27
|
||||||
buildToolsVersion "27.0.3"
|
buildToolsVersion "27.0.3"
|
||||||
|
project.ext.set("osmandAbiFilter", "")
|
||||||
|
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
development {
|
development {
|
||||||
|
@ -111,18 +112,21 @@ android {
|
||||||
productFlavors {
|
productFlavors {
|
||||||
// ABI
|
// ABI
|
||||||
armv7 {
|
armv7 {
|
||||||
|
osmandAbiFilter 'armv7'
|
||||||
dimension "abi"
|
dimension "abi"
|
||||||
ndk {
|
ndk {
|
||||||
abiFilter 'armeabi-v7a'
|
abiFilter 'armeabi-v7a'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
arm64 {
|
arm64 {
|
||||||
|
osmandAbiFilter 'arm64'
|
||||||
dimension "abi"
|
dimension "abi"
|
||||||
ndk {
|
ndk {
|
||||||
abiFilter 'arm64-v8a'
|
abiFilter 'arm64-v8a'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
x86 {
|
x86 {
|
||||||
|
osmandAbiFilter 'x86'
|
||||||
dimension "abi"
|
dimension "abi"
|
||||||
ndk {
|
ndk {
|
||||||
abiFilter 'x86'
|
abiFilter 'x86'
|
||||||
|
@ -302,7 +306,7 @@ task buildOsmAndCore(type: Exec) {
|
||||||
description "Build Legacy OsmAndCore"
|
description "Build Legacy OsmAndCore"
|
||||||
|
|
||||||
if (!Os.isFamily(Os.FAMILY_WINDOWS)) {
|
if (!Os.isFamily(Os.FAMILY_WINDOWS)) {
|
||||||
commandLine "bash", file("./old-ndk-build.sh").getAbsolutePath()
|
commandLine "bash", file("./old-ndk-build.sh").getAbsolutePath(), project.ext.get('osmandAbiFilter')
|
||||||
} else {
|
} else {
|
||||||
commandLine "cmd", "/c", "echo", "Not supported"
|
commandLine "cmd", "/c", "echo", "Not supported"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue