Files
uitron/benchmark/build.gradle
2023-09-25 01:17:35 +05:30

55 lines
1.5 KiB
Groovy

plugins {
id 'com.android.test'
id 'org.jetbrains.kotlin.android'
}
android {
namespace 'com.navi.uitron.benchmark'
compileSdk 34
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
defaultConfig {
minSdk 24
targetSdk 33
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
// This benchmark buildType is used for benchmarking, and should function like your
// release build (for example, with minification on). It's signed with a debug key
// for easy local/CI testing.
benchmark {
debuggable = true
minifyEnabled true
shrinkResources true
signingConfig = signingConfigs.getByName("debug")
matchingFallbacks.add("release")
}
}
targetProjectPath = ":app"
experimentalProperties["android.experimental.self-instrumenting"] = true
}
dependencies {
implementation 'androidx.test.ext:junit:1.1.5'
implementation 'androidx.test.espresso:espresso-core:3.5.1'
implementation 'androidx.test.uiautomator:uiautomator:2.2.0'
implementation 'androidx.benchmark:benchmark-macro-junit4:1.1.1'
implementation "androidx.benchmark:benchmark-junit4:1.1.1"
}
androidComponents {
beforeVariants(selector().all()) {
enable = buildType == "benchmark"
}
}