mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2024-12-17 11:19:42 +01:00
137 lines
3.7 KiB
INI
137 lines
3.7 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 *;
|
|
}
|
|
|
|
-dontwarn okhttp3.**
|
|
-dontwarn okio.**
|
|
|
|
# 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.shredzone.flattr4j.** { *; }
|
|
-dontwarn org.shredzone.flattr4j.**
|
|
|
|
-keep class org.apache.commons.** { *; }
|
|
|
|
-dontskipnonpubliclibraryclassmembers
|
|
|
|
# disable logging
|
|
-assumenosideeffects class android.util.Log {
|
|
public static boolean isLoggable(java.lang.String, int);
|
|
public static *** v(...);
|
|
public static *** i(...);
|
|
public static *** w(...);
|
|
public static *** d(...);
|
|
public static *** e(...);
|
|
}
|
|
|
|
# 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 enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
|
|
**[] $VALUES;
|
|
public *;
|
|
}
|
|
|
|
# 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
|
|
|