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

Update glide to v4.16.0 #28

Merged
merged 1 commit into from
Aug 27, 2023
Merged

Update glide to v4.16.0 #28

merged 1 commit into from
Aug 27, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 24, 2023

Mend Renovate

This PR contains the following updates:

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

Release Notes

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

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: bumptech/glide@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

  • Allow LibraryGlideModules to be processed in separate code modules when using KSP (#​4911, 5245e82)
  • Fix recomposition when properties of RequestBuilder change (#​4916, f3d6ff7)

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
  • Removed Spotless (edf9d32)
  • gradle.properties versioning cleanup (3633e95, 8875d30, fd5e7df, b8fb588, thanks @​TacoTheDank)
  • Update to Gradle 7+ (fdbb694)
  • Fix some deprecation warnings in Gradle (31e7ce3, 2895b35, thanks @​TacoTheDank)
  • Use a version of jarjar from maven rather than embedding a jar (faf85ec)
  • Removed the exif orientation example dependency in favor of our own custom images (6640376)
  • Target API 32 and make Glide's tests target Java 11 (839899d)
  • Build both the release and debug flavors again since they're each required by different gradle plugins we use (f86db6f)
  • CI optimization (c30aee9, thanks @​Goooler)
  • Integrate Dokka to build Glide's javadocs for our documentation page (e5a29be)

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

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. (bumptech/glide@aa23eed)

Behavior Changes

Breaking Changes

Build Changes

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
  • Add a Gradle Wrapper Validation Github Action (@​JLLeitschuh, d75bb30)
  • Removed Monkeyrunner (5aa0b4f)
  • Update ExifInterface version to 1.2.0 (85868bd)
  • Switch from travis-ci to Github actions for presubmits (dbdb62c)

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

Configuration

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

🚦 Automerge: Enabled.

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

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


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

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/glide branch 5 times, most recently from 8593723 to 5f0bd42 Compare August 27, 2023 02:28
@renovate renovate bot merged commit e1bcaee into main Aug 27, 2023
1 check passed
@renovate renovate bot deleted the renovate/glide branch August 27, 2023 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants