皇上,还记得我吗?我就是1999年那个Linux伊甸园啊-----24小时滚动更新开源资讯,全年无休!

Glide v4.14.0 发布

Glide v4.14.0 发布

Features

  • Add support for KSP (See Download and Setup and Generated API Deprecation for details on how to use the KSP processor and the features it does and does not support, 2a787b98bef56e272c6c39f04fd04016448c35ad13).
  • Add an alpha version of a Compose integration (Docs)
  • To support the Compose integration, add an alpha version of general Kotlin support, starting with utilities to convert a Glide request into a Flow (Docs7d9e1a3)
  • Enable animated WebP Decoding on P+ using framework APIs (ad35f5e)
  • Allow Drawables to be loaded with specific themes (17cae33)

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 (3633e958875d30fd5e7dfb8fb588, thanks @TacoTheDank)
  • Update to Gradle 7+ (fdbb694)
  • Fix some deprecation warnings in Gradle (31e7ce32895b35, 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)