2023-12-06 10:45:39 +08:00
|
|
|
import com.android.build.api.dsl.ManagedVirtualDevice
|
|
|
|
|
|
|
|
|
|
plugins {
|
2025-10-19 17:08:54 +07:00
|
|
|
alias(libs.plugins.android.test)
|
|
|
|
|
alias(libs.plugins.androidx.baselineprofile)
|
|
|
|
|
alias(libs.plugins.kotlin.android)
|
2023-12-06 10:45:39 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
namespace 'app.lawnchair.baseline'
|
|
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
targetProjectPath = ":"
|
|
|
|
|
|
2023-12-18 11:33:58 +08:00
|
|
|
flavorDimensions += ["app", "recents", "channel"]
|
2023-12-06 10:45:39 +08:00
|
|
|
productFlavors {
|
|
|
|
|
lawn { dimension = "app" }
|
|
|
|
|
withQuickstep { dimension = "recents" }
|
2023-12-18 11:33:58 +08:00
|
|
|
github { dimension = "channel" }
|
2025-11-25 07:59:42 +07:00
|
|
|
play { dimension = "channel" }
|
2023-12-06 10:45:39 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
testOptions.managedDevices.devices {
|
|
|
|
|
pixel6Api33(ManagedVirtualDevice) {
|
|
|
|
|
device = "Pixel 6"
|
|
|
|
|
apiLevel = 33
|
|
|
|
|
systemImageSource = "google"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// This is the configuration block for the Baseline Profile plugin.
|
|
|
|
|
// You can specify to run the generators on a managed devices or connected devices.
|
|
|
|
|
baselineProfile {
|
|
|
|
|
managedDevices += "pixel6Api33"
|
|
|
|
|
useConnectedDevices = false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
2025-10-19 17:08:54 +07:00
|
|
|
implementation libs.androidx.junit
|
|
|
|
|
implementation libs.androidx.espresso.core
|
|
|
|
|
implementation libs.androidx.uiautomator
|
|
|
|
|
implementation libs.androidx.benchmark.macro.junit4
|
2023-12-06 10:45:39 +08:00
|
|
|
}
|