easysync icon indicating copy to clipboard operation
easysync copied to clipboard

Use WebDAV library

Open stokito opened this issue 2 years ago • 4 comments

There are some existing libraries for Android with WebDAv support: https://github.com/WebDAVDevs/awesome-webdav/tree/main?tab=readme-ov-file#java

It would be really great if you can reuse or contribute to this libraries. This will make it easier to support many servers with their quirks and also avoid known bugs. But what is more important is that it will make other app creators easier to add the WebDAV support.

Some libraies:

  • https://github.com/thegrizzlylabs/sardine-android based on OkHttp. I'm not sure who using it and also it has a lot of open PRs without traction.
  • https://github.com/bitfireAT/dav4jvm from DavX5. This is a very popular program for Calendar syncing but not sure if it works with files.
  • https://github.com/McDjuady/dav4jvm fork of the dav4jvm rewritten in Kotlin

I don't know what the NextCloud app uses itself but the owbCloud has a separate lib https://github.com/owncloud/android-library

stokito avatar Jan 05 '24 18:01 stokito

Hi, I like the idea to share a common lib. I guess I didn't find something suitable whan i started the project.

There is one important prerequisite: the selected lib shoud be compatible with android and have support for kotlin coroutines.

I guess we need to compare them to see which one is the more appropriate.

phpbg avatar Jan 17 '24 19:01 phpbg

I'm not an Android developer so if you can leave your notes about the libs and their difference I'll really appreciate. I maintaining the Awesome WebDAV list and I wish to create a website with tutorials about the DAV development. I created a the @WebDavDevs organization to make it easier to find all DAV related info and projects. The original WebDAV protocol developers aren't responding anymore and the protocol staled. If you wish I can add you to the org and also you can transfer the project under its umbrella.

stokito avatar Jan 17 '24 20:01 stokito

If you wish I can add you to the org and also you can transfer the project under its umbrella.

I am not ready for such responsibilities ^^

I'll start following it for now ;-)

phpbg avatar Jan 21 '24 21:01 phpbg