I have question about Supabase Storage and Coil3 i...
# supabase-kt
b
I have question about Supabase Storage and Coil3 integration. I see that there is currently a Coil Integration, but it is set as only supporting Android. As only the latest Coil version, Coil3, has introduced Multiplatform support, is it a correct that the reason only Android is supported by Coil Integration is/was that Coil has yet to release the production ready Coil3? And that when Coil3 is released, Coil Integration will also officially support all the targets supported by Supabase-Storage AND Coil3? Is it also possible that if I use any Coil3 release (alpha/beta/etc), I could target all targets supported Supabase-Storage AND Coil3?
j
is it a correct that the reason only Android is supported by Coil Integration is/was that Coil has yet to release the production ready Coil3?
Yes, I'm waiting for a stable version / release candidate for Coil 3. There is already a PR adding support for Coil3 and in theory there are some coil 3 builds on maven central but undocumented. If you want to try out a coil3 build, feel free to ask.
And that when Coil3 is released, Coil Integration will also officially support all the targets supported by Supabase-Storage AND Coil3?
Yes.
Is it also possible that if I use any Coil3 release (alpha/beta/etc), I could target all targets supported Supabase-Storage AND Coil3?
If you are not using the Coil Integration, yes.
b
That's great news. I was thinking of creating an integration myself, so I would greatly appreciate trying out a build, undocumented or otherwise. I found the PR, so it it's any hassle with the undocumented build, I can just copy-paste the few files into my project. Looking at the PR, I would need
supabase-version = 2.5.0-beta-2-coil3
and
coil-network-core
?
j
You'll need a coil network dependency, see the coil3 docs. In your case that would probably be
coil-network-ktor2
. Then just follow the new README on the PR branch. Let me just update the PR for the newest Coil3 alpha. The version will be
2.5.3-coil3
b
🙏🏼 Thank you. I will try it out and report back.
Using Supabase-kt `2.5.3-coil3`with`coil-network-ktor2`and`coil-integration`worked perfectly. SupabaseClient is necessary for the topmost Compose theme setup, but otherwise smooth sailing and easy setup. 🎉 I am gonna use this across 2 projects now, so if you need testing, let me know. 🙏🏼
👍 1