Any way to display a GIF in compose multiplatform?...
# multiplatform
r
Any way to display a GIF in compose multiplatform? coil-gif was good for android but apparently it doesn’t support KMP
j
You might be just a little bit too early. Just for reference: https://github.com/coil-kt/coil/issues/842#issuecomment-1868910426
r
yeah so that 😅 any idea if there is an alternative? or should I just wait for them
j
🤷 not aware of alternatives, but I’m new to KMP myself. I guess your best bet is to wait as there are already alphas and the svg part is also already ported and merged, so I assume it won’t take ages for gif.(?)
1
r
lets hope it doesn’t then! luckily its not super important in my app but it would be nice to have it
j
I will try the alphas later in my current pet project journal.st to finally get some visuals 🖼️
🚀 1
r
I tried the alpha coil (not gif) and it showed a lot of errors when I tried to build, so I just removed it, didn’t wanna waste anytime there
j
😅 I wast my time in all directions with this project atm so I don’t care. Good luck with your project. 🙂
r
exactly, there is a lot of things that just takes all the time in the world with KMP 😅 but at least this is not really important so I would just wait for coil support, its just a really small gif in a dialog that is hardly used
j
especially if you try to support wasm 😅 just hacked together jetpack datastore support with ignored wasm target… yeah, sounds like time you can otherwise invest.
😅 1
wasm and Android work like charme, desktop has still some dependency issues on my side
r
as we’re on this topic, I hear wasm a lot but I’m honestly not sure what exactly it is, never googled it as well 😅 but can you briefly explain what it is and why you’re using it?
j
wasm is a multiplatform target that also (but not only) runs in almost all modern browsers now. it promises near native speed for web applications in the future. compose for web targets wasm which brings improved performance already: https://blog.jetbrains.com/kotlin/2023/12/kotlin-for-webassembly-goes-alpha/ why I am using it: I think it is the future but currently I’m just curious to try it out. 🙂
👀 1
1
btw also fixed the jvm apps with coil, it is already better than I expected. 👏
🚀 1
r
ah thanks for explaining! so are you originally an Android engineer trying to explore the web side?
j
I do mainly Android development atm and the recent past but already did React before.
1
k
Any update or workaround guys ?
r
nothing from my side, didn’t tackle this issue again since its a minor one in my app
661 Views