Skip to content

Commit

Permalink
Cleanup dependency configuration.
Browse files Browse the repository at this point in the history
- Remove redundant dependencies from shared module by relying on transitive dependencies through presenter modules
  • Loading branch information
thomaskioko committed Dec 5, 2024
1 parent 1502e15 commit fd5617b
Showing 1 changed file with 48 additions and 57 deletions.
105 changes: 48 additions & 57 deletions shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
}
Expand Down

0 comments on commit fd5617b

Please sign in to comment.