File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 6262-dontwarn org.slf4j.impl.StaticLoggerBinder
6363
6464-keep,allowshrinking class com.tokenautocomplete.TokenCompleteTextView
65+
66+ # Moshi's EnumJsonAdapter uses Class.getField() to map JSON strings to enum constants.
67+ # R8's enum optimization rewrites switch statements to use ordinals, making enum fields
68+ # appear unused, which causes R8 to strip them. This rule preserves all enum constants
69+ # so Moshi can deserialize them at runtime (e.g. via PendingCommandSerializer).
70+ -keep class net.thunderbird.core.common.mail.Flag { *; }
71+
72+ # Moshi uses reflection to read field types. R8 can rewrite List/Map to ArrayList/HashMap,
73+ # which breaks Moshi's collection interface requirement.
74+ -keep class com.fsck.k9.controller.MessagingControllerCommands$* { *; }
Original file line number Diff line number Diff line change 6262-dontwarn org.slf4j.impl.StaticLoggerBinder
6363
6464-keep,allowshrinking class com.tokenautocomplete.TokenCompleteTextView
65+
66+ # Moshi's EnumJsonAdapter uses Class.getField() to map JSON strings to enum constants.
67+ # R8's enum optimization rewrites switch statements to use ordinals, making enum fields
68+ # appear unused, which causes R8 to strip them. This rule preserves all enum constants
69+ # so Moshi can deserialize them at runtime (e.g. via PendingCommandSerializer).
70+ -keep class net.thunderbird.core.common.mail.Flag { *; }
71+
72+ # Moshi uses reflection to read field types. R8 can rewrite List/Map to ArrayList/HashMap,
73+ # which breaks Moshi's collection interface requirement.
74+ -keep class com.fsck.k9.controller.MessagingControllerCommands$* { *; }
You can’t perform that action at this time.
0 commit comments