Skip to content

Commit ca9cfee

Browse files
committed
Fix R8 minify by adding jsoup classes to proguard file
This fixes the following error during the minifyWithR8 task: 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 ca9cfee

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)