diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 23601ff11..135a165a8 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -35,3 +35,54 @@ boolean isLimitAdTrackingEnabled(); } -keep public class com.android.installreferrer.**{ *; } +-keep class * implements android.os.Parcelable.**{*;} +-keep class * implements android.os.Serializable.**{*;} +-dontwarn javax.annotation.** + +-dontwarn javax.inject.** + +# OkHttp3 + +-dontwarn okhttp3.logging.** + +-keep class okhttp3.internal.**{*;} + +-dontwarn okio.** + +# Retrofit + +-dontwarn retrofit2.** + +-keep class retrofit2.** { *; } + +-keepattributes Signature-keepattributes Exceptions + +# RxJava RxAndroid + +-dontwarn sun.misc.** + +-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* { + +long producerIndex; + +long consumerIndex; + +} + +-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef { + +rx.internal.util.atomic.LinkedQueueNode producerNode; + +} + +-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef { + +rx.internal.util.atomic.LinkedQueueNode consumerNode; + +} + +# Gson + +-keep class com.google.gson.stream.** { *; } + +-keepattributes EnclosingMethod