Wholphin/app/proguard-rules.pro
Damontecres 625cdcb4a3
Fix proguard for guava cache (#1445)
## Description
r8 optimizations seemingly cause guava's LocalCache to throw an
AssertationError when evicting an entry. This PR adds a broad keep rule
for the cache package.

The crash is reproducible on a release build with a TV Season that has
25+ episodes with people in them and scrolling through the episodes. It
will crash when focusing on the ~25th episode.

### Related issues
Related to #1437 

### Testing
Emulator & nvidia shield

## Screenshots
N/A

## AI or LLM usage
None
2026-05-23 21:21:51 -04:00

13 lines
400 B
Prolog

-keepattributes SourceFile,LineNumberTable
-keep class com.github.damontecres.wholphin.util.mpv.* { *; }
-keep class * extends com.google.protobuf.GeneratedMessageLite { *; }
-keepclassmembers class * extends com.google.protobuf.GeneratedMessageLite {
<fields>;
<methods>;
}
-dontwarn com.google.protobuf.**
# TODO investigate using smaller scope
-keep class com.google.common.cache.** { *; }