Skip to content
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

android: Use ndk-context instead of ndk-glue to access JVM #52

Merged
merged 1 commit into from Nov 1, 2022

Conversation

rib
Copy link
Contributor

@rib rib commented Oct 31, 2022

This makes webbrowser-rs more compatible with different Android application frameworks by not imposing that applications must use ndk-glue.

This also bumps the jni dependency to 0.20 and uses the JObject::from_raw API.

Fixes: #51

This makes webbrowser-rs more compatible with different Android
application frameworks by not imposing that applications must use
ndk-glue.

This also bumps the `jni` dependency to 0.20 and uses the
`JObject::from_raw` API.

Fixes: amodm#51
src/android.rs Show resolved Hide resolved
@rib
Copy link
Contributor Author

rib commented Oct 31, 2022

For reference this PR can also be compared to this similar change to cpal to remove the dependency on ndk-glue, for a similar reason:

RustAudio/cpal#641

or this PR for app_dirs2:

app-dirs-rs/app_dirs2#19

@amodm amodm merged commit 9174e07 into amodm:main Nov 1, 2022
@amodm
Copy link
Owner

amodm commented Nov 1, 2022

Thanks for the clarification, @rib, and for making the Android code for this library more stable.

@amodm
Copy link
Owner

amodm commented Nov 1, 2022

This is now out as v0.8.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use of ndk-glue for Android builds causes conflicts
2 participants