Adds a general rule to not be obfuscating data classes that use GSON @SerializedName
This commit is contained in:
parent
15b2e24a3c
commit
911c3a8313
|
@ -271,10 +271,6 @@
|
|||
# Coroutines
|
||||
-dontwarn kotlinx.atomicfu.AtomicBoolean
|
||||
|
||||
# labels models
|
||||
-keep public class ch.protonmail.android.labels.data.remote.model.LabelEventModel { }
|
||||
-keep class ch.protonmail.android.labels.data.remote.model.** { *; }
|
||||
|
||||
# kotlinx.serialization
|
||||
-keepattributes *Annotation*, InnerClasses
|
||||
-dontnote kotlinx.serialization.AnnotationsKt # core serialization annotations
|
||||
|
@ -300,4 +296,9 @@
|
|||
}
|
||||
-keepclasseswithmembers class ch.protonmail.android.** {
|
||||
kotlinx.serialization.KSerializer serializer(...);
|
||||
}
|
||||
|
||||
# Prevent leaving Data object members always null
|
||||
-keepclasseswithmembers,allowobfuscation class * {
|
||||
@com.google.gson.annotations.SerializedName <fields>;
|
||||
}
|
Loading…
Reference in New Issue