From 6c474daacdd81f40aa404695eecf9fdbe82e33c3 Mon Sep 17 00:00:00 2001 From: arkon Date: Mon, 2 Mar 2020 21:45:16 -0500 Subject: [PATCH] Update Proguard rules - Keep everything in Tachiyomi package (for extensions) - Remove SnakeYaml --- app/proguard-rules.pro | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 0d0bde354f..c9200b7817 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -1,8 +1,15 @@ -dontobfuscate +# Extensions may require methods unused in the core app -dontwarn eu.kanade.tachiyomi.** --keep class eu.kanade.tachiyomi.** --keep class eu.kanade.tachiyomi.source.model.** { *; } +-keep class eu.kanade.tachiyomi.** { public protected private *; } + +-keep class org.jsoup.** { *; } +-keep class kotlin.** { *; } +-keep class okhttp3.** { *; } +-keep class com.google.gson.** { *; } +-keep class com.github.salomonbrys.kotson.** { *; } +-keep class com.squareup.duktape.** { *; } # Design library -dontwarn com.google.android.material.** @@ -14,13 +21,6 @@ -keep interface com.hippo.image.** { *; } -dontwarn nucleus.view.NucleusActionBarActivity -# Extensions may require methods unused in the core app --keep class org.jsoup.** { *; } --keep class kotlin.** { *; } --keep class okhttp3.** { *; } --keep class com.google.gson.** { *; } --keep class com.github.salomonbrys.kotson.** { *; } - # OkHttp -dontwarn okhttp3.** -dontwarn okio.** @@ -69,10 +69,3 @@ -keep class * implements com.google.gson.TypeAdapterFactory -keep class * implements com.google.gson.JsonSerializer -keep class * implements com.google.gson.JsonDeserializer - -# SnakeYaml --keep class org.yaml.snakeyaml.** { public protected private *; } --dontwarn org.yaml.snakeyaml.** - -# Duktape --keep class com.squareup.duktape.** { *; }