2015-04-27 00:00:52 +02:00
|
|
|
-dontobfuscate
|
2012-09-17 00:48:52 +02:00
|
|
|
-renamesourcefileattribute SourceFile
|
|
|
|
-keepattributes SourceFile,LineNumberTable
|
2015-04-27 00:00:52 +02:00
|
|
|
-optimizations !code/allocation/variable
|
2017-10-22 11:59:15 +02:00
|
|
|
-optimizationpasses 5
|
2012-09-17 00:48:52 +02:00
|
|
|
|
2012-09-20 18:21:01 +02:00
|
|
|
-dontpreverify
|
|
|
|
-allowaccessmodification
|
2020-04-10 00:03:53 +02:00
|
|
|
-dontskipnonpubliclibraryclassmembers
|
2011-12-23 19:22:06 +01:00
|
|
|
|
2020-04-10 00:03:53 +02:00
|
|
|
# Keep our own classes and members. They are all used.
|
|
|
|
# Without this, methods only used in tests are removed and break tests.
|
|
|
|
-keep class de.danoeh.antennapod**
|
|
|
|
-keepclassmembers class de.danoeh.antennapod** {*;}
|
|
|
|
-keep class de.test.antennapod**
|
|
|
|
-keepclassmembers class de.test.antennapod** {*;}
|
|
|
|
|
|
|
|
# Keep methods used in tests.
|
|
|
|
# This is only needed when running tests with proguard enabled.
|
|
|
|
-keepclassmembers class org.apache.commons.lang3.StringUtils {*;}
|
|
|
|
-keepclassmembers class androidx.appcompat.app.ActionBar {
|
|
|
|
public ** getTitle();
|
|
|
|
}
|
|
|
|
-keepclassmembers class org.apache.commons.io.IOUtils {
|
|
|
|
public static void write(...);
|
2011-12-23 19:22:06 +01:00
|
|
|
}
|
|
|
|
|
2013-03-20 19:17:13 +01:00
|
|
|
-keepclassmembers enum * {
|
|
|
|
public static **[] values();
|
|
|
|
public static ** valueOf(java.lang.String);
|
|
|
|
}
|
|
|
|
|
2012-09-20 18:21:01 +02:00
|
|
|
-keepclassmembers class * implements android.os.Parcelable {
|
|
|
|
static android.os.Parcelable$Creator CREATOR;
|
2011-12-23 19:22:06 +01:00
|
|
|
}
|
|
|
|
|
2014-07-26 14:35:03 +02:00
|
|
|
-keep public class org.jsoup.** {
|
|
|
|
public *;
|
|
|
|
}
|
2014-07-27 23:29:47 +02:00
|
|
|
|
2019-01-06 00:23:34 +01:00
|
|
|
# for okhttp
|
2016-11-13 22:04:08 +01:00
|
|
|
-dontwarn okhttp3.**
|
2014-07-27 23:29:47 +02:00
|
|
|
-dontwarn okio.**
|
2019-01-06 00:23:34 +01:00
|
|
|
-dontwarn javax.annotation.**
|
|
|
|
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
|
|
|
|
-dontwarn org.codehaus.mojo.animal_sniffer.*
|
2014-07-27 23:29:47 +02:00
|
|
|
|
2015-08-22 15:52:09 +02:00
|
|
|
# for RxJava:
|
|
|
|
-dontwarn sun.misc.Unsafe
|
|
|
|
|
2015-08-22 17:31:41 +02:00
|
|
|
# for retrolambda
|
|
|
|
-dontwarn java.lang.invoke.*
|
|
|
|
|
2015-04-05 23:45:28 +02:00
|
|
|
# greenrobot EventBus
|
2019-10-25 11:54:06 +02:00
|
|
|
-keepattributes *Annotation*
|
|
|
|
-keepclassmembers class * {
|
|
|
|
@org.greenrobot.eventbus.Subscribe <methods>;
|
2015-04-05 23:45:28 +02:00
|
|
|
}
|
2019-10-25 11:54:06 +02:00
|
|
|
-keep enum org.greenrobot.eventbus.ThreadMode { *; }
|
2015-04-21 21:00:51 +02:00
|
|
|
|
|
|
|
# android-iconify
|
|
|
|
-keep class com.joanzapata.** { *; }
|
2015-07-21 20:04:39 +02:00
|
|
|
|
|
|
|
# Glide
|
|
|
|
-keep public class * implements com.bumptech.glide.module.GlideModule
|
2019-01-06 00:23:34 +01:00
|
|
|
-keep public class * extends com.bumptech.glide.module.AppGlideModule
|
|
|
|
-keep public enum com.bumptech.glide.load.ImageHeaderParser$** {
|
|
|
|
**[] $VALUES;
|
|
|
|
public *;
|
2015-07-21 20:04:39 +02:00
|
|
|
}
|
2019-01-06 00:23:34 +01:00
|
|
|
-dontwarn com.bumptech.glide.load.resource.bitmap.VideoDecoder
|
2016-01-23 17:41:04 +01:00
|
|
|
|
|
|
|
# for ViewPageIndicator problems (https://github.com/JakeWharton/ViewPagerIndicator/issues/366):
|
2016-01-23 18:03:58 +01:00
|
|
|
-dontwarn com.viewpagerindicator.LinePageIndicator
|
2016-05-01 14:00:59 +02:00
|
|
|
|
|
|
|
# for some reason ProGuard removes this file. Why? Unsure.
|
2016-11-02 21:24:36 +01:00
|
|
|
-keep class de.danoeh.antennapod.core.cast.SwitchableMediaRouteActionProvider { *; }
|
|
|
|
|
|
|
|
# Retrofit 2.0
|
|
|
|
-dontwarn retrofit2.**
|
|
|
|
-keep class retrofit2.** { *; }
|
|
|
|
-keepattributes Signature
|
|
|
|
-keepattributes Exceptions
|
|
|
|
|
|
|
|
-keepclasseswithmembers class * {
|
|
|
|
@retrofit2.http.* <methods>;
|
|
|
|
}
|
|
|
|
|
|
|
|
# Moshi
|
|
|
|
-keep class com.squareup.moshi.** { *; }
|
|
|
|
-keep interface com.squareup.moshi.** { *; }
|
|
|
|
-keep public class retrofit2.adapter.rxjava.RxJavaCallAdapterFactory { *; }
|
2018-10-11 20:10:14 +02:00
|
|
|
|
|
|
|
# awaitility
|
|
|
|
-dontwarn java.beans.BeanInfo
|
|
|
|
-dontwarn java.beans.Introspector
|
|
|
|
-dontwarn java.beans.IntrospectionException
|
|
|
|
-dontwarn java.beans.PropertyDescriptor
|
|
|
|
-dontwarn java.lang.management.ManagementFactory
|
|
|
|
-dontwarn java.lang.management.ThreadInfo
|
|
|
|
-dontwarn java.lang.management.ThreadMXBean
|