mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-14 06:22:49 +01:00
2b5d9fd76b
* Move shared configuration to subprojects in root Gradle file * Missed but not forgotten * Review changes
40 lines
1.0 KiB
Plaintext
40 lines
1.0 KiB
Plaintext
plugins {
|
|
id("com.android.test")
|
|
kotlin("android")
|
|
}
|
|
|
|
android {
|
|
namespace = "tachiyomi.macrobenchmark"
|
|
|
|
defaultConfig {
|
|
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 = ":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"
|
|
}
|
|
}
|