Skip to content

Force the use of JNA 5.17.0 #3767

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 7, 2025
Merged

Force the use of JNA 5.17.0 #3767

merged 1 commit into from
Aug 7, 2025

Conversation

rvandermeulen
Copy link
Contributor

We pick up JNA transitively by way of Glean, which is currently on version 5.14.0. However, we need to force version 5.17.0 due to Google Play's 16KB page size requirement. JNA 5.15.0+ crashes on Android <7, however, so it can't be bumped in Glean at this time. Therefore, manually force the use of version 5.17.0 at the app level since we only support running on Android 8+ now anyway.

@rvandermeulen rvandermeulen added the needs landing Auto lands approved and green PRs. label Aug 7, 2025
@rvandermeulen rvandermeulen requested review from a team and jonalmeida August 7, 2025 14:20
Copy link
Collaborator

@jonalmeida jonalmeida left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, I tested this against the lowest emulator I could find: API 23 and it works for the most part without crashes on debug, however I suspect we aren't exercising some of the same code. We should land this either way and test it out with R8 generating the APK.

@jonalmeida jonalmeida merged commit 5c42360 into master Aug 7, 2025
16 checks passed
@jonalmeida jonalmeida deleted the rvm/jna-5.17.0 branch August 7, 2025 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs landing Auto lands approved and green PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants