android / android/ndk

High level C++ bindings for JNI calls

Open
#1,314 12 comments 0 reactions 0 assignees View on GitHub
c++ wrapper request enhancement
Dominant language
No language data
Stars
2.3k
Forks
310
PR merge metrics
No merged PRs in 30d

Description

As discussed on Reddit, here is an improvement idea.

Either adopt one of the following C++ JNI libraries:

- [cppJNI](https://github.com/nokia/cppJNI)
- [JavaCPP](https://github.com/bytedeco/javacpp)
- [jni.hpp](https://github.com/mapbox/jni.hpp)

Or having a Google provided one that takes advantage of templates and compile time programming to wrap JNI calls into C++ type safe calls, without the low level strings, similar to the approaches taken by the libraries above.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the issue's proposed libraries—cppJNI, JavaCPP, and jni.hpp—and the existing Android NDK JNI integration. The issue names no repository files, entry points, or tests, so the scope would first require deciding between adopting a library and designing a Google-provided type-safe wrapper. Done would require an agreed approach and implementation plan.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, cpp
Domain
mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.