mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-13 22:57:05 +05:30
43 lines
1.3 KiB
Kotlin
43 lines
1.3 KiB
Kotlin
/*
|
|
* Copyright © 2022 Harsh Shandilya.
|
|
* Use of this source code is governed by an MIT-style
|
|
* license that can be found in the LICENSE file or at
|
|
* https://opensource.org/licenses/MIT.
|
|
*/
|
|
@file:Suppress("DSL_SCOPE_VIOLATION", "UnstableApiUsage")
|
|
|
|
plugins {
|
|
alias(libs.plugins.android.test)
|
|
id("dev.msfjarvis.claw.android-common")
|
|
id("dev.msfjarvis.claw.kotlin-android")
|
|
}
|
|
|
|
android {
|
|
namespace = "dev.msfjarvis.claw.benchmark"
|
|
|
|
defaultConfig { testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" }
|
|
|
|
buildTypes {
|
|
create("benchmark") {
|
|
isDebuggable = true
|
|
signingConfig = signingConfigs["debug"]
|
|
matchingFallbacks += "release"
|
|
}
|
|
}
|
|
|
|
targetProjectPath = ":android"
|
|
experimentalProperties["android.experimental.self-instrumenting"] = true
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.androidx.benchmark.macro.junit4)
|
|
implementation(libs.androidx.profileinstaller)
|
|
implementation(libs.androidx.test.core)
|
|
implementation(libs.androidx.test.espresso.core)
|
|
implementation(libs.androidx.test.ext.junit)
|
|
implementation(libs.androidx.test.rules)
|
|
implementation(libs.androidx.test.runner)
|
|
implementation(libs.androidx.test.uiautomator)
|
|
}
|
|
|
|
androidComponents { beforeVariants(selector().all()) { it.enable = it.buildType == "benchmark" } }
|