Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
  • Loading branch information
tobiasKaminsky committed May 5, 2022
1 parent e7685aa commit d56c428
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 @@ -55,7 +54,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 @@ -193,12 +192,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 d56c428

Please sign in to comment.