2014-12-20 22:33:31 +00:00
|
|
|
|
|
|
|
# ProGuard usage for DAVdroid:
|
|
|
|
# shrinking yes - main reason for using ProGuard
|
|
|
|
# optimization no - too risky
|
|
|
|
# obfuscation no - DAVdroid is open-source
|
|
|
|
# preverification no (Android default)
|
|
|
|
|
|
|
|
-dontobfuscate
|
|
|
|
|
|
|
|
|
|
|
|
# SimpleXML
|
|
|
|
-keep class org.simpleframework.** { *; } # keep all interfaces etc. to allow reflection
|
|
|
|
-dontwarn com.bea.xml.stream.** # StAX API not used
|
|
|
|
-dontwarn javax.xml.stream.**
|
|
|
|
|
|
|
|
# ez-vcard
|
|
|
|
-dontwarn com.fasterxml.jackson.** # Jackson JSON Processor (for jCards) not used
|
|
|
|
-dontwarn freemarker.** # freemarker templating library (for creating hCards) not used
|
|
|
|
-dontwarn org.jsoup.** # jsoup library (for hCard parsing) not used
|
|
|
|
-dontwarn sun.misc.Perf
|
2014-12-21 09:01:41 +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
|
|
|
|
-dontwarn groovy.** # Groovy-based ContentBuilder not used
|
|
|
|
-dontwarn org.codehaus.groovy.**
|
|
|
|
-dontwarn org.apache.commons.logging.** # Commons logging is not available
|
|
|
|
-dontwarn net.fortuna.ical4j.model.** # ignore warnings from Groovy dependency
|
2014-12-21 09:01:41 +00:00
|
|
|
-keep class net.fortuna.ical4j.model.** { *; } # keep all model classes (properties/factories, created at runtime)
|
2014-12-20 22:33:31 +00:00
|
|
|
|
|
|
|
# dnsjava
|
|
|
|
-dontwarn sun.net.spi.nameservice.** # not available on Android
|
|
|
|
|
|
|
|
# DAVdroid
|
|
|
|
-keep class at.bitfire.davdroid.** { *; } # all DAVdroid code is required
|