Skip to content

Commit eae3e31

Browse files
committed
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.
1 parent a629756 commit eae3e31

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

app/proguard-rules.txt

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
-keepattributes Signature
3232
# Retain declared checked exceptions for use by a Proxy instance.
3333
-keepattributes Exceptions
34+
# Classes used by retrofit to fetch API repsonse
35+
-keepclasseswithmembers class org.wikipedia.** { *; }
3436
# --- /Retrofit ---
3537

3638
# --- OkHttp + Okio ---

gradle.properties

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#Thu Mar 01 15:28:48 IST 2018
1616
org.gradle.jvmargs=-Xmx1536M
1717
org.gradle.caching=true
18+
android.enableR8.fullMode=false
1819

1920
KOTLIN_VERSION=1.7.20
2021
BUTTERKNIFE_VERSION=10.1.0

0 commit comments

Comments
 (0)