From 9454e67a3fdd221432c7fb4cb555a4d99a209b02 Mon Sep 17 00:00:00 2001 From: Maxr1998 Date: Sat, 21 Nov 2020 13:51:28 +0100 Subject: [PATCH] Update ProGuard config Fix error in rules that basically disabled class removal, add rule to keep class and attribute names --- app/proguard-rules.pro | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 0623f65d..7068c9a0 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -1,7 +1,14 @@ -dontwarn -ignorewarnings -# RetroFit +-keep class com.dkanada.gramophone.**.* { *; } # Keep all Gelli classes and attributes +-keepnames class **.* { *; } # Keep class and attribute names +-keepattributes SourceFile,LineNumberTable # Keep file names/line numbers + +# Jellyfin API +-keepclasseswithmembers class org.jellyfin.apiclient.model.**.* { *; } + +# Retrofit -dontwarn retrofit.** -keep class retrofit.**.* { *; } -keepattributes Signature @@ -14,9 +21,3 @@ **[] $VALUES; public *; } - -# Android --keep class !android.support.v7.internal.view.menu.**.*,**.* { *; } - -# Jellyfin API --keepclasseswithmembers class org.jellyfin.apiclient.model.**.* { *; }