AntennaPod/app/proguard.cfg

133 lines
3.7 KiB
INI
Raw Normal View History

-dontobfuscate
-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable
-optimizations !code/allocation/variable
2017-10-22 11:59:15 +02:00
-optimizationpasses 5
2012-09-20 18:21:01 +02:00
-dontpreverify
-repackageclasses ''
-allowaccessmodification
-keepattributes *Annotation*
#-injars libs/presto_client-0.8.5.jar
2011-12-23 19:22:06 +01:00
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
2012-09-20 18:21:01 +02:00
-keep public class * extends android.view.View {
public <init>(android.content.Context);
public <init>(android.content.Context, android.util.AttributeSet);
public <init>(android.content.Context, android.util.AttributeSet, int);
public void set*(...);
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);
}
2011-12-23 19:22:06 +01:00
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}
2012-09-20 18:21:01 +02:00
-keepclassmembers class * extends android.content.Context {
2011-12-23 19:22:06 +01:00
public void *(android.view.View);
2012-09-20 18:21:01 +02:00
public void *(android.view.MenuItem);
2011-12-23 19:22:06 +01:00
}
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
}
2012-09-20 18:21:01 +02:00
-keepclassmembers class **.R$* {
public static <fields>;
2011-12-23 19:22:06 +01:00
}
-keep public class org.jsoup.** {
public *;
}
2019-01-06 00:23:34 +01:00
# for okhttp
2016-11-13 22:04:08 +01:00
-dontwarn okhttp3.**
-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.*
2015-08-22 15:52:09 +02:00
# for RxJava:
-dontwarn sun.misc.Unsafe
# for retrolambda
-dontwarn java.lang.invoke.*
2013-08-15 22:34:06 +02:00
-keep class android.support.v4.** { *; }
-keep interface android.support.v4.** { *; }
-keep class !android.support.v7.internal.view.menu.**,android.support.v7.** {*;}
2013-08-15 22:34:06 +02:00
-keep interface android.support.v7.** { *; }
-keep class com.google.android.wearable.** { *; }
2013-08-15 22:34:06 +02:00
-dontwarn android.support.v4.**
-dontwarn android.support.v7.**
-dontwarn com.google.android.wearable.**
2012-09-20 18:21:01 +02:00
-keep class org.shredzone.flattr4j.** { *; }
-dontwarn org.shredzone.flattr4j.**
2012-09-25 17:51:23 +02:00
-keep class org.apache.commons.** { *; }
2012-09-20 18:21:01 +02:00
-dontskipnonpubliclibraryclassmembers
2015-04-03 21:24:29 +02:00
2015-04-05 23:45:28 +02:00
# greenrobot EventBus
-keepclassmembers class ** {
public void onEvent*(**);
}
2018-11-11 10:07:57 +01:00
-keep class de.danoeh.antennapod.core.event.*
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
# for ViewPageIndicator problems (https://github.com/JakeWharton/ViewPagerIndicator/issues/366):
2016-01-23 18:03:58 +01:00
-dontwarn com.viewpagerindicator.LinePageIndicator
# for some reason ProGuard removes this file. Why? Unsure.
-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