Update dependency media.kamel:kamel-image to v1 #165
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.9.4->1.0.8Release Notes
Kamel-Media/Kamel (media.kamel:kamel-image)
v1.0.82.2.201.9.0v1.0.72.2.01.8.2Fixes
v1.0.62.1.211.8.1v1.0.52.1.201.8.0Fixes
kamel-decoder-animated-imageLowers the androidminSdkto 21 and returns a runtime error inonFailureif attempting to use on less than android 28v1.0.32.1.01.7.3Fixes
androidMainorcommonMainin compose preview in latest Intellij EAPv1.0.22.1.01.7.1v1.0.12.0.211.7.0v1.0.0v1.0.0 Release!
2.0.211.6.113.0.0v0.x -> v1.x notes:
New
media.kamel:kamel-imageis 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.media.kamel:kamel-image-defaultIncludes all includes all packages besideskamel-decoder-svg-batikFileUrlFetcherto support loading non-resource local filesStringmapper will now handlefile:///uris:asyncPainterResource("file:///$absolutePath")implementation("media.kamel:kamel-decoder-image-bitmap-resizing:1.0.0-beta.6")and addimageBitmapResizingDecoder()to yourKamelConfigBreaking changes
media.kamel:kamel-image->media.kamel:kamel-image-defaultfor the same behavior as pre 1.0.0 releases.Depreciated
BoxWithConstraintsScopescoped resource in that can support image resizingSetup
Default Setup
Add the dependency to the common source-set or to any platform source-set:
kotlin { sourceSets { commonMain { dependencies { implementation("media.kamel:kamel-image-default:1.0.0") // no need to specify ktor engines, one is included for each target // ... } } } }Granular Setup
For a more granular setup, you can choose which modules to include in your project:
kotlin { sourceSets { commonMain { dependencies { // core module (required) implementation("media.kamel:kamel-image:1.0.0") // Note: When using `kamel-image` a ktor engine is not included. // To fetch remote images you also must ensure you add your own // ktor engine for each target. // optional modules (choose what you need and add them to your kamel config) implementation("media.kamel:kamel-decoder-image-bitmap:1.0.0") implementation("media.kamel:kamel-decoder-image-bitmap-resizing:1.0.0") // android only right now implementation("media.kamel:kamel-decoder-image-vector:1.0.0") implementation("media.kamel:kamel-decoder-svg-batik:1.0.0") implementation("media.kamel:kamel-decoder-svg-std:1.0.0") implementation("media.kamel:kamel-decoder-animated-image:1.0.0") implementation("media.kamel:kamel-fetcher-resources-jvm:1.0.0") implementation("media.kamel:kamel-fetcher-resources-android:1.0.0") // ... } } jvmMain { dependencies { // optional modules (choose what you need and add them to your kamel config) implementation("media.kamel:kamel-fetcher-resources-jvm:1.0.0") // ... } } androidMain { dependencies { // optional modules (choose what you need and add them to your kamel config) implementation("media.kamel:kamel-fetcher-resources-android:1.0.0") // ... } } } }Granular Setup: Ktor HttpClient Engine
When using
kamel-imagektor engines are not included per target.In order to fetch remote images you also must ensure you add your own ktor engine for each target.
You can find the available engines here.
v0.9.52.0.01.6.100.9.5-wasmConfiguration
📅 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 this update again.
This PR was generated by Mend Renovate. View the repository job log.