[build] Build Android release when running render tests

This commit is contained in:
Thiago Marcos P. Santos
2019-11-20 18:45:35 +02:00
parent a1243ac1ea
commit d6eeea1909
2 changed files with 15 additions and 6 deletions

View File

@@ -9,13 +9,13 @@ android {
targetSdkVersion 28
def abi = 'all'
if (project.hasProperty('mapbox.abis')) {
abi = project.getProperty("mapbox.abis")
abi = project.getProperty('mapbox.abis')
}
ndk {
if (abi != 'all') {
abiFilters abi.split(' ')
} else {
abiFilters "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
abiFilters 'armeabi-v7a', 'x86', 'arm64-v8a', 'x86_64'
}
}
externalNativeBuild {
@@ -25,7 +25,11 @@ android {
targets 'mbgl-render-test-runner'
}
}
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
android {
testBuildType 'release'
}
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
externalNativeBuild {
cmake {
@@ -33,6 +37,11 @@ android {
path '../../../next/CMakeLists.txt'
}
}
buildTypes {
release {
signingConfig signingConfigs.debug
}
}
}
dependencies {