Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion samples/sample/app-browser/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ kotlin {
sourceSets {
jsMain.dependencies {
implementation(project(":shared"))
implementation("org.jetbrains.kotlinx:kotlinx-html-js:0.9.1")
implementation("org.jetbrains.kotlinx:kotlinx-html-js:0.12.0")
implementation("co.touchlab:kermit-simple:${KERMIT_VERSION}")
}
}
Expand Down
8 changes: 2 additions & 6 deletions samples/sample/kotlin-js-store/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 19 additions & 5 deletions samples/sample/wasm-browser/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@file:OptIn(ExperimentalWasmDsl::class)

import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl

/*
* Copyright (c) 2024 Touchlab
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
Expand All @@ -12,16 +16,26 @@ plugins {
}

val KERMIT_VERSION: String by project
val kotlinVersion = libs.versions.kotlin.get()

// TODO: Kermit is running Kotlin 2.2.0, the Kotlin/Wasm standard library wants to use 2.2.20. So we need to manually set the wasm version
configurations.all {
resolutionStrategy {
force("org.jetbrains.kotlin:kotlin-stdlib-wasm-js:${kotlinVersion}")
}
}

kotlin {
@Suppress("OPT_IN_USAGE")
wasmJs {
browser()
binaries.executable()
browser()
}
sourceSets["wasmJsMain"].dependencies {
implementation(project(":shared"))
implementation("co.touchlab:kermit-simple:${KERMIT_VERSION}")
sourceSets {
wasmJsMain.dependencies {
implementation(project(":shared"))
implementation("org.jetbrains.kotlinx:kotlinx-browser-wasm-js:0.5.0")
implementation("co.touchlab:kermit-simple:${KERMIT_VERSION}")
}
}
}

Loading