From eae3e312e45552d13a67695a781e1ebae90d3ab8 Mon Sep 17 00:00:00 2001 From: Kaartic Sivaraam Date: Mon, 16 Oct 2023 00:14:21 +0530 Subject: [PATCH] Disable full mode R8 optimizations Full mode R8 configurations are hindering the working of the app severly. So, disable the same. Also, ensure the POJO classes used to hold the API responses aren't optimized so that we could use the response properly without any issues. --- app/proguard-rules.txt | 2 ++ gradle.properties | 1 + 2 files changed, 3 insertions(+) diff --git a/app/proguard-rules.txt b/app/proguard-rules.txt index c71f80777..91f540693 100644 --- a/app/proguard-rules.txt +++ b/app/proguard-rules.txt @@ -31,6 +31,8 @@ -keepattributes Signature # Retain declared checked exceptions for use by a Proxy instance. -keepattributes Exceptions +# Classes used by retrofit to fetch API repsonse +-keepclasseswithmembers class org.wikipedia.** { *; } # --- /Retrofit --- # --- OkHttp + Okio --- diff --git a/gradle.properties b/gradle.properties index 2e66784c6..5a74a546c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -15,6 +15,7 @@ #Thu Mar 01 15:28:48 IST 2018 org.gradle.jvmargs=-Xmx1536M org.gradle.caching=true +android.enableR8.fullMode=false KOTLIN_VERSION=1.7.20 BUTTERKNIFE_VERSION=10.1.0