32 lines
851 B
Kotlin
32 lines
851 B
Kotlin
plugins {
|
|
alias(libs.plugins.android.test)
|
|
alias(libs.plugins.androidx.baselineprofile)
|
|
}
|
|
|
|
// Generates the app's baseline profile on a connected device (the test TV, logged in):
|
|
// ./gradlew :app:generateReleaseBaselineProfile
|
|
android {
|
|
namespace = "ru.stenfredd.movies.baselineprofile"
|
|
compileSdk = 37
|
|
defaultConfig {
|
|
minSdk = 28
|
|
targetSdk = 36
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
targetProjectPath = ":app"
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
}
|
|
|
|
baselineProfile {
|
|
useConnectedDevices = true
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.androidx.test.junit)
|
|
implementation(libs.androidx.uiautomator)
|
|
implementation(libs.androidx.benchmark.macro.junit4)
|
|
}
|