Files
MapLibreParticleLab/benchmark/android/app/build.gradle
Bart Louwers 02b6988001 Release MapLibre Android 12.0.0 (#3853)
Co-authored-by: Chris Galvan <chgalvan@amazon.com>
2025-10-01 20:15:11 +00:00

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'
}