chore: add R8 rules to prevent obfuscating file usage classes

This commit is contained in:
Rohit Verma 2025-06-23 18:46:37 +05:30
parent 09da7b8d68
commit 4b2c8514cb
No known key found for this signature in database
GPG key ID: D64E53E770687D0E

View file

@ -66,6 +66,9 @@
# Application classes that will be serialized/deserialized over Gson
-keep class com.google.gson.examples.android.model.** { *; }
# Prevent R8 from obfuscating project classes used by Gson for parsing
-keep class fr.free.nrw.commons.fileusages.** { *; }
# Prevent proguard from stripping interface information from TypeAdapterFactory,
# JsonSerializer, JsonDeserializer instances (so they can be used in @JsonAdapter)
-keep class * implements com.google.gson.TypeAdapterFactory