diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index 2358cc2..5a575d5 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -86,6 +86,17 @@ android { } } +// Unit tests run against the debug variant only. The Compose test activity comes +// from `ui-test-manifest`, a debug-only dependency, so the release variant's merged +// manifest has no activity for `createComposeRule` to launch. The test sources are +// variant-agnostic, so running them once (on debug) covers the same ground without +// shipping a test activity in the release manifest. +androidComponents { + beforeVariants(selector().withBuildType("release")) { variant -> + variant.enableUnitTest = false + } +} + dependencies { implementation(libs.androidx.core.ktx) implementation(libs.androidx.activity.compose)