Skip to content

Commit

Permalink
Update Okio to 3.0.0-alpha.11. (#961)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrtwhite authored Oct 24, 2021
1 parent 2972ca0 commit 7e31450
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Library.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions coil-base/src/main/java/coil/disk/DiskLruCache.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 7e31450

Please sign in to comment.