Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Loading Core library #96

Merged
merged 17 commits into from Sep 25, 2020
Merged

Image Loading Core library #96

merged 17 commits into from Sep 25, 2020

Conversation

chrisbanes
Copy link
Contributor

@chrisbanes chrisbanes commented Sep 24, 2020

This PR splits out a lot of the common logic in the coil module into a separate imageloading module. The code left in coil is concentrated solely on the integration with the Coil library.

As part of this we also have some new features:

  • Moved to using Painters as the drawing primitive to pass around.
  • Since we're now using Painters, we have a new AndroidDrawablePainter which can draw a Android Drawable.
  • With support for Drawables, we now support things like GIFs.

As part of the refactoring, we also made some package changes, moving a lot of the common code to the imageloading package.

This PR means we can easily add support for other image loading libraries very easily (PR incoming for Picasso).

@chrisbanes chrisbanes changed the title [WIP] Image Loading library Image Loading library Sep 25, 2020
@chrisbanes chrisbanes changed the title Image Loading library Image Loading Core library Sep 25, 2020
@chrisbanes chrisbanes marked this pull request as ready for review September 25, 2020 11:53
chrisbanes and others added 6 commits September 25, 2020 14:42
…geloading/ImageLoadState.kt

Co-authored-by: Nick Butcher <nickbutcher@users.noreply.github.com>
…geloading/ImageLoadState.kt

Co-authored-by: Nick Butcher <nickbutcher@users.noreply.github.com>
Might be the cause of the emulator crashes on CI
@chrisbanes chrisbanes merged commit f905b05 into main Sep 25, 2020
@chrisbanes chrisbanes deleted the cb/imageloading branch September 25, 2020 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants