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

Add Android native (ndk) implementation #206

Open
russhwolf opened this issue Sep 28, 2024 · 1 comment
Open

Add Android native (ndk) implementation #206

russhwolf opened this issue Sep 28, 2024 · 1 comment

Comments

@russhwolf
Copy link
Owner

There's currently no implementation shipping with the library that runs on Android native targets. In principle it should be possible to build one that talks to SharedPreferences via JNI. Is this something that people would find useful?

@russhwolf
Copy link
Owner Author

russhwolf commented Nov 26, 2024

I have a prototype of this which seems to work well, though it caches JNIEnv in a way that I think will make it fail in multithreaded scenarios and I don't know a good way to avoid that while conforming to the Settings API. It's also quite complex to build a test harness around since there's not really anything out-of-the-box there for the androidNative targets, but I do have a mostly working solution there.

In any event, I know a lot more about JNI now than I did a few months ago.

@russhwolf russhwolf added this to the Unspecified 1.x release milestone Nov 26, 2024
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

No branches or pull requests

1 participant