57 lines
1.6 KiB
Groovy
57 lines
1.6 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
}
|
|
|
|
android {
|
|
ndkVersion androidSdkVersions.ndkVersion
|
|
|
|
defaultConfig {
|
|
applicationId = 'com.mapbox.mapboxsdk.maps.benchmark_runner'
|
|
compileSdk 34
|
|
minSdkVersion 23
|
|
targetSdkVersion 33
|
|
def abi = 'all'
|
|
if (project.hasProperty('maplibre.abis')) {
|
|
abi = project.getProperty('maplibre.abis')
|
|
}
|
|
ndk {
|
|
if (abi != 'all') {
|
|
abiFilters abi.split(' ')
|
|
} else {
|
|
abiFilters 'armeabi-v7a', 'x86', 'arm64-v8a', 'x86_64'
|
|
}
|
|
}
|
|
externalNativeBuild {
|
|
cmake {
|
|
arguments '-DANDROID_CCACHE=ccache'
|
|
arguments '-DANDROID_STL=c++_static'
|
|
arguments '-DMLN_WITH_OPENGL=ON'
|
|
targets 'mbgl-benchmark-runner'
|
|
}
|
|
}
|
|
android {
|
|
testBuildType 'release'
|
|
}
|
|
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
|
}
|
|
externalNativeBuild {
|
|
cmake {
|
|
version androidSdkVersions.cmakeVersion
|
|
path '../../../CMakeLists.txt'
|
|
}
|
|
}
|
|
buildTypes {
|
|
release {
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'androidx.appcompat:appcompat:1.5.1'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.4'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0'
|
|
androidTestImplementation 'androidx.test:rules:1.5.0'
|
|
}
|