jsoup icon indicating copy to clipboard operation
jsoup copied to clipboard

Bump minimum Android API level to 21

Open Isira-Seneviratne opened this issue 1 year ago • 3 comments

Android versions below 5.0 (API level 21) are obsolete these days. This change would allow the use of features such as StandardCharsets, which is available on Android 4.4 (API level 19) and higher.

This PR also changes one Sniffer dependency to Gummy Bears, which has support for desugaring.

Isira-Seneviratne avatar Jul 16 '24 10:07 Isira-Seneviratne

Is there anything other that might be useful other than StandardCharsets? That doesn't really make any difference from my POV, being that we statically initialize UTF-8 anyway at startup.

I get that the usage is very low % wise, but I don't see a reason to remove support just because?

jhy avatar Jul 17 '24 04:07 jhy

There's also try-with-resources.

Isira-Seneviratne avatar Jul 18 '24 05:07 Isira-Seneviratne

OK, try-with-resources will be good to have. I have marked this for the 1.19.1 milestone (vs 1.18.2), as I feel that the change warrants being in a major bump.

jhy avatar Jul 29 '24 04:07 jhy

Thanks, merged!

jhy avatar Dec 13 '24 02:12 jhy