Skip to content

Commit 23e832a

Browse files
committed
Fix minify step of release build by ignoring two classes
This fixes the following error during the minifyWithR8 task: > Task :app:minifyReleaseWithR8 FAILED ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in /home/runner/work/NewPipe/NewPipe/app/build/outputs/mapping/release/missing_rules.txt. ERROR: R8: Missing class com.google.re2j.Matcher (referenced from: com.google.re2j.Matcher org.jsoup.helper.Re2jRegex$Re2jMatcher.delegate and 3 other contexts) Missing class com.google.re2j.Pattern (referenced from: com.google.re2j.Pattern org.jsoup.helper.Re2jRegex.re2jPattern and 4 other contexts)
1 parent 98a1e65 commit 23e832a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/proguard-rules.pro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
-dontwarn javax.script.**
1717
-keep class jdk.dynalink.** { *; }
1818
-dontwarn jdk.dynalink.**
19+
# Rules for jsoup
20+
-dontwarn com.google.re2j.Pattern
21+
-dontwarn com.google.re2j.Matcher
1922

2023
## Rules for ExoPlayer
2124
-keep class com.google.android.exoplayer2.** { *; }

0 commit comments

Comments
 (0)