Skip to content

Commit

Permalink
bump dependencies (#17)
Browse files Browse the repository at this point in the history
* bump dependencies

Notably now using kotlin 2.0.21 and ktor 3.0.0.

* bump kcef and jcef versions

---------

Co-authored-by: Sam <[email protected]>
  • Loading branch information
SamCosta1 and Sam authored Oct 15, 2024
1 parent 5e229f7 commit be48a26
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 deletions.
7 changes: 4 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
kotlin("jvm") version "1.9.21" apply false
kotlin("plugin.serialization") version "1.9.21" apply false
id("org.jetbrains.compose") version "1.5.11" apply false
kotlin("jvm") version "2.0.21" apply false
kotlin("plugin.serialization") version "2.0.21" apply false
id("org.jetbrains.compose") version "1.6.11" apply false
id("org.jetbrains.kotlin.plugin.compose") version "2.0.21" apply false
id("com.vanniktech.maven.publish") version "0.28.0" apply false
id("org.jetbrains.dokka") version "1.9.20"
}
Expand Down
1 change: 1 addition & 0 deletions example/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
kotlin("jvm")
id("org.jetbrains.compose")
id("org.jetbrains.kotlin.plugin.compose")
}

dependencies {
Expand Down
1 change: 0 additions & 1 deletion example/src/main/kotlin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ fun main() = singleWindowApplication {
download = it.toInt()
}
}
release(true)
},
onError = {
it?.printStackTrace()
Expand Down
2 changes: 1 addition & 1 deletion jcef/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies {
mavenPublishing {
publishToMavenCentral(host = SonatypeHost.S01, automaticRelease = true)
signAllPublications()
coordinates("dev.datlag", "jcef", "2024.04.20.2")
coordinates("dev.datlag", "jcef", "2024.04.20.3")

pom {
name.set(project.name)
Expand Down
8 changes: 4 additions & 4 deletions kcef/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ plugins {
id("org.jetbrains.dokka")
}

val ktorVersion = "2.3.10"
val ktorVersion = "3.0.0"

dependencies {
api(project(":jcef"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0")
implementation("io.ktor:ktor-client-core:$ktorVersion")
implementation("io.ktor:ktor-client-okhttp:$ktorVersion")
implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion")
implementation("org.apache.commons:commons-compress:1.26.1")
implementation("org.apache.commons:commons-compress:1.27.1")
implementation(kotlin("stdlib"))
}

Expand All @@ -35,7 +35,7 @@ tasks.dokkaHtmlPartial {
mavenPublishing {
publishToMavenCentral(host = SonatypeHost.S01, automaticRelease = true)
signAllPublications()
coordinates("dev.datlag", "kcef", "2024.04.20.2")
coordinates("dev.datlag", "kcef", "2024.04.20.3")

pom {
name.set(project.name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ internal data object PackageDownloader {

val success = download.client.prepareGet(downloadUrl) {
onDownload { bytesSentTotal, contentLength ->
progress.downloading((bytesSentTotal.toFloat() / contentLength.toFloat()) * 100F)
if (contentLength == null) {
progress.downloading(0f)
} else {
progress.downloading((bytesSentTotal.toFloat() / (contentLength.toFloat()) * 100F))
}
}
}.execute { httpResponse ->
val channel: ByteReadChannel = httpResponse.bodyAsChannel()
Expand Down

0 comments on commit be48a26

Please sign in to comment.