glide v4.10.0 Release Notes

Release Date: 2019-09-18 // over 4 years ago
  • ๐Ÿ”‹ Features

    • โž• Added a Mocks library to mock GlideExecutor in unit/emulator tests (e021f6b)
    • โž• Added an integration library to integrate with Guava's ListenableFuture class (9fb1036)
    • โž• Add granular options for rounded corners (f36a9fa, thanks to dlos@)
    • Include day/night mode in resource id cache keys (1b391c4)
    • โž• Add an API that can be called on Glide manually to clear memory, especially when apps are backgrounded (8a094e9, thanks to mikewallstedt@)
    • โž• Add simple support for wide gamut color spaces (15a21b1, 7910f68)
    • ๐Ÿš€ Release more memory in the background on M+ (525e7ba)
    • ๐Ÿ‘Œ Support Fragments not hosted by Acitivities (71359c7, thanks to Daniel Tomasiewicz)
    • ๐Ÿ– Handle contexts with null application contexts (31b501d, thanks to Daniel Tomasiewicz)

    ๐Ÿ› Bugs

    • ๐Ÿ›  Fixed incorrect downsampling for rotated images when using Target.SIZE_ORIGINAL (79dac0d, thanks to sonyamollinger@)
    • ๐Ÿ›  Fixed returning negative byte values converting ByteBuffers to InputStreams (24f9c28, thanks to sonyamollinger@)
    • ๐Ÿ‘‰ Make sure to cancel all preload requests in cancelAll() (047c22d, thanks @paynemiller92)
    • ๐Ÿ›  Fixed a series of concurrency bugs introduced by allowing requests to start on background threads (bee6348, 5cccdfb, 01ea6a5, b2a46ef, 6dc03d8, 4de2cda, b96b000, 8907122, 53438b9)
    • ๐Ÿ‘‰ Make sure the specified numbers of threads are actually used in the animation executor (#3575, ac4aa53, thanks to @yuriy-budiyev)
    • Avoid blinking when calling RequestManager#pause when the thumbnail portion of a request is complete the full portion is still running (2f56153)
    • ๐Ÿ‘‰ Make it less likely to mix support and non-support fragments (2193306, thanks to @limuyang2)
    • Avoid downsampling incorrectly in FitCenter and CenterInside when there was
      an exact power of 2 match in one dimension but not the other (3df5445)
    • Always use orientation corrected sizes in Downsampler (#3673, ebdf8be)
    • ๐Ÿ›  Fix transparency in GifDecoder when using RGB_565 (29c553d, thanks to @lihongyu)
    • ๐Ÿ”’ Handle security exceptions trying to open MediaStore Uris when applications are given access to a MediaStore Uri via an Intent (#3504, 9c48b48)
    • ๐Ÿ›  Fix an unused AnimationExecutor (7bb6f11, thanks to @phxnirvana)

    ๐Ÿ—„ Deprecations

    • ๐Ÿ—„ Deprecate method to set custom tags in CustomViewTarget (c8d646e)

    Behavior Changes

    • Custom tags in CustomViewTarget are now ignored because they cause Glide to ignore calls to clear() (c8d646e)

    ๐Ÿ’ฅ Breaking Changes

    ๐Ÿ— Build Changes