Skip to content

Lint use of JDK APIs unavailable in Android #4679

@alexander-alderman-webb

Description

Description

Releases 8.19 and 8.19.1 are incompatible with API levels less than 26.

Normally, integration tests would be a place to detect unsupported API calls. Our integration tests use Maestro, which has a minimum API level of 26: mobile-dev-inc/Maestro#935.

We could add a Gradle plugin like de.thetaphi.forbiddenapis to catch the use of JDK APIs that are unsupported in API level 21 (or above). We would have to investigate which JDK APIs are available in old API levels through de-sugaring. Only the remaining JDK APIs should be blocked, such as APIs related to named groups that were used in versions 8.19 of the Sentry SDK.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions