1plugins {
2    id("AndroidXPlugin")
3    id("com.android.test")
4    id("org.jetbrains.kotlin.android")
5}
6
7android {
8    defaultConfig {
9        minSdk = 23
10    }
11    testOptions {
12        animationsDisabled = false
13    }
14    namespace = "androidx.compose.material3.integration.macrobenchmark"
15    targetProjectPath = ":compose:material3:integration-tests:macrobenchmark-target"
16    experimentalProperties["android.experimental.self-instrumenting"] = true
17}
18
19// Create a release build type and make sure it's the only one enabled.
20// This is needed because we benchmark the release build type only.
21android.buildTypes { release {} }
22androidComponents { beforeVariants(selector().all()) { enabled = buildType == 'release' } }
23
24dependencies {
25    implementation(project(":benchmark:benchmark-junit4"))
26    implementation(project(":benchmark:benchmark-macro-junit4"))
27    implementation(project(":internal-testutils-macrobenchmark"))
28    implementation(libs.testRules)
29    implementation(libs.testExtJunit)
30    implementation(libs.testCore)
31    implementation(libs.testRunner)
32    implementation(libs.testUiautomator)
33}