Skip to content

v1.0.0-beta.7

Pre-release
Pre-release
Compare
Choose a tag to compare
@luca992 luca992 released this 10 Oct 19:09
· 64 commits to main since this release

Beta 7 notes:

  • Ktor 3.0.0-beta-2: (in maven central with wasm support)
    • Meaning you can remove maven(url = "https://maven.pkg.jetbrains.space/public/p/ktor/eap") as a repository to use the beta in your project.
  • kotlin 2.0.0
  • compose 1.6.11

v0.x -> v1.x notes:

Depreciated

Breaking changes

  • Change media.kamel:kamel-image -> media.kamel:kamel-image-default for the same behavior as pre 1.0.0 releases.
  • Old Depreciated methods removed

New

  • #96 With media.kamel:kamel-image is now bare bones and lets you pick and choose all mappers, fetchers, and decoders to import into your project that are not included in kamel-core.
  • #96 media.kamel:kamel-image-default Includes all includes all packages besides kamel-decoder-svg-batik
  • Adds a FileUrlFetcher to support loading non-resource local files
  • String mapper will now handle file:/// uris: asyncPainterResource("file:///$absolutePath")
  • Adds gif support! #12 with #100 by @luca992
  • Prevent out of memory exceptions for xl images with experimental Image resizing image bitmap decoder (Android only right now) #105 by @luca992
    • To try out add implementation("media.kamel:kamel-decoder-image-bitmap-resizing:1.0.0-beta.6") and add imageBitmapResizingDecoder() to your KamelConfig

Try it out here:

implementation("media.kamel:kamel-image-default:1.0.0-beta.7")
// no need to specify your own ktor engines, one is included for each target

or to pick and choose features:

implementation("media.kamel:kamel-image:1.0.0-beta.7")

implementation("media.kamel:kamel-decoder-image-bitmap:1.0.0-beta.7")
implementation("media.kamel:kamel-decoder-image-bitmap-resizing:1.0.0-beta.7") // android only right now
implementation("media.kamel:kamel-decoder-image-vector:1.0.0-beta.7")
implementation("media.kamel:kamel-decoder-svg-batik:1.0.0-beta.7")
implementation("media.kamel:kamel-decoder-svg-std:1.0.0-beta.7")
implementation("media.kamel:kamel-decoder-animated-image:1.0.0-beta.7")

implementation("media.kamel:kamel-fetcher-resources-jvm:1.0.0-beta.7")
implementation("media.kamel:kamel-fetcher-resources-android:1.0.0-beta.7")

implementation("media.kamel:kamel-mapper-resources-id-android:1.0.0-beta.7")

// you also must ensure you define your own ktor engine for each target when using `kamel-image` for remote images