From b683d2d5df2bf31700ab360ad1d73495d3a2d7d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= Date: Wed, 16 May 2018 17:48:47 -0400 Subject: [PATCH] sblin created page: Android JNI --- Android-JNI.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Android-JNI.md diff --git a/Android-JNI.md b/Android-JNI.md new file mode 100644 index 00000000..5b3c9f98 --- /dev/null +++ b/Android-JNI.md @@ -0,0 +1,28 @@ +JNI generation process +---------------------- + +- `cd ring-project/` +- Check ./daemon/src/dring +- Create a new file .i in ./daemon/bin/jni/ from an existing file in + the same folder +- Update with your new interfaces from documentation +- Check that callback block is at the beginning AND at the end of file + + +- `cd daemon/bin/jni` +- Edit ./daemon/bin/jni/jni\_interface.i and add yours with the other + .i files that are in the same folder + + +- `export PACKAGEDIR=\*\*\*\*/ring-project/client-android/ring-android/libringclient/src/main/java/cx/ring/daemon.` + ie: `export + PACKAGEDIR=/home/pduchemin/Documents/ring-project/client-android/ring-android/libringclient/src/main/java/cx/ring/daemon` + + +- Run + - `./make-swig.sh` + + +- or, if you start from scratch + - `./make-ring.py --init --distribution=Android` + - `./make-ring.py --install --distribution=Android` \ No newline at end of file