version bump

This commit is contained in:
Sergey Chernov 2025-03-27 00:06:30 +03:00
parent 8837e49248
commit 59b7310385
5 changed files with 30 additions and 8 deletions

1
.gitignore vendored
View File

@ -45,3 +45,4 @@ out/
.kotlin .kotlin
/.idea/workspace.xml /.idea/workspace.xml
/.gigaide/gigaide.properties /.gigaide/gigaide.properties
local.properties

View File

@ -8,17 +8,20 @@
* real dot sergeych at gmail. * real dot sergeych at gmail.
*/ */
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins { plugins {
kotlin("multiplatform") version "2.1.0" kotlin("multiplatform") version "2.1.0"
id("org.jetbrains.kotlin.plugin.serialization") version "2.1.0" id("org.jetbrains.kotlin.plugin.serialization") version "2.1.0"
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.6" version = "0.6.8-SNAPSHOT"
repositories { repositories {
mavenCentral() mavenCentral()
@ -50,7 +53,7 @@ kotlin {
browser() browser()
} }
val ktor_version = "3.1.0" val ktor_version = "3.1.1"
sourceSets { sourceSets {
all { all {
@ -67,6 +70,11 @@ kotlin {
api("net.sergeych:crypto2:0.8.3") api("net.sergeych:crypto2:0.8.3")
} }
} }
val androidMain by getting {
dependencies {
implementation("io.ktor:ktor-client-okhttp:$ktor_version")
}
}
val ktorSocketMain by creating { val ktorSocketMain by creating {
dependsOn(commonMain) dependsOn(commonMain)
dependencies { dependencies {
@ -96,7 +104,6 @@ kotlin {
val jvmTest by getting { val jvmTest by getting {
dependsOn(ktorSocketTest) dependsOn(ktorSocketTest)
} }
val jsMain by getting { val jsMain by getting {
dependencies { dependencies {
implementation("io.ktor:ktor-client-js:$ktor_version") implementation("io.ktor:ktor-client-js:$ktor_version")
@ -166,3 +173,15 @@ tasks.dokkaHtml.configure {
} }
} }
android {
namespace = "net.sergeych.kiloparsec"
compileSdk = 34
defaultConfig {
minSdk = 24
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}

View File

@ -10,6 +10,6 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

View File

@ -10,6 +10,7 @@
pluginManagement { pluginManagement {
repositories { repositories {
google()
mavenCentral() mavenCentral()
gradlePluginPortal() gradlePluginPortal()
} }

View File

@ -54,7 +54,9 @@ fun <S> websocketClient(
*/ */
fun websocketTransportDevice( fun websocketTransportDevice(
path: String, path: String,
client: HttpClient = HttpClient { install(WebSockets) }, client: HttpClient = HttpClient {
install(WebSockets)
},
): Transport.Device { ): Transport.Device {
var u = Url(path) var u = Url(path)
if (u.encodedPath.length <= 1) if (u.encodedPath.length <= 1)
@ -126,9 +128,8 @@ fun websocketTransportDevice(
runCatching { input.close() } runCatching { input.close() }
runCatching { close() } runCatching { close() }
} }
} } catch (x: IOException) {
catch(x: IOException) { if ("refused" in x.toString()) log.debug { "connection refused" }
if( "refused" in x.toString()) log.debug { "connection refused" }
else log.warning { "unexpected IO error $x" } else log.warning { "unexpected IO error $x" }
runCatching { output.close() } runCatching { output.close() }
runCatching { input.close() } runCatching { input.close() }