Skip to content

Commit

Permalink
Kotlin 2.0.21 update (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-griffith authored Oct 12, 2024
1 parent 945fe66 commit bfce83c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
java = "21"
kotlin = "1.9.24"
coroutines = "1.8.1"
kotlin = "2.0.21"
coroutines = "1.9.0"
flatlaf = "3.5.1"
kotest = "5.9.1"
ignition = "8.1.20"
Expand All @@ -18,7 +18,7 @@ dokka = { id = "org.jetbrains.dokka", version = "1.9.20" }
# core functionality
coroutines-core = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version.ref = "coroutines" }
coroutines-swing = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-swing", version.ref = "coroutines" }
serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version = "1.6.3" }
serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version = "1.7.2" }
xerial-jdbc = { group = "org.xerial", name = "sqlite-jdbc", version = "3.46.1.0" }
logback = { group = "ch.qos.logback", name = "logback-classic", version = "1.5.8" }
hsql = { group = "org.hsqldb", name = "hsqldb", version = "2.7.3" }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.github.inductiveautomation.kindling.idb

import com.formdev.flatlaf.extras.FlatSVGIcon
import com.github.weisj.jsvg.parser.LoaderContext
import com.github.weisj.jsvg.parser.SVGLoader
import com.inductiveautomation.ignition.gateway.images.ImageFormat
import io.github.inductiveautomation.kindling.core.ToolPanel
Expand Down Expand Up @@ -209,7 +210,7 @@ private class ImageRow(

val image: BufferedImage? by lazy {
if (type == ImageFormat.SVG) {
return@lazy SVGLoader().load(data.inputStream())?.let { svg ->
return@lazy SVGLoader().load(data.inputStream(), null, LoaderContext.createDefault())?.let { svg ->
val size = svg.size()
svg.render(size.width.toInt().coerceAtLeast(20), size.height.toInt().coerceAtLeast(20))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import java.io.InputStream
import java.lang.Thread.State as ThreadState

@Serializable
@ConsistentCopyVisibility
data class ThreadDump internal constructor(
val version: String,
val threads: List<Thread>,
Expand Down

0 comments on commit bfce83c

Please sign in to comment.