Files
AndroidJetpack/telephoto/benchmark/runner/build.gradle.kts
T
coco 723ce1af5c a
2026-07-03 15:12:48 +08:00

44 lines
1.1 KiB
Kotlin

@file:Suppress("UnstableApiUsage")
plugins {
id("com.android.test")
id("org.jetbrains.kotlin.android")
}
android {
namespace = "me.saket.telephoto.benchmark"
compileSdk = libs.versions.compileSdk.get().toInt()
defaultConfig {
minSdk = 29
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.
create("benchmark") {
isDebuggable = true
signingConfig = getByName("debug").signingConfig
matchingFallbacks += listOf("release")
}
}
targetProjectPath = ":sample"
experimentalProperties["android.experimental.self-instrumenting"] = true
}
dependencies {
implementation(libs.androidx.test.junit)
implementation(libs.espresso.core)
implementation(libs.uiautomator)
implementation(libs.benchmark.macro.junit4)
}
androidComponents {
beforeVariants(selector().all()) {
it.enable = it.buildType == "benchmark"
}
}