cosmetics
This commit is contained in:
parent
40f4352a31
commit
bc46e11158
@ -19,7 +19,7 @@ provides the following transports:
|
|||||||
|
|
||||||
### Note on version compatibility
|
### 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.
|
Version 0.5.1 could be backward incompatible due to upgrade of the crypto2.
|
||||||
|
|
||||||
|
@ -11,15 +11,15 @@
|
|||||||
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
|
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform") version "2.1.0"
|
kotlin("multiplatform") version "2.1.21"
|
||||||
id("org.jetbrains.kotlin.plugin.serialization") version "2.1.0"
|
id("org.jetbrains.kotlin.plugin.serialization") version "2.1.21"
|
||||||
id("com.android.library") version "8.5.2" apply true
|
id("com.android.library") version "8.5.2" apply true
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
id("org.jetbrains.dokka") version "1.9.20"
|
id("org.jetbrains.dokka") version "1.9.20"
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "net.sergeych"
|
group = "net.sergeych"
|
||||||
version = "0.6.9-SNAPSHOT"
|
version = "0.6.10-SNAPSHOT"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
@ -37,15 +37,17 @@ kotlin {
|
|||||||
}
|
}
|
||||||
nodejs()
|
nodejs()
|
||||||
}
|
}
|
||||||
|
linuxX64()
|
||||||
|
linuxArm64()
|
||||||
|
|
||||||
macosArm64()
|
macosArm64()
|
||||||
|
macosX64()
|
||||||
iosX64()
|
iosX64()
|
||||||
iosArm64()
|
iosArm64()
|
||||||
iosSimulatorArm64()
|
iosSimulatorArm64()
|
||||||
linuxX64()
|
|
||||||
linuxArm64()
|
|
||||||
macosX64()
|
|
||||||
macosX64()
|
|
||||||
mingwX64()
|
mingwX64()
|
||||||
|
|
||||||
androidTarget()
|
androidTarget()
|
||||||
@OptIn(ExperimentalWasmDsl::class)
|
@OptIn(ExperimentalWasmDsl::class)
|
||||||
wasmJs {
|
wasmJs {
|
||||||
@ -143,26 +145,27 @@ kotlin {
|
|||||||
dependsOn(ktorSocketTest)
|
dependsOn(ktorSocketTest)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
val mavenToken by lazy {
|
val mavenToken by lazy {
|
||||||
File("${System.getProperty("user.home")}/.gitea_token").readText()
|
File("${System.getProperty("user.home")}/.gitea_token").readText()
|
||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
credentials(HttpHeaderCredentials::class) {
|
credentials(HttpHeaderCredentials::class) {
|
||||||
name = "Authorization"
|
name = "Authorization"
|
||||||
value = mavenToken
|
value = mavenToken
|
||||||
}
|
}
|
||||||
url = uri("https://gitea.sergeych.net/api/packages/SergeychWorks/maven")
|
url = uri("https://gitea.sergeych.net/api/packages/SergeychWorks/maven")
|
||||||
authentication {
|
authentication {
|
||||||
create("Authorization", HttpHeaderAuthentication::class)
|
create("Authorization", HttpHeaderAuthentication::class)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
tasks.dokkaHtml.configure {
|
tasks.dokkaHtml.configure {
|
||||||
outputDirectory.set(buildDir.resolve("dokka"))
|
outputDirectory.set(buildDir.resolve("dokka"))
|
||||||
dokkaSourceSets {
|
dokkaSourceSets {
|
||||||
|
@ -12,3 +12,4 @@ kotlin.code.style=official
|
|||||||
kotlin.mpp.applyDefaultHierarchyTemplate=false
|
kotlin.mpp.applyDefaultHierarchyTemplate=false
|
||||||
|
|
||||||
kotlin.daemon.jvmargs=-Xmx2048m
|
kotlin.daemon.jvmargs=-Xmx2048m
|
||||||
|
kotlin.native.ignoreDisabledTargets=true
|
@ -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
|
* Connect to the TCP/IP server (see [KiloServer]) at the specified address and provide th compatible
|
||||||
|
Loading…
x
Reference in New Issue
Block a user