Commit 1f48a662 authored by Ricki Hirner's avatar Ricki Hirner

Rename to dav4jvm

parent 719ad1d3
Pipeline #42325621 passed with stages
in 3 minutes and 20 seconds
[![build status](https://gitlab.com/bitfireAT/dav4android/badges/master/build.svg)](https://gitlab.com/bitfireAT/dav4android/commits/master)
[![build status](https://gitlab.com/bitfireAT/dav4jvm/badges/master/build.svg)](https://gitlab.com/bitfireAT/dav4jvm/commits/master)
# dav4android
# dav4jvm
dav4android is an Android WebDAV/CalDAV/CardDAV library which has
initially been developed for [DAVdroid](https://www.davdroid.com).
dav4jvm is a WebDAV/CalDAV/CardDAV library for JVM (Java/Kotlin). It was
developed for [DAVx⁵](https://www.davx5.com) initially.
Original repository: https://gitlab.com/bitfireAT/dav4android/
Original repository: https://gitlab.com/bitfireAT/dav4jvm/
Generated KDoc: https://bitfireAT.gitlab.io/dav4android/dokka/dav4android/
Generated KDoc: https://bitfireAT.gitlab.io/dav4jvm/dokka/dav4jvm/
## Contact / License
dav4android is licensed under [Mozilla Public License, v. 2.0](LICENSE).
dav4jvm is licensed under [Mozilla Public License, v. 2.0](LICENSE).
For questions, suggestions etc. please use the DAVdroid forum:
https://www.davdroid.com/forums/
For questions, suggestions etc. please use this forum:
https://forums.bitfire.at/category/18/libraries
If you want to contribute, please work in your own repository and then
notify us on your changes so that we can backport them.
......
<!--
~ This Source Code Form is subject to the terms of the Mozilla Public
~ License, v. 2.0. If a copy of the MPL was not distributed with this
~ file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="at.bitfire.dav4android">
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
......@@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android
package at.bitfire.dav4jvm
import okhttp3.*
import okhttp3.Response
......
......@@ -4,13 +4,13 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android
package at.bitfire.dav4jvm
import java.util.logging.Logger
object Constants {
var log = Logger.getLogger("dav4android")!!
var log = Logger.getLogger("dav4jvm")!!
const val okhttpVersion = BuildConfig.okhttpVersion
......
......@@ -4,10 +4,10 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android
package at.bitfire.dav4jvm
import at.bitfire.dav4android.exception.DavException
import at.bitfire.dav4android.exception.HttpException
import at.bitfire.dav4jvm.exception.DavException
import at.bitfire.dav4jvm.exception.HttpException
import okhttp3.*
import java.io.IOException
import java.io.StringWriter
......
......@@ -4,10 +4,10 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android
package at.bitfire.dav4jvm
import at.bitfire.dav4android.exception.DavException
import at.bitfire.dav4android.exception.HttpException
import at.bitfire.dav4jvm.exception.DavException
import at.bitfire.dav4jvm.exception.HttpException
import okhttp3.*
import java.io.IOException
import java.io.StringWriter
......
......@@ -4,11 +4,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android
package at.bitfire.dav4jvm
import at.bitfire.dav4android.exception.DavException
import at.bitfire.dav4android.exception.HttpException
import at.bitfire.dav4android.property.SyncToken
import at.bitfire.dav4jvm.exception.DavException
import at.bitfire.dav4jvm.exception.HttpException
import at.bitfire.dav4jvm.property.SyncToken
import okhttp3.HttpUrl
import okhttp3.OkHttpClient
import okhttp3.Request
......
......@@ -4,10 +4,10 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android
package at.bitfire.dav4jvm
import at.bitfire.dav4android.exception.*
import at.bitfire.dav4android.property.SyncToken
import at.bitfire.dav4jvm.exception.*
import at.bitfire.dav4jvm.property.SyncToken
import okhttp3.*
import okhttp3.Response
import org.xmlpull.v1.XmlPullParser
......@@ -462,7 +462,7 @@ open class DavResource @JvmOverloads constructor(
if (eventType == XmlPullParser.START_TAG && parser.depth == depth + 1 && parser.namespace == XmlUtils.NS_WEBDAV)
when (parser.name) {
"response" ->
at.bitfire.dav4android.Response.parse(parser, location, callback)
at.bitfire.dav4jvm.Response.parse(parser, location, callback)
"sync-token" ->
XmlUtils.readText(parser)?.let {
responseProperties += SyncToken(it)
......
......@@ -6,7 +6,7 @@
* http://www.gnu.org/licenses/gpl.html
*/
package at.bitfire.dav4android
package at.bitfire.dav4jvm
import org.xmlpull.v1.XmlPullParser
import java.io.Serializable
......
......@@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android
package at.bitfire.dav4jvm
import okhttp3.HttpUrl
import okhttp3.Response
......
......@@ -6,9 +6,9 @@
* http://www.gnu.org/licenses/gpl.html
*/
package at.bitfire.dav4android
package at.bitfire.dav4jvm
import at.bitfire.dav4android.Constants.log
import at.bitfire.dav4jvm.Constants.log
import okhttp3.Protocol
import okhttp3.internal.http.StatusLine
import org.xmlpull.v1.XmlPullParser
......
......@@ -4,9 +4,9 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android
package at.bitfire.dav4jvm
import at.bitfire.dav4android.Constants.log
import at.bitfire.dav4jvm.Constants.log
import org.xmlpull.v1.XmlPullParser
import java.io.Serializable
import java.util.*
......
......@@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android
package at.bitfire.dav4jvm
import org.xmlpull.v1.XmlPullParser
import org.xmlpull.v1.XmlPullParserException
......
......@@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android
package at.bitfire.dav4jvm
import org.xmlpull.v1.XmlPullParser
import org.xmlpull.v1.XmlPullParserException
......
......@@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android
package at.bitfire.dav4jvm
object QuotedStringUtils {
......
......@@ -6,10 +6,10 @@
* http://www.gnu.org/licenses/gpl.html
*/
package at.bitfire.dav4android
package at.bitfire.dav4jvm
import at.bitfire.dav4android.Constants.log
import at.bitfire.dav4android.property.ResourceType
import at.bitfire.dav4jvm.Constants.log
import at.bitfire.dav4jvm.property.ResourceType
import okhttp3.HttpUrl
import okhttp3.Protocol
import okhttp3.internal.http.StatusLine
......@@ -200,7 +200,7 @@ data class Response(
}
callback(
at.bitfire.dav4android.Response(
Response(
location,
href!!,
status,
......
......@@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android
package at.bitfire.dav4jvm
import okhttp3.HttpUrl
import java.net.URI
......
......@@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android
package at.bitfire.dav4jvm
import org.xmlpull.v1.XmlPullParser
import org.xmlpull.v1.XmlPullParserException
......
......@@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.exception
package at.bitfire.dav4jvm.exception
import okhttp3.Response
import java.net.HttpURLConnection
......
......@@ -4,11 +4,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.exception
package at.bitfire.dav4jvm.exception
import at.bitfire.dav4android.Constants
import at.bitfire.dav4android.Error
import at.bitfire.dav4android.XmlUtils
import at.bitfire.dav4jvm.Constants
import at.bitfire.dav4jvm.Error
import at.bitfire.dav4jvm.XmlUtils
import okhttp3.MediaType
import okhttp3.Response
import okio.Buffer
......
......@@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.exception
package at.bitfire.dav4jvm.exception
import okhttp3.Response
import java.net.HttpURLConnection
......
......@@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.exception
package at.bitfire.dav4jvm.exception
import okhttp3.Response
......
......@@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.exception
package at.bitfire.dav4jvm.exception
import okhttp3.Response
import java.net.HttpURLConnection
......
......@@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.exception
package at.bitfire.dav4jvm.exception
import okhttp3.Response
import java.net.HttpURLConnection
......
......@@ -4,9 +4,9 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.exception
package at.bitfire.dav4jvm.exception
import at.bitfire.dav4android.Constants
import at.bitfire.dav4jvm.Constants
import okhttp3.Response
import okhttp3.internal.http.HttpDate
import java.net.HttpURLConnection
......
......@@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.exception
package at.bitfire.dav4jvm.exception
import okhttp3.Response
import java.net.HttpURLConnection
......
......@@ -4,11 +4,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.property
package at.bitfire.dav4jvm.property
import at.bitfire.dav4android.Property
import at.bitfire.dav4android.PropertyFactory
import at.bitfire.dav4android.XmlUtils
import at.bitfire.dav4jvm.Property
import at.bitfire.dav4jvm.PropertyFactory
import at.bitfire.dav4jvm.XmlUtils
import org.xmlpull.v1.XmlPullParser
data class AddressData(
......
......@@ -4,11 +4,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.property
package at.bitfire.dav4jvm.property
import at.bitfire.dav4android.Property
import at.bitfire.dav4android.PropertyFactory
import at.bitfire.dav4android.XmlUtils
import at.bitfire.dav4jvm.Property
import at.bitfire.dav4jvm.PropertyFactory
import at.bitfire.dav4jvm.XmlUtils
import org.xmlpull.v1.XmlPullParser
data class AddressbookDescription(
......
......@@ -4,10 +4,10 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.property
package at.bitfire.dav4jvm.property
import at.bitfire.dav4android.Property
import at.bitfire.dav4android.XmlUtils
import at.bitfire.dav4jvm.Property
import at.bitfire.dav4jvm.XmlUtils
import org.xmlpull.v1.XmlPullParser
class AddressbookHomeSet: HrefListProperty() {
......
......@@ -4,12 +4,12 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.property
package at.bitfire.dav4jvm.property
import at.bitfire.dav4android.Constants
import at.bitfire.dav4android.Property
import at.bitfire.dav4android.PropertyFactory
import at.bitfire.dav4android.XmlUtils
import at.bitfire.dav4jvm.Constants
import at.bitfire.dav4jvm.Property
import at.bitfire.dav4jvm.PropertyFactory
import at.bitfire.dav4jvm.XmlUtils
import org.xmlpull.v1.XmlPullParser
import java.util.logging.Level
import java.util.regex.Pattern
......
......@@ -4,11 +4,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.property
package at.bitfire.dav4jvm.property
import at.bitfire.dav4android.Property
import at.bitfire.dav4android.PropertyFactory
import at.bitfire.dav4android.XmlUtils
import at.bitfire.dav4jvm.Property
import at.bitfire.dav4jvm.PropertyFactory
import at.bitfire.dav4jvm.XmlUtils
import org.xmlpull.v1.XmlPullParser
data class CalendarData(
......
......@@ -4,11 +4,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.property
package at.bitfire.dav4jvm.property
import at.bitfire.dav4android.Property
import at.bitfire.dav4android.PropertyFactory
import at.bitfire.dav4android.XmlUtils
import at.bitfire.dav4jvm.Property
import at.bitfire.dav4jvm.PropertyFactory
import at.bitfire.dav4jvm.XmlUtils
import org.xmlpull.v1.XmlPullParser
data class CalendarDescription(
......
......@@ -4,10 +4,10 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.property
package at.bitfire.dav4jvm.property
import at.bitfire.dav4android.Property
import at.bitfire.dav4android.XmlUtils
import at.bitfire.dav4jvm.Property
import at.bitfire.dav4jvm.XmlUtils
import org.xmlpull.v1.XmlPullParser
class CalendarHomeSet: HrefListProperty() {
......
......@@ -4,10 +4,10 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.property
package at.bitfire.dav4jvm.property
import at.bitfire.dav4android.Property
import at.bitfire.dav4android.XmlUtils
import at.bitfire.dav4jvm.Property
import at.bitfire.dav4jvm.XmlUtils
import org.xmlpull.v1.XmlPullParser
class CalendarProxyReadFor: HrefListProperty() {
......
......@@ -4,10 +4,10 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.property
package at.bitfire.dav4jvm.property
import at.bitfire.dav4android.Property
import at.bitfire.dav4android.XmlUtils
import at.bitfire.dav4jvm.Property
import at.bitfire.dav4jvm.XmlUtils
import org.xmlpull.v1.XmlPullParser
class CalendarProxyWriteFor: HrefListProperty() {
......
......@@ -4,11 +4,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.property
package at.bitfire.dav4jvm.property
import at.bitfire.dav4android.Property
import at.bitfire.dav4android.PropertyFactory
import at.bitfire.dav4android.XmlUtils
import at.bitfire.dav4jvm.Property
import at.bitfire.dav4jvm.PropertyFactory
import at.bitfire.dav4jvm.XmlUtils
import org.xmlpull.v1.XmlPullParser
data class CalendarTimezone(
......
......@@ -4,10 +4,10 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.property
package at.bitfire.dav4jvm.property
import at.bitfire.dav4android.Property
import at.bitfire.dav4android.XmlUtils
import at.bitfire.dav4jvm.Property
import at.bitfire.dav4jvm.XmlUtils
import org.xmlpull.v1.XmlPullParser
class CalendarUserAddressSet: HrefListProperty() {
......
......@@ -4,11 +4,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.property
package at.bitfire.dav4jvm.property
import at.bitfire.dav4android.Property
import at.bitfire.dav4android.PropertyFactory
import at.bitfire.dav4android.XmlUtils
import at.bitfire.dav4jvm.Property
import at.bitfire.dav4jvm.PropertyFactory
import at.bitfire.dav4jvm.XmlUtils
import org.xmlpull.v1.XmlPullParser
data class CreationDate(
......
......@@ -4,11 +4,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.property
package at.bitfire.dav4jvm.property
import at.bitfire.dav4android.Property
import at.bitfire.dav4android.PropertyFactory
import at.bitfire.dav4android.XmlUtils
import at.bitfire.dav4jvm.Property
import at.bitfire.dav4jvm.PropertyFactory
import at.bitfire.dav4jvm.XmlUtils
import org.xmlpull.v1.XmlPullParser
// see RFC 5397: WebDAV Current Principal Extension
......
......@@ -4,11 +4,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.property
package at.bitfire.dav4jvm.property
import at.bitfire.dav4android.Property
import at.bitfire.dav4android.PropertyFactory
import at.bitfire.dav4android.XmlUtils
import at.bitfire.dav4jvm.Property
import at.bitfire.dav4jvm.PropertyFactory
import at.bitfire.dav4jvm.XmlUtils
import org.xmlpull.v1.XmlPullParser
data class CurrentUserPrivilegeSet(
......
......@@ -4,11 +4,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.property
package at.bitfire.dav4jvm.property
import at.bitfire.dav4android.Property
import at.bitfire.dav4android.PropertyFactory
import at.bitfire.dav4android.XmlUtils
import at.bitfire.dav4jvm.Property
import at.bitfire.dav4jvm.PropertyFactory
import at.bitfire.dav4jvm.XmlUtils
import org.xmlpull.v1.XmlPullParser
data class DisplayName(
......
......@@ -4,11 +4,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.property
package at.bitfire.dav4jvm.property
import at.bitfire.dav4android.Property
import at.bitfire.dav4android.PropertyFactory
import at.bitfire.dav4android.XmlUtils
import at.bitfire.dav4jvm.Property
import at.bitfire.dav4jvm.PropertyFactory
import at.bitfire.dav4jvm.XmlUtils
import org.xmlpull.v1.XmlPullParser
data class GetCTag(
......
......@@ -4,11 +4,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.property
package at.bitfire.dav4jvm.property
import at.bitfire.dav4android.Property
import at.bitfire.dav4android.PropertyFactory
import at.bitfire.dav4android.XmlUtils
import at.bitfire.dav4jvm.Property
import at.bitfire.dav4jvm.PropertyFactory
import at.bitfire.dav4jvm.XmlUtils
import org.xmlpull.v1.XmlPullParser
data class GetContentLength(
......
......@@ -4,11 +4,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.property
package at.bitfire.dav4jvm.property
import at.bitfire.dav4android.Property
import at.bitfire.dav4android.PropertyFactory
import at.bitfire.dav4android.XmlUtils
import at.bitfire.dav4jvm.Property
import at.bitfire.dav4jvm.PropertyFactory
import at.bitfire.dav4jvm.XmlUtils
import okhttp3.MediaType
import org.xmlpull.v1.XmlPullParser
......
......@@ -4,12 +4,12 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.property
package at.bitfire.dav4jvm.property
import at.bitfire.dav4android.Property
import at.bitfire.dav4android.PropertyFactory
import at.bitfire.dav4android.QuotedStringUtils
import at.bitfire.dav4android.XmlUtils
import at.bitfire.dav4jvm.Property
import at.bitfire.dav4jvm.PropertyFactory
import at.bitfire.dav4jvm.QuotedStringUtils
import at.bitfire.dav4jvm.XmlUtils
import okhttp3.Response
import org.xmlpull.v1.XmlPullParser
......
......@@ -4,12 +4,12 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package at.bitfire.dav4android.property
package at.bitfire.dav4jvm.property
import at.bitfire.dav4android.Constants
import at.bitfire.dav4android.Property
import at.bitfire.dav4android.PropertyFactory
import at.bitfire.dav4android.XmlUtils
import at.bitfire.dav4jvm.Constants
import at.bitfire.dav4jvm.Property
import at.bitfire.dav4jvm.PropertyFactory
import at.bitfire.dav4jvm.XmlUtils
import okhttp3.internal.http.HttpDate
import org.xmlpull.v1.XmlPullParser
......