Skip to content

Commit 38611f9

Browse files
Merge branch 'develop' into ci/backend-checks
2 parents 89b0b38 + 72acf8d commit 38611f9

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151

5252
## stream-chat-android-ui-common
5353
### 🐞 Fixed
54+
- Use a Stream specific cache directory for the `coil:3.x.x` instance to avoid potential clash with the default (`image_cache`) directory from an existing `coil2.x.x` instance. [#6002](https://github.com/GetStream/stream-chat-android/pull/6002)
5455

5556
### ⬆️ Improved
5657

stream-chat-android-ui-common/src/main/kotlin/io/getstream/chat/android/ui/common/images/StreamImageLoaderFactory.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import okio.Path.Companion.toOkioPath
3535

3636
private const val DEFAULT_MEMORY_PERCENTAGE = 0.25
3737
private const val DEFAULT_DISK_CACHE_PERCENTAGE = 0.02
38-
private const val DISK_CACHE_DIRECTORY = "image_cache"
38+
private const val DISK_CACHE_DIRECTORY = "stream_image_cache"
3939

4040
public class StreamImageLoaderFactory(
4141
private val builder: ImageLoader.Builder.() -> Unit = {},

stream-chat-android-ui-common/src/test/kotlin/io/getstream/chat/android/ui/common/images/StreamImageLoaderFactoryTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ internal class StreamImageLoaderFactoryTest {
6262
val diskCache = imageLoader.diskCache
6363
assertNotNull(diskCache)
6464
val expected = DiskCache.Builder()
65-
.directory(context.cacheDir.resolve("image_cache").toOkioPath())
65+
.directory(context.cacheDir.resolve("stream_image_cache").toOkioPath())
6666
.maxSizePercent(percent = 0.02)
6767
.build()
6868
assertEquals(expected.maxSize, diskCache!!.maxSize)

0 commit comments

Comments
 (0)