From c25f843ff38e1cda3f1d9bd19c112a33c8486e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Muller?= Date: Fri, 23 Feb 2024 09:16:18 +0100 Subject: [PATCH] Ignore false warning --- build.gradle.kts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index a4e1981ed..f7cc0e466 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -101,6 +101,20 @@ dependencyAnalysis { } } + project(":pillarbox-demo") { + onUnusedDependencies { + // This dependency is not used directly, but required to have previews in Android Studio + exclude(libs.androidx.compose.ui.tooling.asProvider()) + } + } + + project(":pillarbox-demo-tv") { + onUnusedDependencies { + // This dependency is not used directly, but required to have previews in Android Studio + exclude(libs.androidx.compose.ui.tooling.asProvider()) + } + } + project(":pillarbox-player") { onUnusedDependencies { // These dependencies are not used directly, but automatically used by libs.androidx.media3.exoplayer @@ -109,5 +123,12 @@ dependencyAnalysis { exclude(libs.mockk.android) } } + + project(":pillarbox-ui") { + onUnusedDependencies { + // This dependency is not used directly, but required to have previews in Android Studio + exclude(libs.androidx.compose.ui.tooling.asProvider()) + } + } } }