29 Commits

Author SHA1 Message Date
MohitMali
27d70f7376 Moved java-libkiwix to new Maven repo.
* We are moving our `java-libkiwix` to the new maven repo `org.kiwix` with version code `1.0.0`.
* Updated `README.md` file to use updated badge.
2023-08-16 17:57:04 +05:30
MohitMali
ebd27b53f1 Fixed libkiwix dependency
* Updated the source of libkiwix and libzim .so files to download.kiwix.org/release instead of using nightly builds.
* Introduced new variables for specifying the versions of libkiwix and libzim, allowing retrieval of .so files from the release repositories.
* Modified the README.md file to get the version and image from maven central for `org.kiwix.libkiwix` artifact.
2023-07-19 11:20:47 +05:30
MohitMali
423000e1a6 Upload java-libkiwix to the new Maven repository with version code 1.0.0 2023-07-18 15:20:03 +05:30
Matthieu Gautier
9d6ef87b57 Introduce EntryNotFoundException. 2023-06-30 11:32:55 +02:00
Matthieu Gautier
7c7f56d0de Rename renameFolders to removeDateFromFolderName 2023-06-14 10:12:42 +02:00
Matthieu Gautier
57fb755a02 Latest libzim nigthly is build on bionic. 2023-06-14 10:11:49 +02:00
Matthieu Gautier
d4f2f82e98 Introduce test package.
Jacoco don't track native methods, so our code coverage don't
include all the native methods, and it is exactly want we want to check.

By introducing a test package wrapping all native methods with a small
java function, we have the coverage of the wrapping methods.
2023-06-13 17:38:03 +02:00
MohitMaliFtechiz
07defa8356 Generating test binding and jacoco reports in build directory 2023-06-09 17:45:11 +02:00
MohitMaliFtechiz
bea92d800d Fixed source file path in compileTestFile task 2023-05-20 17:07:25 +02:00
MohitMaliFtechiz
3fd6a01f0f Renamed generateHeader as buildHeader and buildLinuxSoFile as buildLinuxBinding for better naming 2023-05-20 17:07:23 +02:00
MohitMaliFtechiz
84235ee822 Removed javac bash commands to compile and run test cases, now we are using the gradle tasks to compile and run test cases 2023-05-20 17:06:32 +02:00
MohitMaliFtechiz
fb380e208a Removed dependency from date for copying the .so and headers files of (libkiwix, libzim) , Now we are renameing the folders names via renameFolders method 2023-05-20 17:06:31 +02:00
MohitMaliFtechiz
5ec2f412fe run_test.sh script now mostly run java compilation and run java program for testing. In this commit we are compiling, running java test cases for gradle task, So we are removing the run_test.sh as it is unused now 2023-05-20 17:05:18 +02:00
MohitMaliFtechiz
bc93a5deed Renamed compile_and_run_test.sh to run_test.sh as now this script is only for running test cases, removed unnecessary check for directory in run_test.sh 2023-05-20 17:05:18 +02:00
MohitMaliFtechiz
cee67f6129 Removed different tasks for coping libzim,libkiwix headers and .so files 2023-05-20 17:05:18 +02:00
MohitMaliFtechiz
f2dfa01a72 Generating .aar file for android and .so file for testing via CmakeList as we are generating the .so file in app/CMakeList now test/CMakeList file is unused so we are removing it 2023-05-20 17:05:18 +02:00
MohitMaliFtechiz
78c57aa361 Renamed generateHeaderFilesFromJavaWrapper method to generateHeaders for better readability 2023-05-20 17:05:18 +02:00
MohitMali
9d962a3af1 Fixed generated jar path 2023-03-13 18:38:42 +05:30
MohitMali
38043b0b67 Refactored test cases 2023-03-10 16:37:21 +05:30
MohitMali
f427d53957 Fix cpp error while compiling 2023-03-06 17:39:57 +05:30
MohitMali
37618f2c63 Reverting minSdk,targetSdk version 2023-03-06 15:47:35 +05:30
MohitMali
9b7067ddd2 Fix path according to new folder structure 2023-03-03 18:38:40 +05:30
MohitMali
49de5c457e Include new wrapper files in test CmakeLists file 2023-03-03 16:08:53 +05:30
Matthieu Gautier
929ae6d1c3 Explicitly list the java files for what we need to generate header. 2023-02-09 14:59:09 +01:00
Matthieu Gautier
4e840ba5a9 Add compilation of libkiwix wrapper.
JNIKiwix.java is not compiled as it needs modules not found.
To be fixed.
2023-01-18 17:12:22 +01:00
Matthieu Gautier
f3ac28f56a Generate headers for all the *.java files. 2023-01-18 17:12:22 +01:00
Matthieu Gautier
9b971ce4dc Add wrapping around Search 2023-01-18 17:12:22 +01:00
Matthieu Gautier
f9f64991cd Add a basic wrapper around libzim.
This validate the build system has we now have a compiling wrapper around
libzim.
2023-01-18 17:12:22 +01:00
Matthieu Gautier
f7f6d5628d Adapt build system
- Build everything in buildDir instead of copy/generate things in src.
2022-12-21 16:01:02 +01:00