mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2024-12-29 10:13:58 +01:00
130 lines
3.6 KiB
INI
130 lines
3.6 KiB
INI
-dontobfuscate
|
|
-renamesourcefileattribute SourceFile
|
|
-keepattributes SourceFile,LineNumberTable
|
|
-optimizations !code/allocation/variable
|
|
-optimizationpasses 5
|
|
|
|
-dontpreverify
|
|
-repackageclasses ''
|
|
-allowaccessmodification
|
|
-keepattributes *Annotation*
|
|
|
|
#-injars libs/presto_client-0.8.5.jar
|
|
-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
|
|
|
|
-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*(...);
|
|
}
|
|
|
|
-keepclassmembers enum * {
|
|
public static **[] values();
|
|
public static ** valueOf(java.lang.String);
|
|
}
|
|
|
|
-keepclasseswithmembers class * {
|
|
public <init>(android.content.Context, android.util.AttributeSet);
|
|
}
|
|
|
|
-keepclasseswithmembers class * {
|
|
public <init>(android.content.Context, android.util.AttributeSet, int);
|
|
}
|
|
|
|
-keepclassmembers class * extends android.content.Context {
|
|
public void *(android.view.View);
|
|
public void *(android.view.MenuItem);
|
|
}
|
|
|
|
-keepclassmembers class * implements android.os.Parcelable {
|
|
static android.os.Parcelable$Creator CREATOR;
|
|
}
|
|
|
|
-keepclassmembers class **.R$* {
|
|
public static <fields>;
|
|
}
|
|
|
|
-keep public class org.jsoup.** {
|
|
public *;
|
|
}
|
|
|
|
# for okhttp
|
|
-dontwarn okhttp3.**
|
|
-dontwarn okio.**
|
|
-dontwarn javax.annotation.**
|
|
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
|
|
-dontwarn org.codehaus.mojo.animal_sniffer.*
|
|
|
|
# for RxJava:
|
|
-dontwarn sun.misc.Unsafe
|
|
|
|
# for retrolambda
|
|
-dontwarn java.lang.invoke.*
|
|
|
|
-keep class android.support.v4.** { *; }
|
|
-keep interface android.support.v4.** { *; }
|
|
-keep class !android.support.v7.internal.view.menu.**,android.support.v7.** {*;}
|
|
-keep interface android.support.v7.** { *; }
|
|
-keep class com.google.android.wearable.** { *; }
|
|
-dontwarn android.support.v4.**
|
|
-dontwarn android.support.v7.**
|
|
-dontwarn com.google.android.wearable.**
|
|
|
|
-keep class org.apache.commons.** { *; }
|
|
|
|
-dontskipnonpubliclibraryclassmembers
|
|
|
|
# greenrobot EventBus
|
|
-keepclassmembers class ** {
|
|
public void onEvent*(**);
|
|
}
|
|
-keep class de.danoeh.antennapod.core.event.*
|
|
|
|
# android-iconify
|
|
-keep class com.joanzapata.** { *; }
|
|
|
|
# Glide
|
|
-keep public class * implements com.bumptech.glide.module.GlideModule
|
|
-keep public class * extends com.bumptech.glide.module.AppGlideModule
|
|
-keep public enum com.bumptech.glide.load.ImageHeaderParser$** {
|
|
**[] $VALUES;
|
|
public *;
|
|
}
|
|
-dontwarn com.bumptech.glide.load.resource.bitmap.VideoDecoder
|
|
|
|
# for ViewPageIndicator problems (https://github.com/JakeWharton/ViewPagerIndicator/issues/366):
|
|
-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 { *; }
|
|
|
|
# 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
|
|
|