Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / youpipe / proguard-rules.pro
proguard-rules.pro21 lines · 1.0 KiBRaw
| 1 | # Keep Media3 TextRenderer and related classes for subtitle support |
| 2 | # experimentalSetLegacyDecodingEnabled is marked @ExperimentalApi but we need it for TTML/VTT/SRT captions |
| 3 | -keep class androidx.media3.exoplayer.text.TextRenderer { |
| 4 | public void experimentalSetLegacyDecodingEnabled(boolean); |
| 5 | *** *(...); |
| 6 | } |
| 7 | -keep class androidx.media3.exoplayer.text.** { *; } |
| 8 | -keep class androidx.media3.extractor.text.** { *; } |
| 9 | -keep class androidx.media3.common.text.** { *; } |
| 10 | |
| 11 | # Keep subtitle-related MediaItem configurations |
| 12 | -keep class androidx.media3.common.MediaItem$SubtitleConfiguration { *; } |
| 13 | -keep class androidx.media3.common.MediaItem$SubtitleConfiguration$Builder { *; } |
| 14 | |
| 15 | # Keep SingleSampleMediaSource for subtitle loading |
| 16 | -keep class androidx.media3.exoplayer.source.SingleSampleMediaSource { *; } |
| 17 | -keep class androidx.media3.exoplayer.source.SingleSampleMediaSource$Factory { *; } |
| 18 | |
| 19 | # NewPipe extractor - keep subtitle related classes |
| 20 | -keep class org.schabi.newpipe.extractor.stream.SubtitlesStream { *; } |
| 21 | -keep class org.schabi.newpipe.extractor.MediaFormat { *; } |