Skip to content

Commit

Permalink
core: Export Common project to Apple and Android from Core module
Browse files Browse the repository at this point in the history
  • Loading branch information
sirambd committed Jul 30, 2024
1 parent 735cf2c commit 2eb0d23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion STCore/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ plugins {
id("infomaniak.publishPlugin")
}

private val commonProject = project(":STCommon")

kotlinMultiplatformConfig {
appleExportedProjects = listOf(commonProject)
}

kotlin {
sourceSets {
commonMain.dependencies {
implementation(project(":STCommon"))
api(commonProject)
implementation(project(":STDatabase"))
implementation(project(":STNetwork"))
}
Expand Down
2 changes: 1 addition & 1 deletion STNetwork/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
kotlin {
sourceSets {
commonMain.dependencies {
api(project(":STCommon"))
implementation(project(":STCommon"))
implementation(libs.ktor.client.core)
implementation(libs.ktor.client.content.negociation)
implementation(libs.ktor.client.json)
Expand Down

0 comments on commit 2eb0d23

Please sign in to comment.