diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7a3601b0e3b7dcc6881020733acfa8fa52ad594d..f9934458fa6c5cc4a686c4bf80221cf6a2ecd7b2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,6 +6,9 @@ stages:
before_script:
- echo email.key=$PEPPER >> local.properties
+ - echo MURENA_CLIENT_ID=$MURENA_CLIENT_ID >> local.properties
+ - echo MURENA_CLIENT_SECRET=$MURENA_CLIENT_SECRET >> local.properties
+ - echo MURENA_REDIRECT_URI=$MURENA_REDIRECT_URI >> local.properties
- echo GOOGLE_CLIENT_ID=$GOOGLE_CLIENT_ID >> local.properties
- echo GOOGLE_REDIRECT_URI=$GOOGLE_REDIRECT_URI >> local.properties
- echo YAHOO_CLIENT_ID=$YAHOO_CLIENT_ID >> local.properties
diff --git a/app/build.gradle b/app/build.gradle
index 1a900b11a777a22ae344e2c2b1f650205091ed9e..4912627102985803c08a9ac760944c70480789dd 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -108,6 +108,10 @@ android {
}
defaultConfig {
+ buildConfigField "String", "MURENA_CLIENT_ID", "\"${retrieveKey("MURENA_CLIENT_ID")}\""
+ buildConfigField "String", "MURENA_CLIENT_SECRET", "\"${retrieveKey("MURENA_CLIENT_SECRET")}\""
+ buildConfigField "String", "MURENA_REDIRECT_URI", "\"${retrieveKey("MURENA_REDIRECT_URI")}\""
+
buildConfigField "String", "GOOGLE_CLIENT_ID", "\"${retrieveKey("GOOGLE_CLIENT_ID")}\""
buildConfigField "String", "GOOGLE_REDIRECT_URI", "\"${retrieveKey("GOOGLE_REDIRECT_URI")}\""
@@ -115,7 +119,8 @@ android {
manifestPlaceholders = [
'appAuthRedirectScheme': applicationId,
- "googleAuthRedirectScheme": retrieveKey("GOOGLE_REDIRECT_URI")
+ "googleAuthRedirectScheme": retrieveKey("GOOGLE_REDIRECT_URI"),
+ "murenaAuthRedirectScheme": retrieveKey("MURENA_REDIRECT_URI")
]
}
@@ -186,7 +191,7 @@ dependencies {
// own libraries
implementation "com.github.bitfireAT:cert4android:${versions.cert4android}"
implementation files('../libs/ical4android.aar')
- implementation "com.github.bitfireAT:vcard4android:${versions.vcard4android}"
+ implementation "foundation.e.lib:vcard4android:${versions.vcard4android}"
// third-party libs
implementation 'org.mnode.ical4j:ical4j:3.2.11'
@@ -222,6 +227,10 @@ dependencies {
exclude group: 'com.squareup.okhttp3'
}
+ // ez-vcard to parse/generate vCards
+ api("com.googlecode.ez-vcard:ez-vcard:0.12.0")
+
+
// for tests
androidTestImplementation "com.google.dagger:hilt-android-testing:${versions.hilt}"
kaptAndroidTest "com.google.dagger:hilt-android-compiler:${versions.hilt}"
diff --git a/app/src/androidTestOse/java/at/bitfire/davdroid/syncadapter/TestSyncManager.kt b/app/src/androidTestOse/java/at/bitfire/davdroid/syncadapter/TestSyncManager.kt
index 85b04d82d1f0e750da011bb7ec5bf8c3119c55cf..905e42744dabdc93dead79f743f7f1e48f1acd4b 100644
--- a/app/src/androidTestOse/java/at/bitfire/davdroid/syncadapter/TestSyncManager.kt
+++ b/app/src/androidTestOse/java/at/bitfire/davdroid/syncadapter/TestSyncManager.kt
@@ -35,7 +35,7 @@ class TestSyncManager(
override fun prepare(): Boolean {
collectionURL = mockWebServer.url("/")
- davCollection = DavCollection(httpClient.okHttpClient, collectionURL, null)
+ davCollection = DavCollection(httpClient.okHttpClient, collectionURL)
return true
}
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index fd66593b2d4d009d1af3d7ecd79ddab4f8d08b82..e519e3144d45acf1145c263a19a3545a7a0a5f89 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -27,6 +27,8 @@
+
+