TachiyomiSY-Plus/macrobenchmark/build.gradle.kts
arkon 589dddcc4a Update benchmarking dependencies
(cherry picked from commit 5718983f417f1fe3eec9b484951e3277ac241370)

# Conflicts:
#	app/build.gradle.kts
#	app/src/main/baseline-prof.txt
#	gradle/androidx.versions.toml
#	macrobenchmark/src/main/java/tachiyomi/macrobenchmark/BaselineProfileGenerator.kt
2023-08-12 16:38:32 -04:00

41 lines
1.1 KiB
Plaintext

plugins {
id("com.android.test")
kotlin("android")
}
android {
namespace = "tachiyomi.macrobenchmark"
defaultConfig {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments["androidx.benchmark.enabledRules"] = "BaselineProfile"
}
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.add("release")
}
}
targetProjectPath = ":app"
experimentalProperties["android.experimental.self-instrumenting"] = true
}
dependencies {
implementation(androidx.test.ext)
implementation(androidx.test.espresso.core)
implementation(androidx.test.uiautomator)
implementation(androidx.benchmark.macro)
}
androidComponents {
beforeVariants(selector().all()) {
it.enable = it.buildType == "benchmark"
}
}