https://github.com/thegrizzlylabs/sardine-android
A WebDAV library for Android
https://github.com/thegrizzlylabs/sardine-android
Last synced: 5 months ago
JSON representation
A WebDAV library for Android
- Host: GitHub
- URL: https://github.com/thegrizzlylabs/sardine-android
- Owner: thegrizzlylabs
- License: apache-2.0
- Created: 2017-11-20T14:45:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-02-14T17:07:42.000Z (over 2 years ago)
- Last Synced: 2025-11-18T07:02:38.323Z (7 months ago)
- Language: Java
- Size: 200 KB
- Stars: 380
- Watchers: 9
- Forks: 78
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-webdav - sardine-android - a WebDAV client for Android based on OkHttp. `Apache-2.0` (Libraries / Java)
README
# sardine-android
[](https://github.com/thegrizzlylabs/sardine-android/actions/workflows/android.yml)
[ ](https://jitpack.io/#thegrizzlylabs/sardine-android)
A WebDAV client for Android, using [OkHttp](https://github.com/square/okhttp) as HTTP client.
## Getting started
- 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:'
}
```
- Create a `Sardine` client:
```
Sardine sardine = new OkHttpSardine();
sardine.setCredentials("username", "password");
```
- Use the client to make requests to your WebDAV server:
```
List resources = sardine.list("http://webdav.server.com");
```
## Legacy
Originally forked from [Sardine](https://github.com/lookfirst/sardine)
[Apache HTTP Client](http://hc.apache.org/) was replaced by [OkHttp](https://github.com/square/okhttp)
JAXB was replaced by [SimpleXml](http://simple.sourceforge.net/)
## Alternatives
See [Awesome WebDAV: Java libraries](https://github.com/WebDAVDevs/awesome-webdav/blob/main/readme.md#java)