Setup

预计阅读时间: 1 分钟

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
}