mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
app: avoid R8 from obfuscating our model classes (#5359)
R8 shouldn't obfuscate the classes that we use for serialization / de-serialization over Gson. This causes issues with app functioning. Fixes #5358
This commit is contained in:
parent
1490710a51
commit
c086ff264f
1 changed files with 8 additions and 1 deletions
|
|
@ -31,8 +31,15 @@
|
|||
-keepattributes Signature
|
||||
# Retain declared checked exceptions for use by a Proxy instance.
|
||||
-keepattributes Exceptions
|
||||
# Classes used by retrofit to fetch API repsonse
|
||||
|
||||
# Application classes that will be serialized/deserialized over Gson
|
||||
-keepclasseswithmembers class org.wikipedia.** { *; }
|
||||
# Note: The model package right now seems to include some other classes that
|
||||
# are not used for serialization / deserialization over Gson. Hopefully
|
||||
# that's not a problem since it only prevents R8 from avoiding trimming
|
||||
# of few more classes.
|
||||
-keepclasseswithmembers class fr.free.nrw.commons.*.model.** { *; }
|
||||
|
||||
# --- /Retrofit ---
|
||||
|
||||
# --- OkHttp + Okio ---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue