refactor: centralize common dependencies in build-logic module
This commit is contained in:
@@ -41,6 +41,14 @@ kotlin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
commonMain.dependencies {
|
||||||
|
// Coroutines
|
||||||
|
implementation(libs.kotlinx.coroutinesCore)
|
||||||
|
|
||||||
|
// DI
|
||||||
|
implementation(project.dependencies.platform(libs.koin.bom))
|
||||||
|
implementation(libs.koin.core)
|
||||||
|
}
|
||||||
commonTest.dependencies {
|
commonTest.dependencies {
|
||||||
implementation(libs.kotlin.test)
|
implementation(libs.kotlin.test)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,17 +17,6 @@ kotlin {
|
|||||||
// Desktop audio: Ogg Vorbis SPI so javax.sound.sampled can decode .ogg
|
// Desktop audio: Ogg Vorbis SPI so javax.sound.sampled can decode .ogg
|
||||||
implementation(libs.vorbisspi)
|
implementation(libs.vorbisspi)
|
||||||
}
|
}
|
||||||
commonMain.dependencies {
|
|
||||||
// Models (exposed through AudioPlayer's public API)
|
|
||||||
// api(projects.core.model)
|
|
||||||
|
|
||||||
// Coroutines
|
|
||||||
implementation(libs.kotlinx.coroutinesCore)
|
|
||||||
|
|
||||||
// DI
|
|
||||||
implementation(project.dependencies.platform(libs.koin.bom))
|
|
||||||
implementation(libs.koin.core)
|
|
||||||
}
|
|
||||||
// webMain is the js + wasmJs intermediate source set from the default hierarchy template.
|
// webMain is the js + wasmJs intermediate source set from the default hierarchy template.
|
||||||
webMain.dependencies {
|
webMain.dependencies {
|
||||||
// Browser audio (HTMLAudioElement, document) for js + wasmJs
|
// Browser audio (HTMLAudioElement, document) for js + wasmJs
|
||||||
|
|||||||
@@ -6,15 +6,4 @@ kotlin {
|
|||||||
androidLibrary {
|
androidLibrary {
|
||||||
namespace = "fr.ajaury.gwenedeg.core.coroutines"
|
namespace = "fr.ajaury.gwenedeg.core.coroutines"
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
|
||||||
commonMain.dependencies {
|
|
||||||
// Coroutines
|
|
||||||
implementation(libs.kotlinx.coroutinesCore)
|
|
||||||
|
|
||||||
// DI
|
|
||||||
implementation(project.dependencies.platform(libs.koin.bom))
|
|
||||||
implementation(libs.koin.core)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,13 +18,6 @@ kotlin {
|
|||||||
implementation(projects.data.records)
|
implementation(projects.data.records)
|
||||||
implementation(projects.data.resources)
|
implementation(projects.data.resources)
|
||||||
implementation(projects.data.subtitle)
|
implementation(projects.data.subtitle)
|
||||||
|
|
||||||
// Coroutines
|
|
||||||
implementation(libs.kotlinx.coroutinesCore)
|
|
||||||
|
|
||||||
// DI
|
|
||||||
implementation(project.dependencies.platform(libs.koin.bom))
|
|
||||||
implementation(libs.koin.core)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,15 +6,4 @@ kotlin {
|
|||||||
androidLibrary {
|
androidLibrary {
|
||||||
namespace = "fr.ajaury.gwenedeg.preferences"
|
namespace = "fr.ajaury.gwenedeg.preferences"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
sourceSets {
|
|
||||||
commonMain.dependencies {
|
|
||||||
// Coroutines
|
|
||||||
implementation(libs.kotlinx.coroutinesCore)
|
|
||||||
|
|
||||||
// DI
|
|
||||||
implementation(project.dependencies.platform(libs.koin.bom))
|
|
||||||
implementation(libs.koin.core)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -11,13 +11,6 @@ kotlin {
|
|||||||
commonMain.dependencies {
|
commonMain.dependencies {
|
||||||
// Core modules
|
// Core modules
|
||||||
implementation(projects.core.model)
|
implementation(projects.core.model)
|
||||||
|
|
||||||
// Coroutines
|
|
||||||
implementation(libs.kotlinx.coroutinesCore)
|
|
||||||
|
|
||||||
// DI
|
|
||||||
implementation(project.dependencies.platform(libs.koin.bom))
|
|
||||||
implementation(libs.koin.core)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,13 +19,6 @@ kotlin {
|
|||||||
// Compose resources
|
// Compose resources
|
||||||
implementation(libs.compose.runtime)
|
implementation(libs.compose.runtime)
|
||||||
implementation(libs.compose.components.resources)
|
implementation(libs.compose.components.resources)
|
||||||
|
|
||||||
// Coroutines
|
|
||||||
implementation(libs.kotlinx.coroutinesCore)
|
|
||||||
|
|
||||||
// DI
|
|
||||||
implementation(project.dependencies.platform(libs.koin.bom))
|
|
||||||
implementation(libs.koin.core)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,13 +13,6 @@ kotlin {
|
|||||||
implementation(projects.core.coroutines)
|
implementation(projects.core.coroutines)
|
||||||
implementation(projects.core.logging)
|
implementation(projects.core.logging)
|
||||||
implementation(projects.core.model)
|
implementation(projects.core.model)
|
||||||
|
|
||||||
// Coroutines
|
|
||||||
implementation(libs.kotlinx.coroutinesCore)
|
|
||||||
|
|
||||||
// DI
|
|
||||||
implementation(project.dependencies.platform(libs.koin.bom))
|
|
||||||
implementation(libs.koin.core)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user