-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
Description
Problem solved by the feature
The README only specifies that Java 7 is the minimum version for the latest Gson versions. However, for Android developers this information is not that helpful because Java 7 API was added in multiple different Android API levels. For example java.lang.ReflectiveOperationException
added in Java 7 was only added for Android API level 19 (Android 4.4), see also #2310 (comment).
Feature description
- The README should explicitly state which Android API level is the minimum
- The build setup should verify that no newer Android APIs are used (respectively that desugaring is supported).
This can be verified using Animal Sniffer, see:- Experiment with checking against *Android* Animal Sniffer signatures guava#4005
- Android Scents for Maven
(to be verified that these artifacts are safe; but appears they are also used by other projects, e.g. OkHttp (code)) - Animal Sniffer signatures, considering desugaring: https://github.com/open-toast/gummy-bears
In that case would have to explicitly mention desugaring (using the latest Android build tools?) in the README
Alternatives / workarounds
none