Skip to content

Commit

Permalink
Add webdav implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
hb0 committed May 30, 2024
1 parent 1e9e93d commit 5f77c70
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
*
Expand Down Expand Up @@ -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.
*/
Expand Down

0 comments on commit 5f77c70

Please sign in to comment.