diff --git a/CHANGELOG.md b/CHANGELOG.md index fd059504fd..a6cd3496cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/CHANGELOG_zh.md b/CHANGELOG_zh.md index 7dc40c454a..b0355daf19 100644 --- a/CHANGELOG_zh.md +++ b/CHANGELOG_zh.md @@ -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 diff --git a/gradle.properties b/gradle.properties index 17bb065925..50f286f8b7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 diff --git a/sketch-core/src/androidInstrumentedTest/kotlin/com/github/panpf/sketch/core/android/test/source/ContentDataSourceTest.kt b/sketch-core/src/androidInstrumentedTest/kotlin/com/github/panpf/sketch/core/android/test/source/ContentDataSourceTest.kt index dd19169675..234bcdeac1 100644 --- a/sketch-core/src/androidInstrumentedTest/kotlin/com/github/panpf/sketch/core/android/test/source/ContentDataSourceTest.kt +++ b/sketch-core/src/androidInstrumentedTest/kotlin/com/github/panpf/sketch/core/android/test/source/ContentDataSourceTest.kt @@ -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 { @@ -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,