Skip to content

Commit

Permalink
Update kmp-file dependency (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
05nelsonm committed Jan 3, 2024
1 parent 0279692 commit 291c567
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ gradle-kmp-configuration = "0.1.7"
gradle-kotlin = "1.9.21"
gradle-publish-maven = "0.25.3"

kmp-file = "0.1.0-alpha03"
kmp-file = "0.1.0-alpha05"

kotlincrypto-hash = "0.4.0"
kotlinx-atomicfu = "0.23.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ internal actual fun Resource.extractTo(destinationDir: File, onlyIfDoesNotExist:
}

try {
dest.open(flags = "wb") { file ->
dest.fOpen(flags = "wb") { file ->
platform.nativeResource.read { buffer, len ->
val result = file.fWrite(buffer, 0, len)
if (result < 0) {
Expand Down Expand Up @@ -85,7 +85,7 @@ internal actual fun Resource.extractTo(destinationDir: File, onlyIfDoesNotExist:

try {
dest.gzOpenRead { gzFile ->
destFinal.open(flags = "wb") { file ->
destFinal.fOpen(flags = "wb") { file ->
val buf = ByteArray(4096)

while (true) {
Expand Down

0 comments on commit 291c567

Please sign in to comment.