From 5f77c709620d212ca3e2392d38088a89705f01e4 Mon Sep 17 00:00:00 2001 From: Armin Date: Thu, 30 May 2024 12:19:45 +0200 Subject: [PATCH] Add webdav implementation --- .../kotlin/de/cyface/app/digural/auth/WebdavAuth.kt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ui/digural/src/main/kotlin/de/cyface/app/digural/auth/WebdavAuth.kt b/ui/digural/src/main/kotlin/de/cyface/app/digural/auth/WebdavAuth.kt index 414ea6c9..5f616124 100644 --- a/ui/digural/src/main/kotlin/de/cyface/app/digural/auth/WebdavAuth.kt +++ b/ui/digural/src/main/kotlin/de/cyface/app/digural/auth/WebdavAuth.kt @@ -25,6 +25,7 @@ import android.content.Context import android.os.Build import android.os.Bundle import android.util.Log +import androidx.fragment.app.FragmentActivity import com.thegrizzlylabs.sardineandroid.impl.OkHttpSardine import com.thegrizzlylabs.sardineandroid.impl.SardineException import de.cyface.app.digural.upload.WebdavSyncService @@ -62,6 +63,14 @@ class WebdavAuth(private val context: Context, private val settings: Synchroniza action(WebdavAuthenticator.DUMMY_TOKEN, WebdavAuthenticator.DUMMY_TOKEN, null) } + override fun userId(): String { + return DUMMY_USER_ID + } + + override fun endSession(activity: FragmentActivity) { + TODO("Not yet implemented") + } + /** * Updates the credentials * @@ -220,6 +229,8 @@ class WebdavAuth(private val context: Context, private val settings: Synchroniza } companion object { + const val DUMMY_USER_ID = "WEBDAV_DOES_NOT_USE_USER_DELETION_NO_ID_REQUIRED" + /** * Returns a dummy auth config as the [WebdavAuth] does not require such. */