Setup

Estimated reading time: 1 minute

Gradle

You can use kotlinx-io, with gradle.

Artifacts live in jcenter:

repositories {
    jcenter()
}

Common

dependencies {
    implementation "org.jetbrains.kotlinx:kotlinx-io-common:$kotlinx_io_version" // Common
}

JVM

dependencies {
    implementation "org.jetbrains.kotlinx:kotlinx-io-jvm:$kotlinx_io_version" // JVM
}

JavaScript

dependencies {
    implementation "org.jetbrains.kotlinx:kotlinx-io-js:$kotlinx_io_version" // JS
}

Native

dependencies {
    implementation "org.jetbrains.kotlinx:kotlinx-io-native:$kotlinx_io_version" // Native
}