From acf10876bd8f0080b55f9ff37b316472b29d497a Mon Sep 17 00:00:00 2001 From: Martin Fietz Date: Wed, 2 Nov 2016 21:24:36 +0100 Subject: [PATCH] Add proguard rules for fyyd client (retrofit & moshi) --- app/proguard.cfg | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/app/proguard.cfg b/app/proguard.cfg index a25664490..474beddc2 100644 --- a/app/proguard.cfg +++ b/app/proguard.cfg @@ -107,4 +107,19 @@ -dontwarn com.viewpagerindicator.LinePageIndicator # for some reason ProGuard removes this file. Why? Unsure. --keep class de.danoeh.antennapod.core.cast.SwitchableMediaRouteActionProvider { *; } \ No newline at end of file +-keep class de.danoeh.antennapod.core.cast.SwitchableMediaRouteActionProvider { *; } + +# Retrofit 2.0 +-dontwarn retrofit2.** +-keep class retrofit2.** { *; } +-keepattributes Signature +-keepattributes Exceptions + +-keepclasseswithmembers class * { + @retrofit2.http.* ; +} + +# Moshi +-keep class com.squareup.moshi.** { *; } +-keep interface com.squareup.moshi.** { *; } +-keep public class retrofit2.adapter.rxjava.RxJavaCallAdapterFactory { *; }