Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: tobiasKaminsky <[email protected]>
  • Loading branch information
tobiasKaminsky authored and AlvaroBrey committed Jul 1, 2022
1 parent 29cbaf4 commit 589b7db
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions library/src/main/java/com/nextcloud/common/NextcloudClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import com.owncloud.android.lib.common.accounts.AccountUtils
import com.owncloud.android.lib.common.network.AdvancedX509TrustManager
import com.owncloud.android.lib.common.network.NetworkUtils
import com.owncloud.android.lib.common.network.RedirectionPath
import com.owncloud.android.lib.common.network.WebdavUtils
import com.owncloud.android.lib.common.operations.RemoteOperation
import com.owncloud.android.lib.common.operations.RemoteOperationResult
import com.owncloud.android.lib.common.utils.Log_OC
Expand All @@ -54,7 +53,7 @@ import javax.net.ssl.TrustManager
class NextcloudClient private constructor(
val delegate: NextcloudUriDelegate,
var credentials: String,
val client: OkHttpClient,
var client: OkHttpClient,
) : NextcloudUriProvider by delegate {
var followRedirects = true

Expand Down Expand Up @@ -189,12 +188,4 @@ class NextcloudClient private constructor(
fun getUserIdPlain(): String {
return delegate.userId!!
}

fun getFilesDavUri(path: String): String {
return getDavUri().toString() + "/files/" + userId + "/" + WebdavUtils.encodePath(path)
}

fun getDavUri(): Uri {
return Uri.parse(baseUri.toString() + AccountUtils.WEBDAV_PATH_9_0)
}
}

0 comments on commit 589b7db

Please sign in to comment.