Skip to content

Commit 6c5d58b

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 6c5d58b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/proguard-rules.pro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
-dontwarn javax.script.**
1717
-keep class jdk.dynalink.** { *; }
1818
-dontwarn jdk.dynalink.**
19+
# Rules for jsoup
20+
# Ignore intended-to-be-optional re2j classes - only needed if using re2j for jsoup regex
21+
# jsoup safely falls back to JDK regex if re2j not on classpath, but has concrete re2j refs
22+
# See https://github.com/jhy/jsoup/issues/2459 - may be resolved in future, then this may be removed
23+
-dontwarn com.google.re2j.**
1924

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

0 commit comments

Comments
 (0)