mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 18:47:03 +05:30
common/database: workaround androidAndroidTestRelease warnings
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
2704c800ce
commit
db6349cddb
2 changed files with 24 additions and 2 deletions
|
@ -10,6 +10,17 @@ kotlin {
|
||||||
android()
|
android()
|
||||||
jvm("desktop") { compilations.all { kotlinOptions.jvmTarget = "11" } }
|
jvm("desktop") { compilations.all { kotlinOptions.jvmTarget = "11" } }
|
||||||
sourceSets {
|
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 commonMain by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
api(compose.runtime)
|
api(compose.runtime)
|
||||||
|
@ -21,7 +32,7 @@ kotlin {
|
||||||
}
|
}
|
||||||
val commonTest by getting { dependencies { implementation(kotlin("test")) } }
|
val commonTest by getting { dependencies { implementation(kotlin("test")) } }
|
||||||
val androidMain by getting { dependencies { implementation(libs.androidx.browser) } }
|
val androidMain by getting { dependencies { implementation(libs.androidx.browser) } }
|
||||||
val androidTest by getting
|
val androidTest by getting { dependsOn(androidAndroidTestRelease) }
|
||||||
val desktopMain by getting
|
val desktopMain by getting
|
||||||
val desktopTest by getting
|
val desktopTest by getting
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,12 +8,23 @@ kotlin {
|
||||||
android()
|
android()
|
||||||
jvm("desktop") { compilations.all { kotlinOptions.jvmTarget = "11" } }
|
jvm("desktop") { compilations.all { kotlinOptions.jvmTarget = "11" } }
|
||||||
sourceSets {
|
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 commonMain by getting
|
||||||
val commonTest by getting
|
val commonTest by getting
|
||||||
val androidMain by getting {
|
val androidMain by getting {
|
||||||
dependencies { implementation(libs.thirdparty.sqldelight.androidDriver) }
|
dependencies { implementation(libs.thirdparty.sqldelight.androidDriver) }
|
||||||
}
|
}
|
||||||
val androidTest by getting
|
val androidTest by getting { dependsOn(androidAndroidTestRelease) }
|
||||||
val desktopMain by getting {
|
val desktopMain by getting {
|
||||||
dependencies { implementation(libs.thirdparty.sqldelight.jvmDriver) }
|
dependencies { implementation(libs.thirdparty.sqldelight.jvmDriver) }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue