A fully functional Android app built entirely with Kotlin and Jetpack Compose
Disable animations of instrumented tests (#1167)
Simon Marquisab9033421017
diff --git a/build-logic/convention/src/main/kotlin/AndroidApplicationConventionPlugin.kt b/build-logic/convention/src/main/kotlin/AndroidApplicationConventionPlugin.ktindex cd8bcfeb0..f4d5bb0d0 100644--- a/build-logic/convention/src/main/kotlin/AndroidApplicationConventionPlugin.kt+++ b/build-logic/convention/src/main/kotlin/AndroidApplicationConventionPlugin.kt@@ -39,6 +39,8 @@ class AndroidApplicationConventionPlugin : Plugin<Project> {extensions.configure<ApplicationExtension> {configureKotlinAndroid(this)defaultConfig.targetSdk = 34+ @Suppress("UnstableApiUsage")+ testOptions.animationsDisabled = trueconfigureGradleManagedDevices(this)}extensions.configure<ApplicationAndroidComponentsExtension> {diff --git a/build-logic/convention/src/main/kotlin/AndroidFeatureConventionPlugin.kt b/build-logic/convention/src/main/kotlin/AndroidFeatureConventionPlugin.ktindex b8699a05d..52c337521 100644--- a/build-logic/convention/src/main/kotlin/AndroidFeatureConventionPlugin.kt+++ b/build-logic/convention/src/main/kotlin/AndroidFeatureConventionPlugin.kt@@ -34,6 +34,7 @@ class AndroidFeatureConventionPlugin : Plugin<Project> {testInstrumentationRunner ="com.google.samples.apps.nowinandroid.core.testing.NiaTestRunner"}+ testOptions.animationsDisabled = trueconfigureGradleManagedDevices(this)}diff --git a/build-logic/convention/src/main/kotlin/AndroidLibraryConventionPlugin.kt b/build-logic/convention/src/main/kotlin/AndroidLibraryConventionPlugin.ktindex d442d94ef..be5b41d07 100644--- a/build-logic/convention/src/main/kotlin/AndroidLibraryConventionPlugin.kt+++ b/build-logic/convention/src/main/kotlin/AndroidLibraryConventionPlugin.kt@@ -40,6 +40,7 @@ class AndroidLibraryConventionPlugin : Plugin<Project> {extensions.configure<LibraryExtension> {configureKotlinAndroid(this)defaultConfig.targetSdk = 34+ testOptions.animationsDisabled = trueconfigureFlavors(this)configureGradleManagedDevices(this)// The resource prefix is derived from the module name,