A WebDAV client for Android, using OkHttp as HTTP client.
- Edit your app-level
build.gradle(see top of this page for the latest version):
repositories {
...
maven { url 'https://jitpack.io/' }
}
dependencies {
...
implementation 'com.github.thegrizzlylabs:sardine-android:<VERSION_NUMBER>'
}
- Create a
Sardineclient:
Sardine sardine = new OkHttpSardine();
sardine.setCredentials("username", "password");
- Use the client to make requests to your WebDAV server:
List<DavResource> resources = sardine.list("http://webdav.server.com/");
Originally forked from Sardine
Apache HTTP Client was replaced by OkHttp
JAXB was replaced by SimpleXml