Skip to content

Commit

Permalink
Fixing "BuildScopeServices has been closed" issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
theolm committed May 22, 2024
1 parent d2e959d commit a31cd73
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 35 deletions.
2 changes: 1 addition & 1 deletion build-logic/src/main/kotlin/plugins/KmpTargetSetup.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ fun KotlinMultiplatformExtension.setupKmpTargets(
onBinariesFramework(this)
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ android {
sourceCompatibility = Config.javaVersion
targetCompatibility = Config.javaVersion
}
}
}

This file was deleted.

14 changes: 0 additions & 14 deletions build-logic/src/main/kotlin/plugins/sample-setup.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import config.Config
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.multiplatform")
id("org.jetbrains.compose")
id("org.jetbrains.kotlin.plugin.compose")
}

android {
Expand Down Expand Up @@ -40,15 +38,3 @@ android {
}
}
}

kotlin {
sourceSets {
commonMain.dependencies {
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material)
implementation(compose.ui)
implementation(compose.components.resources)
}
}
}
9 changes: 8 additions & 1 deletion rinku-compose-ext/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import config.Config
import plugins.setupKmpTargets

plugins {
id("org.jetbrains.kotlin.multiplatform")
id("android-lib-setup")
id("compose-module-setup")
id("org.jetbrains.compose")
id("org.jetbrains.kotlin.plugin.compose")
id("publish-setup")
id("detekt-setup")
}
Expand All @@ -22,6 +24,11 @@ kotlin {
}
commonMain.dependencies {
implementation(projects.rinku.rinkuCore)
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material)
implementation(compose.ui)
implementation(compose.components.resources)
implementation(libs.kotlinx.coroutines.core)
}
commonTest.dependencies {
Expand Down
9 changes: 8 additions & 1 deletion samples/common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import plugins.setupKmpTargets

plugins {
alias(libs.plugins.kotlinSerialization)
id("org.jetbrains.kotlin.multiplatform")
id("org.jetbrains.compose")
id("org.jetbrains.kotlin.plugin.compose")
id("android-lib-setup")
id("compose-module-setup")
id("detekt-setup")
}

Expand All @@ -18,6 +20,11 @@ kotlin {
sourceSets {
commonMain.dependencies {
implementation(projects.rinku.rinkuCore)
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material)
implementation(compose.ui)
implementation(compose.components.resources)
implementation(libs.kotlinx.serialization)
}
}
Expand Down
7 changes: 7 additions & 0 deletions samples/decompose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import config.Config

plugins {
id("sample-setup")
id("org.jetbrains.compose")
id("org.jetbrains.kotlin.plugin.compose")
id("kotlin-parcelize")
id("detekt-setup")
alias(libs.plugins.kotlinSerialization)
Expand Down Expand Up @@ -31,6 +33,11 @@ kotlin {
implementation(projects.rinku.rinkuCore)
implementation(projects.rinku.rinkuComposeExt)
implementation(projects.samples.common)
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material)
implementation(compose.ui)
implementation(compose.components.resources)
implementation(libs.decompose)
implementation(libs.decompose.compose)
implementation(libs.kotlinx.serialization)
Expand Down
7 changes: 7 additions & 0 deletions samples/voyager/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import plugins.setupKmpTargets

plugins {
id("sample-setup")
id("org.jetbrains.compose")
id("org.jetbrains.kotlin.plugin.compose")
id("detekt-setup")
alias(libs.plugins.kotlinSerialization)
}
Expand Down Expand Up @@ -30,6 +32,11 @@ kotlin {

commonMain.dependencies {
api(projects.rinku.rinkuCore)
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material)
implementation(compose.ui)
implementation(compose.components.resources)
implementation(projects.rinku.rinkuComposeExt)
implementation(projects.samples.common)
implementation(libs.voyager.navigator)
Expand Down

0 comments on commit a31cd73

Please sign in to comment.