cosmetics

This commit is contained in:
Sergey Chernov 2025-09-20 05:21:36 +04:00
parent 40f4352a31
commit bc46e11158
4 changed files with 33 additions and 23 deletions

View File

@ -11,15 +11,15 @@
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
plugins {
kotlin("multiplatform") version "2.1.0"
id("org.jetbrains.kotlin.plugin.serialization") version "2.1.0"
kotlin("multiplatform") version "2.1.21"
id("org.jetbrains.kotlin.plugin.serialization") version "2.1.21"
id("com.android.library") version "8.5.2" apply true
`maven-publish`
id("org.jetbrains.dokka") version "1.9.20"
}
group = "net.sergeych"
version = "0.6.9-SNAPSHOT"
version = "0.6.10-SNAPSHOT"
repositories {
mavenCentral()
@ -37,15 +37,17 @@ kotlin {
}
nodejs()
}
linuxX64()
linuxArm64()
macosArm64()
macosX64()
iosX64()
iosArm64()
iosSimulatorArm64()
linuxX64()
linuxArm64()
macosX64()
macosX64()
mingwX64()
androidTarget()
@OptIn(ExperimentalWasmDsl::class)
wasmJs {
@ -143,6 +145,7 @@ kotlin {
dependsOn(ktorSocketTest)
}
}
}
publishing {
val mavenToken by lazy {
@ -161,7 +164,7 @@ kotlin {
}
}
}
}
tasks.dokkaHtml.configure {
outputDirectory.set(buildDir.resolve("dokka"))

View File

@ -12,3 +12,4 @@ kotlin.code.style=official
kotlin.mpp.applyDefaultHierarchyTemplate=false
kotlin.daemon.jvmargs=-Xmx2048m
kotlin.native.ignoreDisabledTargets=true

View File

@ -52,7 +52,13 @@ fun acceptTcpDevice(port: Int, localInterface: String = "0.0.0.0"): Flow<InetTra
}
}
suspend fun connectTcpDevice(address: String) = connectTcpDevice(address.toNetworkAddress())
/**
* Connect to the TCP/IP server (see [KiloServer]) at the specified address and provide th compatible
* [InetTransportDevice] to use with [KiloClient]. [hostPortAddress] is a string in the form of `host:port`.
*/
suspend fun connectTcpDevice(hostPortAddress: String): InetTransportDevice =
connectTcpDevice(hostPortAddress.toNetworkAddress())
/**
* Connect to the TCP/IP server (see [KiloServer]) at the specified address and provide th compatible