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 sketch to v4.0.0-beta02 #516

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update sketch to v4.0.0-beta02 #516

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 7, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
io.github.panpf.sketch4:sketch-view 4.0.0-alpha08 -> 4.0.0-beta02 age adoption passing confidence
io.github.panpf.sketch4:sketch-video-ffmpeg 4.0.0-alpha08 -> 4.0.0-beta02 age adoption passing confidence
io.github.panpf.sketch4:sketch-svg 4.0.0-alpha08 -> 4.0.0-beta02 age adoption passing confidence
io.github.panpf.sketch4:sketch-extensions-compose 4.0.0-alpha08 -> 4.0.0-beta02 age adoption passing confidence
io.github.panpf.sketch4:sketch-compose 4.0.0-alpha08 -> 4.0.0-beta02 age adoption passing confidence

Release Notes

panpf/sketch (io.github.panpf.sketch4:sketch-view)

v4.0.0-beta02

Compare Source

core:

  • fix: Fixed a bug that caused REMOVE records to be lost due to disk cache being killed, and
    re-initialization did not verify whether the file existed, causing size()
    exceptions. #​219

animated:

  • fix: Fixed the bug that the dependency of sketch-animated-heif accidentally included the local
    test module. #​220

v4.0.0-beta01

Compare Source

core:

  • remove: Remove Image.getPixels()
  • remove: Remove the AnyThread, MainThread, IntRange, and IntDef annotations under the '
    com.github.panpf.sketch.annotation' package and use the alternatives under the '
    androidx.annotation' package
  • change: Merge AndroidBitmapImage and SkiaBitmapImage into BitmapImage
  • change: DrawableEqualizer renamed to EquitableDrawable
  • change: Remove AndroidBitmap, SkiBitmap, SkiaImageInfo, SkiaImage, SkiaRect
  • change: SkiaAnimatedImage renamed to AnimatedImage
  • change: ImageRequest's registerListener and registerProgressListener methods renamed to
    addListener and addProgressListener
  • new: Added ComponentLoader, which supports automatic detection and registration of Fetcher and
    Decoder components. All components in the built-in module are supported.

compose:

  • fix: Fix the bug that the filterQuality parameter of AsyncImage is
    invalid. #​211
  • remove: Remove ComposeBitmapImage
  • remove: Remove PainterState.Empty
  • change: PainterEqualizer renamed to EquitablePainter
  • change: ComposeImagePainter renamed to ImageBitmapPainter, SkiaAnimatedImagePainter renamed to
    AnimatedImagePainter

view:

  • fix: Fix the bug that the image cannot be loaded when the ImageView is attached to the window but
    size is null due to padding. #​208

decode:

  • change: Decoder's decode() method removes the suspend modifier and changes the return type from
    Result to DecodeResult
  • change: BitmapConfig refactored to BitmapColorType
  • new: Non-Android platforms now also support ColorType
  • new: Non-Android platforms now also support ColorSpace
  • new: DrawableDecoder supports colorSpace

fetch:

  • change: The parameter passed in Fetcher.Factory.create() is changed to RequestContext

cache:

  • change: SkiaBitmapImage is now cached in the memory cache on non-Android platforms, not
    ComposeBitmapImage.
  • change: The default memory cache size is now 256MB for desktop and web platforms and 128MB for ios
    platforms

http:

  • remove: Removed the setHttpHeader() and addHttpHeader() methods of ImageRequest.Builder and
    ImageOptions.Builder
  • change: Remove the sketch-http-core module, add the sketch-http-hurl module, rename the
    sketch-http-ktor module to sketch-http-ktor2 and no longer support wasmJs, add the
    sketch-http-ktor3 module

animated:

  • fix: Fixed the bug that on non-Android platforms, animations set repeatCount and do not stay on
    the last frame after playing, but stay on the first
    frame. #​212
  • fix: Fixed the bug that GifDrawable and MovieDrawable could not apply animatedTransformation
    correctly. #​214
  • fix: Fixed the bug that the repeatCount setting of GifDrawableDecoder should be increased by 1 by
    mistake. #​215
  • change: Split the sketch-animated module into sketch-animated-core and sketch-animated-gif,
    sketch-animated-webp, sketch-animated-heif, sketch-animated-koralgif module and rename it to
    sketch-animated-gif-koral
  • improve: animatedTransformation now supports non-Android platforms

transformation:

  • fix: Fix the bug that CircleCrop, Rotate, RoundedCorners Transformation does not work at
    RGB_565. #​209
  • fix: Fixed the bug that Transformations such as blur and rotate on the Android platform did not
    keep the ColorSpace unchanged. #​213
  • change: Transformation's transform() method removes the suspend modifier

state:

  • change: The type of error attribute of ImageRequest and ImageOptions changed from ErrorImageState
    to StateImage
  • change: ErrorImageState is refactored into ConditionStateImage, and ConditionStateImage can be
    used in placeholder and fallback
  • improve: Improve IconDrawable, support fixed-size background and restrict icons to have fixed
    sizes or specify iconSize
  • improve: Improve IconPainter, support fixed-size background and restrict icons to have fixed sizes
    or specify iconSize
  • new: Added 'Drawable.asStateImage(Any)' and 'ColorDrawable.asStateImage()' extension functions

extensions:

  • fix: Fixed the bug that the equals method of RingProgressDrawable, SectorProgressDrawable,
    RingProgressPainter, SectorProgressPainter did not execute as
    expected. #​210
  • change: Split the sketch-extensions-apkicon and sketch-extensions-appicon modules from the
    sketch-extensions-core module

other:

  • depend: Upgrade kotlin 2.0.21, kotlinx coroutines 1.9.0
  • depend: Upgrade jetbrains compose 1.7.0, jetbrains lifecycle 2.8.3

Configuration

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title Update sketch to v4.0.0-beta01 Update sketch to v4.0.0-beta02 Nov 11, 2024
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