Skip to content

Kotlin/kotlinx-browser

Repository files navigation

kotlinx-browser

Kotlin Alpha JetBrains official project GitHub license Kotlin Slack channel TeamCity build

Kotlin Web browser API

A Kotlin library for working with browser declarations in Kotlin WasmJs and Kotlin Js targets.

See Using in your projects for the instructions how to setup a dependency in your project.

Status

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.

Requirements

Is required to use:

  • Kotlin 2.2.20-Beta2 or newer

Using in your projects

Note 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)

Gradle

  • Add the Maven Central repository if it is not already there:
repositories {
    mavenCentral()
}
  • In multiplatform projects, add a dependency to common or target source set dependencies:
kotlin {
    wasmJs {
        browser()
    }
    
    js {
        browser()
    }
    
    sourceSets {
        commonMain {
             dependencies {
                 implementation("org.jetbrains.kotlinx:kotlinx-browser:0.4")
             }
        }
    }
}

Building

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

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages