File tree Expand file tree Collapse file tree 5 files changed +2
-35
lines changed
androidMain/kotlin/io/github/composegears/pixelart/gif/compose
commonMain/kotlin/io/github/composegears/pixelart/gif/compose Expand file tree Collapse file tree 5 files changed +2
-35
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,8 +4,7 @@ import androidx.compose.runtime.Composable
44import androidx.compose.runtime.remember
55import androidx.compose.ui.graphics.ImageBitmap
66import com.shakster.gifkt.ImageFrame
7-
8- expect fun ImageFrame.toImageBitmap (): ImageBitmap
7+ import com.shakster.gifkt.compose.toImageBitmap
98
109@Composable
1110fun rememberImageFrameBitmap (frame : ImageFrame ): ImageBitmap = remember(frame) { frame.toImageBitmap() }
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ coroutines = "1.10.2"
88detekt = " 1.23.8"
99filekit = " 0.11.0"
1010kotlin = " 2.2.20"
11- skiko = " 0.9.24"
1211
1312[libraries ]
1413androidx-activity-compose = " androidx.activity:activity-compose:1.11.0"
@@ -22,8 +21,7 @@ kotlinx-coroutines-swing = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-
2221filekit-core = { module = " io.github.vinceglb:filekit-core" , version.ref = " filekit" }
2322filekit-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"
2725tiamat = " io.github.composegears:tiamat:2.0.0-rc01"
2826zoomable = " net.engawapg.lib:zoomable:2.8.1"
2927
You can’t perform that action at this time.
0 commit comments