2014-12-20 22:33:31 +00:00
|
|
|
|
|
|
|
# ProGuard usage for DAVdroid:
|
2016-10-17 22:30:37 +00:00
|
|
|
# shrinking yes (main reason for using ProGuard)
|
|
|
|
# optimization yes
|
|
|
|
# obfuscation no (DAVdroid is open-source)
|
|
|
|
# preverification no
|
2014-12-20 22:33:31 +00:00
|
|
|
|
|
|
|
-dontobfuscate
|
|
|
|
|
2016-06-24 11:39:26 +00:00
|
|
|
-optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/*
|
|
|
|
-optimizationpasses 5
|
|
|
|
-allowaccessmodification
|
|
|
|
-dontpreverify
|
|
|
|
|
2019-01-06 15:25:20 +00:00
|
|
|
# Kotlin
|
|
|
|
-dontwarn kotlin.**
|
|
|
|
|
|
|
|
# Apache Commons
|
|
|
|
-dontwarn javax.script.**
|
|
|
|
|
2014-12-20 22:33:31 +00:00
|
|
|
# ez-vcard
|
2016-10-17 22:30:37 +00:00
|
|
|
-dontwarn ezvcard.io.json.** # JSON serializer (for jCards) not used
|
|
|
|
-dontwarn freemarker.** # freemarker templating library (for creating hCards) not used
|
|
|
|
-dontwarn org.jsoup.** # jsoup library (for hCard parsing) not used
|
2019-02-23 13:18:46 +00:00
|
|
|
-keep class ezvcard.property.** { *; } # keep all vCard properties (created at runtime)
|
2014-12-20 22:33:31 +00:00
|
|
|
|
|
|
|
# ical4j: ignore unused dynamic libraries
|
2015-10-18 22:04:58 +00:00
|
|
|
-dontwarn aQute.**
|
2016-10-17 22:30:37 +00:00
|
|
|
-dontwarn groovy.** # Groovy-based ContentBuilder not used
|
2019-02-23 13:18:46 +00:00
|
|
|
-dontwarn javax.cache.** # no JCache support in Android
|
|
|
|
-dontwarn net.fortuna.ical4j.model.**
|
2014-12-20 22:33:31 +00:00
|
|
|
-dontwarn org.codehaus.groovy.**
|
2019-02-23 13:18:46 +00:00
|
|
|
-dontwarn org.apache.log4j.** # ignore warnings from log4j dependency
|
|
|
|
-keep class net.fortuna.ical4j.** { *; } # keep all model classes (properties/factories, created at runtime)
|
|
|
|
-keep class org.threeten.bp.** { *; } # keep ThreeTen (for time zone processing)
|
2014-12-20 22:33:31 +00:00
|
|
|
|
2015-10-18 22:04:58 +00:00
|
|
|
# okhttp
|
2019-01-12 12:31:24 +00:00
|
|
|
# JSR 305 annotations are for embedding nullability information.
|
|
|
|
-dontwarn javax.annotation.**
|
|
|
|
# A resource is loaded with a relative path so the package of this class must be preserved.
|
|
|
|
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
|
|
|
|
# Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java.
|
|
|
|
-dontwarn org.codehaus.mojo.animal_sniffer.*
|
|
|
|
# OkHttp platform used only on JVM and when Conscrypt dependency is available.
|
|
|
|
-dontwarn okhttp3.internal.platform.ConscryptPlatform
|
2015-10-18 22:04:58 +00:00
|
|
|
|
|
|
|
# DAVdroid + libs
|
2019-02-07 12:10:16 +00:00
|
|
|
-keep,includedescriptorclasses class com.etesync.syncadapter.** { *; } # all DAVdroid code and deps are required
|
|
|
|
|
|
|
|
# Android support
|
2019-03-06 16:17:14 +00:00
|
|
|
-keep,includedescriptorclasses class androidx.core.content.FileProvider { *; } # all DAVdroid code and deps are required
|
2017-02-22 18:42:00 +00:00
|
|
|
|
|
|
|
# gson
|
|
|
|
-dontnote sun.misc.Unsafe # not available on Android
|
2017-01-02 19:39:10 +00:00
|
|
|
|
|
|
|
# Spongcastle
|
|
|
|
-dontwarn org.spongycastle.jce.provider.X509LDAPCertStoreSpi
|
|
|
|
-dontwarn org.spongycastle.x509.util.LDAPStoreHelper
|