Skip to content

Commit

Permalink
Merge pull request #746 from supabase-community/update-deps
Browse files Browse the repository at this point in the history
Update dependencies and fix ktor
  • Loading branch information
jan-tennert authored Oct 4, 2024
2 parents d165f27 + 68100f6 commit 60cb875
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import io.ktor.client.statement.bodyAsText
import io.ktor.http.HttpStatusCode
import io.ktor.utils.io.ByteReadChannel
import io.ktor.utils.io.cancel
import io.ktor.utils.io.readAvailable
import io.ktor.utils.io.readFully
import io.ktor.utils.io.writeFully
import kotlinx.atomicfu.atomic
import kotlinx.coroutines.CoroutineScope
Expand Down Expand Up @@ -152,7 +152,7 @@ internal class ResumableUploadImpl(
private suspend fun uploadChunk(): Int {
val limit = min(chunkSize, size.toInt() - offset)
val buffer = ByteArray(limit.toInt())
dataStream.readAvailable(buffer, 0, limit.toInt())
dataStream.readFully(buffer, 0, limit.toInt())
//dataStream.readFully(buffer, 0, limit.toInt())
val uploadResponse = httpClient.patch(locationUrl) {
header("Tus-Resumable", TUS_VERSION)
Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
kotlin = "2.0.20"
kotlin = "2.0.21-RC"
accompanist-permissions = "0.36.0"
ktor = "3.0.0-rc-1"
ktor = "3.0.0-rc-2"
dokka = "1.9.20"
kotlinx-datetime = "0.6.1"
kermit = "2.0.4"
Expand All @@ -27,7 +27,7 @@ imageloader = "1.8.3"
coil2 = "2.7.0"
coil3 = "3.0.0-alpha10"
okio = "3.9.1"
credentials = "1.2.2"
credentials = "1.3.0"
koin = "4.0.0"
androidx-core = "1.13.1"
androidx-compat = "1.7.0"
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down

0 comments on commit 60cb875

Please sign in to comment.