
Offers a library for working with browser declarations in WasmJs, intended as a replacement for deprecated browser components. Experimental and subject to change, requiring Kotlin 1.9.23 or newer.
Kotlin browser API
A Kotlin library for working with browser declarations in Kotlin with WasmJs and JS targets.
See Using in your projects for the instructions how to setup a dependency in your project.
This library is still in work-in-progress state. Which means that it is not published into public repository and not yet intended to use by end user.
Is required to use:
2.2.20-Beta2 or newerNote that the library is experimental, and the API is subject to change.
The library is compatible with the Kotlin Standard Library not lower than 2.2.20-Beta2.
(with older Kotlin versions one needs to use kotlinx-browser version 0.3)
repositories {
mavenCentral()
}kotlin {
wasmJs {
browser()
}
js {
browser()
}
sourceSets {
commonMain {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-browser:0.5.0")
}
}
}
}The project requires Kotlin 2.2.20-Beta2 to build and to run tests.
After that, the project can be opened in IDEA and/or built with Gradle.
To build and run tests, execute:
./gradlew buildKotlin browser API
A Kotlin library for working with browser declarations in Kotlin with WasmJs and JS targets.
See Using in your projects for the instructions how to setup a dependency in your project.
This library is still in work-in-progress state. Which means that it is not published into public repository and not yet intended to use by end user.
Is required to use:
2.2.20-Beta2 or newerNote that the library is experimental, and the API is subject to change.
The library is compatible with the Kotlin Standard Library not lower than 2.2.20-Beta2.
(with older Kotlin versions one needs to use kotlinx-browser version 0.3)
repositories {
mavenCentral()
}kotlin {
wasmJs {
browser()
}
js {
browser()
}
sourceSets {
commonMain {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-browser:0.5.0")
}
}
}
}The project requires Kotlin 2.2.20-Beta2 to build and to run tests.
After that, the project can be opened in IDEA and/or built with Gradle.
To build and run tests, execute:
./gradlew build