thunderbird / thunderbird-android

Thunderbird for Android – Open Source Email App for Android (fka K-9 Mail)
https://thunderbird.net/mobile
Apache License 2.0
11.05k stars 2.51k forks source link

Add `RemoteImage` using landscapist and coil #8594

Open wmontwe opened 5 days ago

wmontwe commented 5 days ago

This adds a RemoteImage to the design system to load images from URLs and files. It uses landscapist as abstraction layer for compose and coil as the image loader.

First step to allow account images in the app.

cketti commented 14 hours ago

This is adding a lot of new and unnecessary dependencies, e.g.

It looks like we could avoid all of that without loss of functionality by using Coil's AsyncImage directly. Since we don't actually want to load images via http(s), we don't even have to include any of Coil's network bindings.