diff --git a/README.md b/README.md index f1d9fb2..df37682 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ provides the following transports: ### Note on version compatibility -Since version 0.6.9 websocket protocol supports both text and binary frames; old clients are backward compatible with mew servers, but new clients only can work with older servers only in default binary frame mode. Upgrade also your servers to get better websocket compatibility [^1]. +Since version 0.6.9 websocket protocol supports both text and binary frames; old clients are backward compatible with mew servers, but new clients only can work with older servers only in default binary frame mode. Upgrade also your servers to get better websocket compatibility[^1]. Version 0.5.1 could be backward incompatible due to upgrade of the crypto2. diff --git a/build.gradle.kts b/build.gradle.kts index c4e004e..37b2ce8 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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,26 +145,27 @@ kotlin { dependsOn(ktorSocketTest) } } +} - publishing { - val mavenToken by lazy { - File("${System.getProperty("user.home")}/.gitea_token").readText() - } - repositories { - maven { - credentials(HttpHeaderCredentials::class) { - name = "Authorization" - value = mavenToken - } - url = uri("https://gitea.sergeych.net/api/packages/SergeychWorks/maven") - authentication { - create("Authorization", HttpHeaderAuthentication::class) - } +publishing { + val mavenToken by lazy { + File("${System.getProperty("user.home")}/.gitea_token").readText() + } + repositories { + maven { + credentials(HttpHeaderCredentials::class) { + name = "Authorization" + value = mavenToken + } + url = uri("https://gitea.sergeych.net/api/packages/SergeychWorks/maven") + authentication { + create("Authorization", HttpHeaderAuthentication::class) } } } } + tasks.dokkaHtml.configure { outputDirectory.set(buildDir.resolve("dokka")) dokkaSourceSets { diff --git a/gradle.properties b/gradle.properties index bd369ac..470de7c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -12,3 +12,4 @@ kotlin.code.style=official kotlin.mpp.applyDefaultHierarchyTemplate=false kotlin.daemon.jvmargs=-Xmx2048m +kotlin.native.ignoreDisabledTargets=true \ No newline at end of file diff --git a/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/TcpProvider.kt b/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/TcpProvider.kt index d757131..01f4480 100644 --- a/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/TcpProvider.kt +++ b/src/ktorSocketMain/kotlin/net/sergeych/kiloparsec/adapter/TcpProvider.kt @@ -52,7 +52,13 @@ fun acceptTcpDevice(port: Int, localInterface: String = "0.0.0.0"): Flow