From e8b4571becdd8fd5c25ef12965ae372706e87529 Mon Sep 17 00:00:00 2001 From: andreykovalev Date: Mon, 15 Apr 2024 17:49:30 +0100 Subject: [PATCH] Configure dependencyAnalysis for all projects --- build.gradle.kts | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 8cbfba434..b925251af 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -32,12 +32,37 @@ dependencyAnalysis { // Needed for compose '@Preview'. The annotation is actually within // androidx.compose.ui:ui-tooling-preview, hence the need to exclude. "androidx.compose.ui:ui-tooling", + "androidx.test.ext:junit", // This is used to add the testing activity to the debug manifest // However since not code is referenced, it is raised as unused. - ":libraries:testing-ui-activity" + ":libraries:testing-ui-activity", + ":libraries:testing-ui" ) } + onRuntimeOnly { + exclude("org.jetbrains.kotlinx:kotlinx-coroutines-android") + } + } + project(":libraries:interop-ribs") { + onAny { + severity("ignore") + } + } + project(":samples:app") { + onAny { + severity("ignore") + } + } + project(":samples:navigation-compose") { + onAny { + severity("ignore") + } + } + project(":samples:sandbox") { + onAny { + severity("ignore") + } } project(":libraries:testing-junit4") { onUnusedDependencies {