51 lines
1.2 KiB
Groovy
51 lines
1.2 KiB
Groovy
plugins {
|
|
alias libs.plugins.android.test
|
|
alias libs.plugins.kotlin.android
|
|
}
|
|
|
|
android {
|
|
namespace 'com.navi.uitron.benchmark'
|
|
compileSdk 34
|
|
|
|
defaultConfig {
|
|
minSdk 23
|
|
targetSdk 34
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
benchmark {
|
|
debuggable true
|
|
minifyEnabled true
|
|
shrinkResources true
|
|
signingConfig = signingConfigs.getByName("debug")
|
|
matchingFallbacks.add("release")
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '17'
|
|
}
|
|
|
|
targetProjectPath = ":app"
|
|
experimentalProperties["android.experimental.self-instrumenting"] = true
|
|
}
|
|
|
|
dependencies {
|
|
implementation libs.androidx.benchmark.junit4
|
|
implementation libs.androidx.benchmark.macroJunit4
|
|
implementation libs.androidx.test.espresso.core
|
|
implementation libs.androidx.test.junit
|
|
implementation libs.androidx.uiautomator
|
|
}
|
|
|
|
androidComponents {
|
|
beforeVariants(selector().all()) {
|
|
enable = buildType == "benchmark"
|
|
}
|
|
}
|