Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 513d0a10 authored by Andy Scherzinger's avatar Andy Scherzinger Committed by GitHub
Browse files

Merge pull request #1318 from nextcloud/renovate/okhttp-monorepo

Update dependency com.squareup.okhttp3:okhttp to v5.0.0-alpha.12
parents be59b5ea 36eef8b9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ configurations {

dependencies {
    implementation 'org.apache.jackrabbit:jackrabbit-webdav:2.13.5'
    api 'com.squareup.okhttp3:okhttp:5.0.0-alpha.11'
    api 'com.squareup.okhttp3:okhttp:5.0.0-alpha.12'
    implementation 'com.github.bitfireAT:dav4jvm:2.2.1'
    // in transition phase, we use old and new libs
    implementation group: 'com.google.code.gson', name: 'gson', version: '2.10.1'
+3 −2
Original line number Diff line number Diff line
@@ -32,12 +32,13 @@ import com.nextcloud.operations.PutMethod
import com.owncloud.android.lib.common.operations.RemoteOperation
import com.owncloud.android.lib.common.operations.RemoteOperationResult
import okhttp3.RequestBody
import okhttp3.internal.EMPTY_REQUEST
import okhttp3.RequestBody.Companion.toRequestBody
import okhttp3.internal.EMPTY_BYTE_ARRAY
import org.apache.commons.httpclient.HttpStatus

class PutTagRemoteOperation(val id: String, val fileId: Long) : RemoteOperation<Void>() {
    override fun run(client: NextcloudClient): RemoteOperationResult<Void> {
        val empty: RequestBody = EMPTY_REQUEST
        val empty: RequestBody = EMPTY_BYTE_ARRAY.toRequestBody()
        val putMethod =
            PutMethod(
                client.baseUri.toString() + TAG_URL + fileId + "/" + id,