Files
libsignal/java/android/benchmarks/build.gradle
Jordan Rose 47eae0d153 Don't strip libraries for the Android benchmarks
Otherwise, the Android Studio "profile" option is much less useful.
2025-06-23 14:10:27 -07:00

52 lines
1.3 KiB
Groovy

plugins {
id 'com.android.library' version '8.9.0'
id 'androidx.benchmark' version '1.1.1'
}
repositories {
google()
mavenCentral()
mavenLocal()
}
android {
compileSdk 34
defaultConfig {
minSdkVersion 21
targetSdkVersion 33
multiDexEnabled true
testInstrumentationRunner "androidx.benchmark.junit4.AndroidBenchmarkRunner"
// Uncomment this to build 32-bit-only benchmarks.
// (Gradle will still build a 64-bit libsignal,
// but it won't be included in the benchmark APK.)
// ndk {
// abiFilters 'armeabi-v7a'
// }
}
testBuildType "release"
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
namespace "org.signal.libsignal.benchmarks"
packagingOptions {
doNotStrip '**/*.so'
}
}
dependencies {
androidTestImplementation "androidx.test:runner:1.5.2"
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.benchmark:benchmark-junit4:1.2.3'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.6'
androidTestImplementation project(':android')
}