Matthieu Gautier f4b5d7aee4 Use a common class Wrapper and IterWrapper to wrapp native resource.
Native resource (pointer to shared_ptr) is stored as a long in the
`Wrapper.Resource` class.

As Wrapper implements AutoCloseable and we register the (java) resource
to be cleaned at object destruction, we now properly delete the native
resource.


This also adding new macro to avoid writting the class name and so
reduce potential typos.

# Conflicts:
#	lib/build.gradle
#	lib/src/main/java/org/kiwix/libkiwix/Library.java
2023-03-01 15:05:38 +01:00
2023-01-18 17:12:22 +01:00
2021-05-13 10:31:08 +02:00
2022-12-21 16:01:02 +01:00

Maven Central CodeFactor License: GPL v3

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

Description
Libkiwix binding for Java & Kotlin
Readme GPL-3.0 267 MiB
Languages
Java 57.2%
C++ 39.9%
CMake 1.9%
Shell 0.9%
HTML 0.1%