Skip to content

Commit 7d66a9e

Browse files
committed
Update dependencies: remove skiko and upgrade gifkt to gifkt-compose
1 parent ee1cd4c commit 7d66a9e

File tree

5 files changed

+2
-35
lines changed

5 files changed

+2
-35
lines changed

composeApp/build.gradle.kts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,9 @@ kotlin {
5050
implementation(compose.preview)
5151
}
5252
jvmMain.dependencies {
53-
implementation(libs.skiko)
5453
implementation(libs.kotlinx.coroutines.swing)
5554
implementation(compose.desktop.currentOs)
5655
}
57-
wasmJsMain.dependencies {
58-
implementation(libs.skiko)
59-
}
6056
}
6157
}
6258

gif-compose/build.gradle.kts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,6 @@ kotlin {
2929
implementation(compose.ui)
3030
api(libs.gifkt)
3131
}
32-
androidMain.dependencies {
33-
implementation(libs.androidx.core)
34-
}
35-
36-
val nonAndroid by creating {
37-
dependsOn(commonMain.get())
38-
39-
dependencies {
40-
implementation(libs.skiko)
41-
}
42-
}
43-
44-
jvmMain.get().dependsOn(nonAndroid)
45-
wasmJsMain.get().dependsOn(nonAndroid)
4632
}
4733
}
4834

gif-compose/src/androidMain/kotlin/io/github/composegears/pixelart/gif/compose/ImageFrameCompose.android.kt

Lines changed: 0 additions & 12 deletions
This file was deleted.

gif-compose/src/commonMain/kotlin/io/github/composegears/pixelart/gif/compose/ImageFrameCompose.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import androidx.compose.runtime.Composable
44
import androidx.compose.runtime.remember
55
import androidx.compose.ui.graphics.ImageBitmap
66
import com.shakster.gifkt.ImageFrame
7-
8-
expect fun ImageFrame.toImageBitmap(): ImageBitmap
7+
import com.shakster.gifkt.compose.toImageBitmap
98

109
@Composable
1110
fun rememberImageFrameBitmap(frame: ImageFrame): ImageBitmap = remember(frame) { frame.toImageBitmap() }

gradle/libs.versions.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ coroutines = "1.10.2"
88
detekt = "1.23.8"
99
filekit = "0.11.0"
1010
kotlin = "2.2.20"
11-
skiko = "0.9.24"
1211

1312
[libraries]
1413
androidx-activity-compose = "androidx.activity:activity-compose:1.11.0"
@@ -22,8 +21,7 @@ kotlinx-coroutines-swing = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-
2221
filekit-core = { module = "io.github.vinceglb:filekit-core", version.ref = "filekit" }
2322
filekit-dialogs = { module = "io.github.vinceglb:filekit-dialogs", version.ref = "filekit" }
2423

25-
gifkt = "com.shakster:gifkt:0.1.2"
26-
skiko = { module = "org.jetbrains.skiko:skiko", version.ref = "skiko" }
24+
gifkt = "com.shakster:gifkt-compose:0.2.0"
2725
tiamat = "io.github.composegears:tiamat:2.0.0-rc01"
2826
zoomable = "net.engawapg.lib:zoomable:2.8.1"
2927

0 commit comments

Comments
 (0)