Skip to content

Commit

Permalink
release: v4.0.0-alpha08
Browse files Browse the repository at this point in the history
  • Loading branch information
panpf committed Aug 30, 2024
1 parent 0bb7188 commit 8978453
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ 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-alpha08

* fix: Fixed the bug that the ComposableImageRequest() and ComposableImageOptions() functions cannot
listen and update the Compose State. [#207](https://github.com/panpf/sketch/issues/207)
* new: SkiaBitmapImage now supports memory caching
* remove: Remove SkiaExifOrientationHelper
* remove: DataSource removes sketch and request attributes
* new: DataSource adds key attribute
* change: DataSource's getFile() and getFileOrNull() methods add Sketch parameters
* change: DataSource's openSourceOrNull() and getFileOrNull() methods are now available as extension
functions
* change: RequestContext moved to 'com.github.panpf.sketch.request' package
* new: SkiaBitmapImage now supports memory caching
* new: DataSource adds key attribute

# 4.0.0-alpha07

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

* fix: 修复 ComposableImageRequest() 和 ComposableImageOptions() 函数内部无法监听并更新 Compose State 的
bug。 [#207](https://github.com/panpf/sketch/issues/207)
* new: SkiaBitmapImage 现在支持内存缓存
* remove: 移除 SkiaExifOrientationHelper
* remove: DataSource 移除 sketch 和 request 属性
* new: DataSource 新增 key 属性
* change: DataSource 的 getFile() 和 getFileOrNull() 方法增加 Sketch 参数
* change: DataSource 的 openSourceOrNull() 和 getFileOrNull() 方法现在以扩展函数的形式提供
* change: RequestContext 移到 'com.github.panpf.sketch.request' 包下
* new: SkiaBitmapImage 现在支持内存缓存
* new: DataSource 新增 key 属性

# 4.0.0-alpha07

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ org.jetbrains.compose.experimental.wasm.enabled=true
minSdk=21
targetSdk=28
compileSdk=34
versionCode=4007
versionName=4.0.0-alpha07
versionCode=4008
versionName=4.0.0-alpha08
#
#------------------------------------------ publish config ----------------------------------------#
GROUP=io.github.panpf.sketch4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import org.junit.Test
import org.junit.runner.RunWith
import java.io.File
import java.io.FileNotFoundException
import java.io.IOException

@RunWith(AndroidJUnit4::class)
class ContentDataSourceTest {
Expand Down Expand Up @@ -89,7 +90,7 @@ class ContentDataSourceTest {
Assert.assertEquals("/sdcard/error.jpeg", file.toFile().path)
}

assertThrow(FileNotFoundException::class) {
assertThrow(IOException::class) {
val errorContentUri1 = Uri.parse("content://fake/fake.jpeg")
ContentDataSource(
context = sketch.context,
Expand Down

0 comments on commit 8978453

Please sign in to comment.