Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudgiuliani committed Nov 10, 2023
1 parent 184f5ca commit 556b86d
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 2 deletions.
4 changes: 3 additions & 1 deletion core/gradle/versions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ ext {

// Kotlin
kotlin_version = '1.9.20'
kotlin_wasm_version = ""
validator_version = '0.13.2'

coroutines_version = "1.7.3"

stately_concurrency = "2.0.5"

// Dokka
dokka_version = '1.8.10'


// Test
junit_version = "4.13.2"
junit5_version = "5.9.3"
Expand Down
18 changes: 18 additions & 0 deletions core/koin-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ kotlin {
browser()
binaries.executable() // not applicable to BOTH, see details below
}
wasmJs()
wasmWasi()

macosX64()
macosArm64()
Expand Down Expand Up @@ -81,6 +83,22 @@ kotlin {
}
}

wasmMain {
dependsOn commonMain
dependencies {
// implementation 'org.jetbrains.kotlin:kotlin-stdlib-wasm'
implementation "co.touchlab:stately-concurrency:$stately_concurrency"
}
}

wasmWasiMain {
dependsOn commonMain
dependencies {
// implementation 'org.jetbrains.kotlin:kotlin-stdlib-wasm'
implementation "co.touchlab:stately-concurrency:$stately_concurrency"
}
}

jsTest {
dependsOn commonTest
dependencies {
Expand Down
18 changes: 18 additions & 0 deletions core/koin-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ kotlin {
browser()
binaries.executable() // not applicable to BOTH, see details below
}
wasmJs()
wasmWasi()

macosX64()
macosArm64()
Expand Down Expand Up @@ -94,6 +96,22 @@ kotlin {
}
}

wasmMain {
dependsOn commonMain
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib-wasm'
implementation "co.touchlab:stately-concurrency:$stately_concurrency"
}
}

wasmWasiMain {
dependsOn commonMain
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib-wasm'
implementation "co.touchlab:stately-concurrency:$stately_concurrency"
}
}

nativeMain {
dependsOn commonMain
}
Expand Down
2 changes: 1 addition & 1 deletion core/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Core
include 'koin-core'
include 'koin-core-coroutines'
//include 'koin-core-coroutines'
include 'koin-test'
include 'koin-test-junit4'
include 'koin-test-junit5'
Expand Down

0 comments on commit 556b86d

Please sign in to comment.