From fd5617becfad9c875b4e89a85454a04c5bc2b443 Mon Sep 17 00:00:00 2001 From: Thomas Kioko Date: Thu, 5 Dec 2024 15:04:23 +0100 Subject: [PATCH] Cleanup dependency configuration. - Remove redundant dependencies from shared module by relying on transitive dependencies through presenter modules --- shared/build.gradle.kts | 105 ++++++++++++++++++---------------------- 1 file changed, 48 insertions(+), 57 deletions(-) diff --git a/shared/build.gradle.kts b/shared/build.gradle.kts index e5391d989..7c74608cd 100644 --- a/shared/build.gradle.kts +++ b/shared/build.gradle.kts @@ -28,7 +28,7 @@ kotlin { isStatic = !debuggable linkerOpts.add("-lsqlite3") - freeCompilerArgs += "-Xadd-light-debug=enable" + freeCompilerArgs += if (debuggable) "-Xadd-light-debug=enable" else "" export(projects.navigation.api) export(projects.datastore.api) @@ -52,61 +52,7 @@ kotlin { sourceSets { commonMain { dependencies { - api(projects.core.base) - api(projects.core.networkUtil) - api(projects.core.util) - api(projects.core.logger) - - api(projects.data.cast.api) - api(projects.data.cast.implementation) - api(projects.data.episodes.api) - api(projects.data.episodes.implementation) - api(projects.data.featuredshows.api) - api(projects.data.featuredshows.implementation) - api(projects.data.library.api) - api(projects.data.library.implementation) - api(projects.data.popularshows.api) - api(projects.data.popularshows.implementation) - api(projects.data.recommendedshows.api) - api(projects.data.recommendedshows.implementation) - api(projects.data.requestManager.api) - api(projects.data.requestManager.implementation) - api(projects.data.seasondetails.api) - api(projects.data.seasondetails.implementation) - api(projects.data.search.api) - api(projects.data.search.implementation) - api(projects.data.seasons.api) - api(projects.data.seasons.implementation) - api(projects.data.showdetails.api) - api(projects.data.showdetails.implementation) - api(projects.data.shows.api) - api(projects.data.shows.implementation) - api(projects.data.similar.api) - api(projects.data.similar.implementation) - api(projects.data.topratedshows.api) - api(projects.data.topratedshows.implementation) - api(projects.data.trailers.api) - api(projects.data.trailers.implementation) - api(projects.data.trendingshows.api) - api(projects.data.trendingshows.implementation) - api(projects.data.upcomingshows.api) - api(projects.data.upcomingshows.implementation) - api(projects.data.watchproviders.api) - api(projects.data.watchproviders.implementation) - - api(projects.database) - api(projects.datastore.api) - api(projects.datastore.implementation) - api(projects.tmdbApi.api) - api(projects.tmdbApi.implementation) - api(projects.traktApi.api) - api(projects.traktApi.implementation) - api(projects.traktAuth.api) - api(projects.traktAuth.implementation) - api(projects.navigation.api) - api(projects.navigation.implementation) - api(projects.presenter.discover) api(projects.presenter.library) api(projects.presenter.home) @@ -117,8 +63,53 @@ kotlin { api(projects.presenter.showDetails) api(projects.presenter.trailers) - api(libs.decompose.decompose) - api(libs.essenty.lifecycle) + implementation(projects.data.cast.api) + implementation(projects.data.cast.implementation) + implementation(projects.data.episodes.api) + implementation(projects.data.episodes.implementation) + implementation(projects.data.featuredshows.api) + implementation(projects.data.featuredshows.implementation) + implementation(projects.data.library.api) + implementation(projects.data.library.implementation) + implementation(projects.data.popularshows.api) + implementation(projects.data.popularshows.implementation) + implementation(projects.data.recommendedshows.api) + implementation(projects.data.recommendedshows.implementation) + implementation(projects.data.requestManager.api) + implementation(projects.data.requestManager.implementation) + implementation(projects.data.seasondetails.api) + implementation(projects.data.seasondetails.implementation) + implementation(projects.data.search.api) + implementation(projects.data.search.implementation) + implementation(projects.data.seasons.api) + implementation(projects.data.seasons.implementation) + implementation(projects.data.showdetails.api) + implementation(projects.data.showdetails.implementation) + implementation(projects.data.shows.api) + implementation(projects.data.shows.implementation) + implementation(projects.data.similar.api) + implementation(projects.data.similar.implementation) + implementation(projects.data.topratedshows.api) + implementation(projects.data.topratedshows.implementation) + implementation(projects.data.trailers.api) + implementation(projects.data.trailers.implementation) + implementation(projects.data.trendingshows.api) + implementation(projects.data.trendingshows.implementation) + implementation(projects.data.upcomingshows.api) + implementation(projects.data.upcomingshows.implementation) + implementation(projects.data.watchproviders.api) + implementation(projects.data.watchproviders.implementation) + + implementation(projects.datastore.api) + implementation(projects.datastore.implementation) + implementation(projects.tmdbApi.api) + implementation(projects.tmdbApi.implementation) + implementation(projects.traktApi.api) + implementation(projects.traktApi.implementation) + implementation(projects.traktAuth.api) + implementation(projects.traktAuth.implementation) + + implementation(projects.navigation.implementation) implementation(libs.bundles.kotlinInject) }