Skip to content

Commit

Permalink
release: v4.0.0-alpha03
Browse files Browse the repository at this point in the history
  • Loading branch information
panpf committed Jun 27, 2024
1 parent 63e0217 commit cf25247
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ Translations: [简体中文](CHANGELOG_zh.md)
> 2. The maven groupId is upgraded to `io.github.panpf.sketch4`, so versions 2.\* and 3.\* will not
prompt for upgrade.

# new
# 4.0.0-alpha03

* change: ComposeBitmapValue renamed to ComposeBitmapImageValue
* improve: Painter.asSketchImage() now returns PainterImage; ComposeBitmap.asSketchImage() now returns ComposeBitmapImage
* new: ImageRequest.Builder and ImageOptions.Builder add sizeWithView(), sizeWithDisplay(), size(IntSize) extension functions
* change: Refactor enqueueDownload() and executeDownload() and move from sketch-extensions-core module to sketch-core module
* change: Refactor Sketch.enqueueDownload() and executeDownload() and move from sketch-extensions-core module to sketch-core module
* change: LongImageClipPrecisionDecider renamed to LongImagePrecisionDecider, LongImageStartCropScaleDecider renamed to LongImageScaleDecider
* change: Revert to using screen size as final Size when building ImageRequest
* improve: Painter.asSketchImage() now returns PainterImage; ComposeBitmap.asSketchImage() now returns ComposeBitmapImage
* new: ImageRequest.Builder and ImageOptions.Builder add sizeWithView(), sizeWithDisplay(), size(IntSize) extension functions

# 4.0.0-alpha02

Expand Down
8 changes: 4 additions & 4 deletions CHANGELOG_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
> 1. 4.x 版本为兼容 Compose Multiplatform 而进行了大量破坏性重构和简化,不兼容 3.x 版本
> 2. maven groupId 升级为 `io.github.panpf.sketch4`,因此 2.\*、3.\* 版本不会提示升级
# new
# 4.0.0-alpha03

* change: ComposeBitmapValue 重命名为 ComposeBitmapImageValue
* improve: Painter.asSketchImage() 现在返回 PainterImage; ComposeBitmap.asSketchImage() 现在返回 ComposeBitmapImage
* new: ImageRequest.Builder 和 ImageOptions.Builder 新增 sizeWithView()、sizeWithDisplay()、size(IntSize) 扩展函数
* change: 重构 enqueueDownload() 和 executeDownload() 并从 sketch-extensions-core 模块移到 sketch-core 模块
* change: 重构 Sketch.enqueueDownload() 和 executeDownload() 并从 sketch-extensions-core 模块移到 sketch-core 模块
* change: LongImageClipPrecisionDecider 重命名为 LongImagePrecisionDecider, LongImageStartCropScaleDecider 重命名为 LongImageScaleDecider
* change: 恢复在构建 ImageRequest 时使用屏幕大小作为最终的 Size
* improve: Painter.asSketchImage() 现在返回 PainterImage; ComposeBitmap.asSketchImage() 现在返回 ComposeBitmapImage
* new: ImageRequest.Builder 和 ImageOptions.Builder 新增 sizeWithView()、sizeWithDisplay()、size(IntSize) 扩展函数

# 4.0.0-alpha02

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ org.jetbrains.compose.experimental.wasm.enabled=true
minSdk=21
targetSdk=28
compileSdk=34
versionCode=4002
versionName=4.0.0-alpha02
versionCode=4003
versionName=4.0.0-alpha03
#
#------------------------------------------ publish config ----------------------------------------#
GROUP=io.github.panpf.sketch4
Expand Down

0 comments on commit cf25247

Please sign in to comment.