Skip to content

Commit 78a6370

Browse files
dependabot[bot]david-allison
authored andcommitted
build(deps): bump org.jsoup:jsoup from 1.21.2 to 1.22.1
Bumps [org.jsoup:jsoup](https://github.com/jhy/jsoup) from 1.21.2 to 1.22.1. - [Release notes](https://github.com/jhy/jsoup/releases) - [Changelog](https://github.com/jhy/jsoup/blob/master/CHANGES.md) - [Commits](jhy/jsoup@jsoup-1.21.2...jsoup-1.22.1) --- updated-dependencies: - dependency-name: org.jsoup:jsoup dependency-version: 1.22.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> build(deps): ignore optional re2j class dependency that the r8 shrinker finds in jsoup - all access of the concrete references to the optional re2j library are gated via reflective inspection of the classpath to see if it is available, so ignoring warnings should be safe - testing in note editor adding an image (which should pass through the code that uses jsoup) survived with no crash
1 parent 4398283 commit 78a6370

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

AnkiDroid/proguard-rules.pro

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@
3333
# Ignore unused packages
3434
-dontwarn javax.naming.**
3535
-dontwarn org.ietf.jgss.**
36+
37+
# Ignore intended-to-be-optional re2j classes - only needed if using re2j for jsoup regex
38+
# jsoup safely falls back to JDK regex if re2j not on classpath, but has concrete re2j refs
39+
# See https://github.com/jhy/jsoup/issues/2459 - may be resolved in future, then this may be removed
40+
# See https://github.com/ankidroid/Anki-Android/pull/19985
41+
-dontwarn com.google.re2j.**

gradle/libs.versions.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ jacoco = "0.8.14"
8282
javaSemver = "0.10.2"
8383
jetbrainsAnnotations = "26.0.2-1"
8484
json = "20251224"
85-
jsoup = "1.21.2"
85+
# https://github.com/jhy/jsoup/releases
86+
jsoup = "1.22.1"
8687
androidTestJunit = "1.3.0"
8788
# https://github.com/junit-team/junit5/releases/
8889
junit = "6.0.1"

0 commit comments

Comments
 (0)