mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 17:37:05 +05:30
build: cleanup sourceSet handling to drop unused vals
This commit is contained in:
parent
fde4e01697
commit
76c46b4229
3 changed files with 27 additions and 61 deletions
|
@ -13,28 +13,12 @@ kotlin {
|
|||
kotlinOptions.freeCompilerArgs + listOf("-Xopt-in=kotlin.RequiresOptIn")
|
||||
}
|
||||
}
|
||||
sourceSets {
|
||||
// Workaround for:
|
||||
//
|
||||
// The Kotlin source set androidAndroidTestRelease was configured but not added to any
|
||||
// Kotlin compilation. You can add a source set to a target's compilation by connecting it
|
||||
// with the compilation's default source set using 'dependsOn'.
|
||||
// See
|
||||
// https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#connecting-source-sets
|
||||
//
|
||||
// This workaround includes `dependsOn(androidAndroidTestRelease)` in the `androidTest`
|
||||
// sourceSet.
|
||||
val androidAndroidTestRelease by getting
|
||||
val commonMain by getting
|
||||
val commonTest by getting
|
||||
val androidMain by getting { dependencies { implementation(libs.sqldelight.androidDriver) } }
|
||||
val androidTest by getting { dependsOn(androidAndroidTestRelease) }
|
||||
val desktopMain by getting { dependencies { implementation(libs.sqldelight.jvmDriver) } }
|
||||
val desktopTest by getting {
|
||||
dependencies {
|
||||
implementation(libs.kotlin.coroutines.core)
|
||||
implementation(kotlin("test-junit"))
|
||||
}
|
||||
sourceSets["androidMain"].apply { dependencies { implementation(libs.sqldelight.androidDriver) } }
|
||||
sourceSets["desktopMain"].apply { dependencies { implementation(libs.sqldelight.jvmDriver) } }
|
||||
sourceSets["desktopTest"].apply {
|
||||
dependencies {
|
||||
implementation(libs.kotlin.coroutines.core)
|
||||
implementation(kotlin("test-junit"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue