diff --git a/buildSrc/src/main/kotlin/Library.kt b/buildSrc/src/main/kotlin/Library.kt index 311ec82340..4dc70991c4 100644 --- a/buildSrc/src/main/kotlin/Library.kt +++ b/buildSrc/src/main/kotlin/Library.kt @@ -40,7 +40,7 @@ object Library { private const val OKHTTP_VERSION = "4.9.2" const val OKHTTP = "com.squareup.okhttp3:okhttp:$OKHTTP_VERSION" - const val OKIO = "com.squareup.okio:okio:3.0.0-alpha.10" + const val OKIO = "com.squareup.okio:okio:3.0.0-alpha.11" // TEST diff --git a/coil-base/src/main/java/coil/disk/DiskLruCache.kt b/coil-base/src/main/java/coil/disk/DiskLruCache.kt index 8ca42c5515..1f517b3672 100644 --- a/coil-base/src/main/java/coil/disk/DiskLruCache.kt +++ b/coil-base/src/main/java/coil/disk/DiskLruCache.kt @@ -165,10 +165,10 @@ internal class DiskLruCache( } private val fileSystem = object : ForwardingFileSystem(fileSystem) { - override fun sink(file: Path): Sink { + override fun sink(file: Path, mustCreate: Boolean): Sink { // Ensure the parent directory for the file is created if it doesn't already exist. file.parent?.let { if (!exists(it)) createDirectories(it) } - return super.sink(file) + return super.sink(file, mustCreate) } }