android icon indicating copy to clipboard operation
android copied to clipboard

Update dependency com.github.bumptech.glide:glide to v4

Open renovate[bot] opened this issue 1 year ago • 2 comments
trafficstars

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.github.bumptech.glide:glide 3.8.0 -> 4.16.0 age adoption passing confidence

Release Notes

bumptech/glide (com.github.bumptech.glide:glide)

v4.16.0: Glide 4.16.0

This release focuses on some build improvements and Compose. The two major Compose improvements are adding support for Compose specific transitions (e.g. cross fade) and supporting recomposition based on request state using GlideSubcomposition. There's also been a bunch of internal refactoring to move away from Painters to Modifier nodes based on feedback from the Compose team. This is still an alpha release of Compose, but barring unexpectedly negative feedback, the next release should be beta.

This should be the last release of Glide that targets Java 7. That probably means our next release will be a major version change.

Features
Compose
Bugs
Deprecations
  • placeholderOf(@​Composable) in GlideImage is deprecated, use GlideSubcomposition instead. Keep in mind that using either forces a recomposition each time the state of the image load changes. Recomposition will have a significant performance penalty in scrolling lists and should be avoided.
Behavior Changes
Breaking Changes
Build Changes
New Contributors

Full Changelog: https://github.com/bumptech/glide/compare/v4.15.0...v4.16.0

Note - there's been a change in the gpg key used to sign these releases. The new public key is attached

v4.15.1: Glide v4.15.1

Features
Compose
Bugs
  • Fix a bug in the KSP processor preventing it from recognizing or including any of Glide's library modules, or any other library module compiled with Glide's java annotation processor (com.github.bumptech.glide:compiler:X.XX.X). (#​5043, 16306e8)
Deprecations
Behavior Changes
Breaking Changes
Build Changes

v4.15.0: Glide v4.15.0

Features

Compose

  • Add loading and failure composable parameters so you can set a custom composable while Glide is loading or after an image load fails (d5fc241)
  • Make automatic transformations based on ContentScale optional (89472a3, #​4943)
  • Avoid throwing exceptions when Composables have unexpected sizes (6cb9486)
  • Simplify the preloading API by providing a data wrapper that triggers preloading based on access (e63c5d2)
  • Show placeholder resources in Compose previews (01ed966, 0f9aea2)

Bugs

  • Workaround VP8 decoding issues on ARC devices (4bfda58)
  • Improve error messages when Glide is recursively initialized or application code throws during Glide's initialization (00e8c23)
  • Fix a race that can result in RequestManagers leaking (4affb8d)

Deprecations

Behavior Changes

  • Use Android's Lifecycle for androidx Fragments / Activities instead of adding a hidden Fragment (18bba92)

Breaking Changes

Build Changes

v4.14.2: Glide v4.14.2

Bugs

Behavior Changes

  • Proper implementation of equals/hashcode for BaseRequestOptions and TransitionOptions subclasses. Previously comparing these objects was either not symmetric or certain properties were not included in equals() and hashCode(). Code that relied on the equals/hashcode methods may break if it accidentally relies on the old bad behavior. (f3d6ff7)

v4.14.1: Glide v4.14.1

Bugs

v4.14.0: Glide v4.14.0

Features
Bugs
  • Register connectivity listeners on API < 24 on background threads (96596ae)
  • Disable ParcelFileDescriptor rewinding in Robolectric (9840c91)
  • Rewind ByteBuffers in between each image header parser to avoid spurious failures when multiple parsers read data (4f29ada)
  • Avoid duplicate notifications of Targets when an error request builder is set (5c232dd)
  • Use the correct run reason in DecodeJob (1a2cfe3)
Deprecations
  • Deprecate Glide's Extensions, GlideApp, GlideRequest and GlideRequests. Extensions seem to be rarely used and add a lot of complexity to the otherwise fairly simple annotation processor. They're also trivially replicated with Kotlin's extension functions for people who're already using Kotlin. Without Extensions, GlideApp, GlideRequest and GlideRequests serve no additional purpose. Prior to Glide 4.9.0 they were used to merge RequestBuilder and RequestOptions, but now that's done in the library without codegen. See Generated API Deprecation for details.
  • Deprecate Android framework Fragment support. Applications should use androidx Fragments instead, which we'll continue to support (e802964)
Behavior Changes
  • Initialize Glide's registry on a background thread to avoid some work on the main thread (6ba4b54)
  • Update the state of a Request before calling Targets or RequestListeners. Request is generally treated as an internal API but it's possible this could result in some changes to the behavior of custom Targets or RequestListeners that try to use Request to introspect state (c38ce36)
Breaking Changes
Build Changes

v4.13.2: Glide v4.13.2

Bugs

v4.13.1: Glide v4.13.1

Bugs

v4.13.0: Glide 4.13.0

Features

Bugs

  • Improve performance of canceling pending requests (https://github.com/bumptech/glide/commit/627d04af1ec5d81c23908c27e1a646806dce7b30, thanks @​yorickhenning)
  • Improve memory overhead when decoding byte[] and ByteBuffer (https://github.com/bumptech/glide/commit/042f6b57d511c9d1652d280f5d385d5fef071647)
  • Avoid returning duplicate transcode classes in the registry (https://github.com/bumptech/glide/commit/ce8b5e31d7c8ee8e98725142b9c22c478f78cefd, thanks @​fightyz)
  • Avoid cancelling higher tier (usually higher resolution) preload requests when a lower tier completes (https://github.com/bumptech/glide/commit/4733d1d3309e0f9af1e751f266c5fb0f9fd3a9ce)
  • Decrease the maximum FD size limit for certain devices to avoid native crashes (808a685)
  • Fix memory leak caused by unusual activity/fragment lifecycle interactions (8bebf71)
  • Fix decoding videos from assets (52a8cf8)

Deprecations

  • Deprecate .thumbnail(float) to simplify the thumbnail logic, particularly around request listeners. The same behavior can be easily reproduced by using .thumbnail() with a RequestBuilder on which you set size multiplier. (https://github.com/bumptech/glide/commit/aa23eedb79196c29c61b366d8c9b93c34564fe09)

Behavior Changes

  • Set the default color space to null instead of SRGB (https://github.com/bumptech/glide/commit/ce6852d372b2b6fe6d52fe039b7003b1891a8435, https://github.com/bumptech/glide/commit/9dc1f608540039c29931c22e7c7512caa842fe90, thanks @​skyinu)
  • Fallback to decoding data from source if possible when writing the source to the disk cache fails (https://github.com/bumptech/glide/commit/755c39fb1ff49895ada9f13d808fa46153112980)
  • Avoid using deprecated APIs for detecting connectivity state on API 24+ (dbdae56, 833ef21)
  • Added support for detecting animated webp's to Glide's ImageHeaderParser (42654b2)

Breaking Changes

Build Changes

  • Bump Gradle version once, then replace gradle version with a checked internal one (https://github.com/bumptech/glide/pull/4484, https://github.com/bumptech/glide/commit/9f813390646d2cdaecece8fd96fa7fd8b8605217, https://github.com/bumptech/glide/commit/15d96483d36099a1d088cef4a5bccc234fc66ec4, thanks @​EwoutH)
  • Replace Jcenter with Maven Central (https://github.com/bumptech/glide/commit/0d3204907f09c713e9dcf104e879b4dea8c2f5f6, https://github.com/bumptech/glide/commit/87a77cea15a0eed253fabc57ff36a1f9b3556fff)

v4.12.0: Glide 4.12.0

Features
  • Add a Cronet integration library (ba99582, ff29849, 114251e, 1dd0576, 3d54ef5)
  • Add support for width/height to the SvgDecoder in the sample app (@​chggr, 5a814a1)
  • Add a thumbnail method that takes a list of RequestBuilders so that you don't have to nest a long series of requests (67b01f6)
  • Add a .error() method that takes a model to more easily start a fallback request. There's a bit of nuance with how this is treated, so if you use it, please read the javadoc carefully (d1aacb5, e442557)
Bugs
  • Hardcode disallowed device models for hardware Bitmaps (0647c41, 90a657b, ddb3934)
  • Fix flickr sample by allowing non-https urls (@​landicefu, b2a361a)
  • Fix a verificatio nerror in ParcelFileDescriptorRewinder on API levels < 21 (@​mkj-gram , 5b117b3)
  • Fix never returning larger size keys in Flickr sample (@​valentinilk, 78ecfd2)
  • Fix bugs caused by items changing sizes while in Glide's LruCache (5090b6d)
  • Fix annotation processor with more than 5 library modules on some platforms (#​4106, 7cc865a)
  • Fix ConcurrentModificationException due to race in Glide's trimMemory method (#​4162, cce9375)
  • Note that RequestListener.onLoadFailed's model is Nullable (@​opayen, 621e2d5)
  • Fix an IllegalArgumentException in GifFrameLoader if the GIF is started before it's visible (@​dalinaum, 1ae9a2a)
  • Avoid adding both support and non-support RequestManagers when Glide is used with a FragmentActivity as both a FragmentActivity and a regular Activity (8f354dc)
  • Avoid a memory leak when starting RequestManagers in some cases (14a0e1a)
  • Workaround a JDK bug triggered sometimes by Registry (6aa7ad2)
  • Progress on some workarounds to avoid obscure Hardware Bitmap issues on versions of Android< P (edd96d8, 8584b45, a3a3a65, b0a7efe, 7d7042c, b451065)
  • Avoid claiming annotations in Glide's processor (@​cushon, e9e5a2e)
  • Fix issues with clone/autoclone in RequestBuilder (332807a, 11530fd)
  • Fix a bug where we could decode partial images for large PNG files where obtaining the metadata caused us to skip past the limit of our buffer (danfang@, 2b61482)
  • Make sure to rethrow in our exception handling streams to workaround an infinite loop in ExifInterface (59ec98c)
  • Reduce the number of stat() syscalls in Glide's startup (5acc99f)
Deprecations
Behavior Changes
  • Better http status codes in HttpUrlFetcher failures (efe8023)
Breaking Changes
Build Changes

v4.11.0: Glide 4.11.0

Features
  • Add a thread timeout for Glide's threads to reduce memory when Glide is infrequently used in an application (db3acef)
  • Add getters to Bitmap Pool for cache statistics (1382e56, thanks to vtsuei@)
  • Add methods to concurrent integration libraries that allow releasing resources back to Glide's pool (2777657)
  • Allow decoding videos from ByteBuffers so that remote videos can be decoded when using a disk cache strategy other than the default (9190698, #​4021)
Bugs
  • Improve ModelLoader error text (83ba102)
  • Fix errors with thumbnail loaders that could cause flashing to placeholders (690f815)
  • Fix an exception using Arrays.addAll on some devices/versions of Android (42d3f07)
  • Work around framework bug that breaks heic/heif decoding on Android Q for applications that opt in to legacy storage or request ACCESS_MEDIA_LOCATION (1c51b24)
  • Improve hardware bitmap use on P+ where more file descriptors are available (e8c841c)
  • Avoid removing caller added listeners in GlideFutures (0acd87c)
  • Avoid propagating unexpected callbacks from cancelled or failed model loaders (7e750ca)
  • Switch to the support exif library to avoid spurious logs (bd6f894, #​3851)
  • Fix deadlock when recursively clearing resources, typically GIFs (100ac4a)
Deprecations
Behavior Changes
  • Allow decoding files via FileDescriptors when all other types fail so that files with headers exceeding the buffer size can be decoded (typically DNGs with metadata at the end of the file (9281d8e, thanks to timurrrr@)
Breaking Changes
Build Changes

v4.10.0: Glide 4.10.0

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

v4.9.0: Glide 4.9.0

Features

  • Allow applying RequestOptions directly in a RequestBuilder without the generated API (ed20643)

For example previously to apply centerCrop you'd have use a static method and apply():

Glide.with(fragment)
   .load(url)
   .apply(centerCropTransform())
   .into(imageView);

Or use the generated API and the annotation processor:

GlideApp.with(fragment)
   .load(url)
  .centerCrop()
  .into(imageView);

After this change, even without the generated API/annotation processor you can access standard RequestOptions methods directly:

Glide.with(fragment)
  .load(url)
  .centerCrop()
  .into(imageView);

The generated API is still required for API extensions and to include integration libraries. Hopefully this makes it easier for users who do not include integration libraries and for developers of libraries that are currently unable to use the generated API to use Glide.

  • Add Global/Activity/Fragment scoped RequestListeners (37127f0)
  • Add a CustomTarget class to make it easier to reduce some non-essential boilerplate when implementing custom Targets. onLoadCleared still must be implemented by subclasses of CustomTarget (b3b2d7a)
  • Support loading resources from dynamic modules (#​3308, b57ef34, thanks to @​SUPERCILEX)
  • Add a varargs .transform() method to replace the equivalent .transforms() method (#​2875, #​3365, 8a26a6b, thanks to @​aleien)
  • Make proguard rules consumable by users of the library (f7d8604, thanks to @​rehlma)
  • Stop forcing all requests to be posted to the main thread to avoid unnecessary UI thread work and avoid delays caused by UI thread processing time for images loaded on background threads (8f1ea5c)
  • Add Animatable2Compat callbacks to GifDrawable so that users can be notified when a GIF animation with a non infinite loop count finishes (#​3438, a150301, thanks to @​AnwarShahriar)

Bugs

  • Fixed an issue where different types of requested resources (Bitmap vs Drawable etc) could share a cache key (cad83d2)
  • Work around an odd compiler bug creating new ArrayLists from other collections on some devices/versions of Android (#​3296, 2ca790a)
  • Add Nullable/NonNull annotations to LazyHeaders.Builder (#​3446, d6345fb, thanks to @​r-ralph)
  • Add a transformation to rotate images (other than from EXIF) (1878585, thanks to @​Gnzlt)
  • Fix a race that could lead to doing useless work in MultiModelLoader after cancellation (3c9f92f)
  • Fix a bug in SizeConfigStrategy that could lead to a returned Bitmap having an incorrect config (be51b4e)
  • Avoid classifying all images with non-0 exif orientations as having transparency to allow them to be cached as JPEGs instead of PNGs (e515f47)
  • Add a debug API that allows apps to attach a stack trace showing where a Glide request originated from. Note that this is fairly expensive and isn't meant to be used in production (114b885)
  • Fix bugs handling resource Uris that point to resources in other applications (e2df4d0)

Deprecations

  • Deprecated .transforms(), it's replaced with the identical .transform() method (8a26a6b)

Behavior Changes

  • RequestListeners for requests started on background threads can now be called on a background thread (8f1ea5c)

Breaking Changes

  • Subclasses of RequestBuilder/RequestOptions may be broken by ed20643. Typically the breakage is relatively simple to fix, but the exact methods that need to be called or that are exposed may have changed for subclasses.

Build Changes

v4.8.0: Glide 4.8.0

Features

  • Multiple RequestListeners can be added to a single request (9328999, thanks to Adrian)
  • Added a safer version of Glide's base target methods that force callers to implement onLoadCleared and deprecated the unsafe versions. Failing to implement onLoadCleared in a Target can lead to UIs displaying incorrect images, runtime exceptions, or various other resource re-use errors (3a70607, thanks to azlatin@).

Bugs

  • HEIF orientation is supported on O MR1 and higher via ExifInterface (a3f8114)
  • Improved error message for network failures (#​2894, ff463d7)
  • Placeholder/error/fallback drawable and id variants now replace previous calls to the same method with the other variant. For example, placeholder(Drawable) will replace previous calls to .placeholder(R.id.xyz)(2dccb5c)
  • Improved synchronization in ModelLoaderRegistry (62e6c11, thanks to @​jnlopar)

Deprecations

  • Deprecated SimpleTarget and ViewTarget, see the CustomViewTarget description in Features in these release notes for more detail.

Behavior Changes

  • Requests that are started with a paused RequestManager, usually in a paused Activity or Fragment, are immediately paused so that they display a placeholder instead of nothing (a55e935)

Breaking Changes

  • The deprecated PREFER_ARGB_8888_DISALLOW_HARDWARE DecodeFormat has been removed. Use RequestOptions#disallowHardwareConfig() instead (7eb59f7)
  • Remove pause() and isPaused() from the internal Request interface (9089752)
  • Glide now uses resource ids (in CustomViewTarget) and therefore can no longer be released as a straight jar.

Build Changes

v4.6.1: Glide 4.6.1

This is a bugfix release of Glide 4.6.0

Bugs

Fixes an issue where pom files in the 4.6.0 release did not list the appropriate dependencies for Glide's various components (#​2863)

v4.6.0: Glide 4.6.0

This is the January release of Glide.

Features

  • Use buffered streams when writing Bitmap data (860f7d0)
  • Allow re-using ARGB_8888 and RGBA_F16 Bitmaps via re-configuration (2cd953c, 17e0943)

Bugs

  • Return the correct size of RGBA_F16 Bitmaps in Util.getBitmapByteSize to avoid obtaining incorrectly sized Bitmaps for re-use in Downsampler (a198ef6)
  • Avoid converting RGBA_F16 Bitmaps to ARGB_8888 when running transformations that add transparent pixels (73277df)
  • Avoid an exception when loading remote images that aren't yet in the cache as Files with DiskCacheStrategy.AUTOMATIC (0917ef3, #​2824)
  • Avoid inefficiently trying identical parts of load paths multiple times (9d3a6ff, thanks to paulsowden@)

Behavior Changes

  • Wide gamut PNGs that were decoded as RGBA_F16 even when BitmapFactory’s inConfig was set to ARGB_8888 may be affected by improved handling of RGBA_F16 when decoding and transforming images. If you see any issues decoding or transforming PNGs on Android O or higher, please file an issue so we can investigate.

Breaking Changes

Build Changes

  • Cut build times for Glide by around a factor of two by parallelizing static analysis and unit test tasks on the main library package and removing the redundant release variants across all modules (3968ccb, 1c7434a, 3af80f4, 95637cf)

v4.5.0: Glide 4.5.0

This is the December release of Glide.

Features

  • Add an API to pause all requests for a given Activity or Fragment to allow callers to manually reduce memory when their Fragment or Application is backgrounded (@​kurtisnelson, 09e33a2)
  • Fully support Bitmap re-use for RGBA_F16 Bitmaps. Previously Glide supported decoding RGBA_F16 Bitmaps, but would not re-use any stored in the BitmapPool when doing so (cc0288c)
  • Support decoding Videos from resources as AssetFileDescriptors (6e9866b)
  • Added support for the [MediaMetadataRetriever#getScaledFrameAtTime][2] method added in OMR1 to marginally reduce memory usage when decoding video frames (ded8f77)
  • Support transcoding BitmapDrawables to byte[]s (015d265)

Bugs


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • [ ] If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

renovate[bot] avatar Feb 04 '24 17:02 renovate[bot]

test-Unit test failed, but no output was generated. Maybe a preliminary stage failed.

github-actions[bot] avatar Apr 18 '24 19:04 github-actions[bot]

blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed.

github-actions[bot] avatar Apr 18 '24 19:04 github-actions[bot]

test-Unit test failed, but no output was generated. Maybe a preliminary stage failed.

github-actions[bot] avatar Jul 24 '24 21:07 github-actions[bot]

blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed.

github-actions[bot] avatar Jul 24 '24 21:07 github-actions[bot]