Releases: Kamel-Media/Kamel
Releases · Kamel-Media/Kamel
v0.9.3
- Update cache4k with potential ConcurrentModificationException jvm fix
- Updates
coroutines
to1.8.0
Wasm build also published with 0.9.3-wasm
v1.0.0-beta.1
Breaking changes
- Change
media.kamel:kamel-image
->media.kamel:kamel-image-default
for the same behavior as pre 1.0.0 releases. - 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 inkamel-core
. - #96
media.kamel:kamel-image-default
Includes all includes all packages besideskamel-decoder-svg-batik
- Adds a
FileUrlFetcher
to support loading non-resource local files String
mapper will now handlefile:///
uris:asyncPainterResource("file:///$absolutePath")
Try it out here:
implementation("media.kamel:kamel-image-default:1.0.0-beta.1")
or to pick and choose features:
implementation("media.kamel:kamel-image:1.0.0-beta.1")
implementation("media.kamel:kamel-decoder-image-bitmap:1.0.0-beta.1")
implementation("media.kamel:kamel-decoder-image-vector:1.0.0-beta.1")
implementation("media.kamel:kamel-decoder-svg-batik:1.0.0-beta.1")
implementation("media.kamel:kamel-decoder-svg-std:1.0.0-beta.1")
implementation("media.kamel:kamel-fetcher-resources-jvm:1.0.0-beta.1")
implementation("media.kamel:kamel-fetcher-resources-android:1.0.0-beta.1")
implementation("media.kamel:kamel-mapper-resources-id-android:1.0.0-beta.1")
// you also must ensure you define your own ktor engine for each target when using `kamel-image`
v0.9.2 & v0.9.2-wasm!
- Kotlin
1.9.22
- Compose
1.5.12
Initial wasmJs Support
wasmJs
is still a work in progress: blockers / issues- Test it out with:
implementation("media.kamel:kamel-image:0.9.2-wasm")
v0.9.1
v0.9.0
v0.8.3
v0.8.2
v0.8.1
v0.8.0
NEW
- Huge shoutout to @psuzn for #61 which adds a persistent disk cache implementation by leveraging ktor's
CacheStorage
feature
Disk Cache size (in MiB)
Kamel can now create a persistent disk cache for images by implementing ktor's CacheStorage
feature.
The default config KamelConfig.Default
installs this feature with a 10 MiB disk cache size.
The underlying disk cache is based on coil's multiplatform DiskLruCache implementation, (which itself is a port from libcore disklrucache).
KamelConfig {
httpFetcher {
// The size of the cache can be defined in bytes. Or `DefaultHttpCacheSize` (10 MiB) can be used.
httpCache(DefaultHttpCacheSize)
}
}