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
|
|
|
|
|
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
|
2014-12-20 22:33:31 +00:00
|
|
|
-dontwarn sun.misc.Perf
|
2016-10-17 22:30:37 +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
|
2014-12-20 22:33:31 +00:00
|
|
|
-dontwarn org.codehaus.groovy.**
|
2016-10-17 22:30:37 +00:00
|
|
|
-dontwarn net.fortuna.ical4j.model.** # ignore warnings from Groovy dependency
|
|
|
|
-keep class net.fortuna.ical4j.** { *; } # keep all model classes (properties/factories, created at runtime)
|
2014-12-20 22:33:31 +00:00
|
|
|
|
2015-10-18 22:04:58 +00:00
|
|
|
# okhttp
|
2016-10-17 22:30:37 +00:00
|
|
|
-dontwarn java.nio.file.** # not available on Android
|
2015-10-18 22:04:58 +00:00
|
|
|
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
|
|
|
|
|
|
|
|
# DAVdroid + libs
|
2016-10-17 22:30:37 +00:00
|
|
|
-keep class at.bitfire.** { *; } # all DAVdroid code is required
|
2017-01-02 19:39:10 +00:00
|
|
|
|
|
|
|
# Spongcastle
|
|
|
|
-dontwarn org.spongycastle.jce.provider.X509LDAPCertStoreSpi
|
|
|
|
-dontwarn org.spongycastle.x509.util.LDAPStoreHelper
|
|
|
|
-keep class org.spongycastle.crypto.BufferedBlockCipher
|
|
|
|
-keep class org.spongycastle.crypto.CipherParameters
|
|
|
|
-keep class org.spongycastle.crypto.InvalidCipherTextException
|
|
|
|
-keep class org.spongycastle.crypto.digests.SHA256Digest
|
|
|
|
-keep class org.spongycastle.crypto.engines.AESEngine
|
|
|
|
-keep class org.spongycastle.crypto.generators.SCrypt
|
|
|
|
-keep class org.spongycastle.crypto.macs.HMac
|
|
|
|
-keep class org.spongycastle.crypto.modes.CBCBlockCipher
|
|
|
|
-keep class org.spongycastle.crypto.paddings.BlockCipherPadding
|
|
|
|
-keep class org.spongycastle.crypto.paddings.PKCS7Padding
|
|
|
|
-keep class org.spongycastle.crypto.paddings.PaddedBufferedBlockCipher
|
|
|
|
-keep class org.spongycastle.crypto.params.KeyParameter
|
|
|
|
-keep class org.spongycastle.crypto.params.ParametersWithIV
|
|
|
|
-keep class org.spongycastle.util.encoders.Hex
|