45 lines
1.3 KiB
Kotlin
45 lines
1.3 KiB
Kotlin
plugins {
|
|||
|
|
id("com.android.test")
|
||
|
|
id("org.jetbrains.kotlin.android")
|
||
|
|
}
|
||
|
|
|
||
|
|
android {
|
||
|
|
namespace = "com.ponzischeme89.memby.benchmark"
|
||
|
|
compileSdk = 35
|
||
|
|
|
||
|
|
defaultConfig {
|
||
|
|
minSdk = 23
|
||
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||
|
|
testInstrumentationRunnerArguments["androidx.benchmark.enabledRules"] = "Macrobenchmark"
|
||
|
|
// The target is the current debug build for Phase 1 only. Results are labelled
|
||
|
|
// debug-influenced; a release benchmark variant will be added before Phase 2.
|
||
|
|
testInstrumentationRunnerArguments["androidx.benchmark.suppressErrors"] = "DEBUGGABLE"
|
||
|
|
}
|
||
|
|
targetProjectPath = ":app"
|
||
|
|
experimentalProperties["android.experimental.self-instrumenting"] = true
|
||
|
|
|
||
|
|
compileOptions {
|
||
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
||
|
|
targetCompatibility = JavaVersion.VERSION_17
|
||
|
|
}
|
||
|
|
|
||
|
|
buildTypes {
|
||
|
|
create("release") {
|
||
|
|
initWith(getByName("debug"))
|
||
|
|
isDebuggable = false
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
kotlin {
|
||
|
|
compilerOptions {
|
||
|
|
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
dependencies {
|
||
|
|
implementation("androidx.benchmark:benchmark-macro-junit4:1.2.4")
|
||
|
|
implementation("androidx.test.ext:junit:1.2.1")
|
||
|
|
implementation("androidx.test:runner:1.6.2")
|
||
|
|
}
|