JNIpp 1.0
JNI meets C++
|
Welcome to JNIpp library which uses the power of C++ to give you better Java native interface.
JNIpp key features:
Start exploring JNIpp by looking at the examples.
See android/samples/HelloJNIpp
for Android-specific example that features native Activity, native custom draw View and natively handled Button.
JNIpp has the following dependencies:
Currently JNIpp supports Android platform only. It can be build on other platforms too (in fact it was developed on MacOS), however, no library projects are provided so you have to manually arrange and add source files to your app project.
On Android platform both JNIpp and dropins projects are installed as NDK modules (supported in NDK r5+). Steps to install:
NDK_ROOT/sources
directory. Checkout commands: git clone git@github.com:DmitrySkiba/itoa-dropins.git
git clone git@github.com:DmitrySkiba/itoa-jnipp.git
LOCAL_STATIC_LIBRARIES := itoa-jnipp
$(call import-module,itoa-jnipp/android)
android/samples/HelloJNIpp/jni/Android.mk
for example.APP_CPPFLAGS := -fexceptions APP_STL := gnustl_static
android/samples/HelloJNIpp/jni/Application.mk
for example. #include <JNIpp.h>
in your header and source files.Currently library has the following issues:
jni::GetEnv()->MonitorEnter(obj.GetJObject()).
Wrap calls in RAII object!