mirror of
https://github.com/kiwix/java-libkiwix.git
synced 2025-09-14 01:25:25 -04:00

This make the JNI wrapping *somehow* NOT threadsafe. Few things are threadsafe "by nature": - A lot of native method in libzim are threadsafe. - Wrapping internal are threadsafe (shared_ptr). What is not threadsafe is accessing the SAME java object from different thread. But accessing the same wrapped cpp object using two different java wrapper in two different thread is ok (assuming that the called cpp method is threadsafe itself).
…
…
Java Libkiwix binding for Java/Kotlin
Android Library for accessing libkiwix and libzim in android with JAVA wrapper.
Steps to build
Clone java-libkiwix
git clone https://github.com/kiwix/java-libkiwix.git
cd java-libkiwix
Install dependencies
./install_deps.sh
Compile
./gradlew generateHeaderFilesFromJavaWrapper
./gradlew build
AAR file will be generated in directory lib/build/outputs/aar
Languages
Java
57.2%
C++
39.9%
CMake
1.9%
Shell
0.9%
HTML
0.1%