312 Commits

Author SHA1 Message Date
MohitMali
b374eb4c89 Updated library version to 1.0.1. 2023-11-10 15:11:12 +05:30
MohitMali
8d5373de66 Updated the CHANGELOG. 2023-11-10 15:10:47 +05:30
Kelson
f1bcd87c5e
Merge pull request #74 from kiwix/no_string_for_illustration_data
Do not put binary illustration data into a string.
2023-11-10 08:14:43 +01:00
Matthieu Gautier
ed6a302d1c Add a test on Illustration data coming from book. 2023-11-09 18:00:51 +01:00
Matthieu Gautier
1cbbd4eaa5 Do not put binary illustration data into a string.
Java String must contains utf8 content.
Illusration data which is PNG is definitively not a utf8 string.

Fix #73
2023-11-09 18:00:51 +01:00
Kelson
853233ae37
Merge pull request #72 from kiwix/load_library_not_readonly
Do not read the library in readOnly mode.
2023-11-09 18:00:03 +01:00
Matthieu Gautier
d109cc5aa8 Do not the library in readOnly mode.
The readOnly argument of `readFile` is to put the loaded library in
readOnly mode. Which kinda means "Do not write again what is loaded".

We don't want that for android as we want to save again our
(potentially modified) library.

See kiwix/kiwix-android#3474
2023-11-09 11:19:54 +01:00
Kelson
f9dc43e177
Merge pull request #66 from kiwix/Issue#65
Updated `README.md` file to demonstrate how devs can use generated binaries in their project.
1.0.0
2023-08-27 11:31:59 +07:00
MohitMali
ee1f2b4ff0
Added instructions in README.md file to show how devs can use latest binaries in their project. 2023-08-27 11:28:44 +07:00
Matthieu Gautier
574fc630b2
Merge pull request #67 from kiwix/AddChangelog 2023-08-25 14:30:56 +02:00
MohitMali
9c487e98fc Added CHANGELOG file for showing what changes/improvements have been made in 1.0.0 2023-08-25 14:09:14 +02:00
Matthieu Gautier
a9f37d42c5
Merge pull request #53 from kiwix/Issue#51 2023-08-25 14:08:46 +02:00
MohitMali
c314d48b1d Changed CMAKE_ANDROID_STL_TYPE to shared since it is not recommeded to use static when we are using the multiple dynamic libraries 2023-08-25 13:55:07 +02:00
Matthieu Gautier
cad3fb8e94
Merge pull request #63 from kiwix/Issue#62 2023-08-25 13:54:47 +02:00
MohitMali
197777d8ae Updated Versions of libkiwix and libzim.
Previously, we were utilizing `libkiwix 12.0.0` and `libzim 8.2.0`. In preparation for publishing `java-libkiwix` on Maven, we've obtained newer versions of these libraries. Hence, we're upgrading to `libkiwix 12.1.0` and `libzim 8.2.1`.
2023-08-16 18:40:23 +05:30
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
Matthieu Gautier
74c4abadca
Merge pull request #60 from kiwix/Issue#50 2023-08-11 11:28:53 +02:00
MohitMali
190473fdcb Update README with additional instructions for loading ZIM files and articles.
This commit updates the README file to include additional instructions for loading ZIM files and accessing articles in the Kiwix content archive using the `java-libkiwix` library.

Changes made in the README:
- Added a section explaining how to load a ZIM file by creating an `Archive` object.
- Clarified the description of the `mainPage` property, detailing its behavior when dealing with redirects and non-existent entries.
- Provided code snippets and instructions for loading articles via title and path, including a reminder to properly decode the URL path before passing it to `hasEntryByPath`.

These changes aim to improve the documentation and assist developers in effectively utilizing the `java-kibkiwix` library to work with zim files.
2023-08-11 14:56:32 +05:30
Matthieu Gautier
4fed04fae7
Merge pull request #61 from kiwix/fix_suggestion_iterator 2023-08-08 11:58:32 +02:00
Matthieu Gautier
c94a04bbdc Make next() throws NoSuchElementException if hasNext is false. 2023-08-07 17:16:40 +02:00
Matthieu Gautier
8323333c44 Fix SuggestionIterator hasNext. 2023-08-07 17:16:04 +02:00
Kelson
f561034ba8
Merge pull request #59 from kiwix/add-copying-file
Add COPYING file
2023-07-28 21:23:37 +02:00
Emmanuel Engelhart
81f7361a30
Add COPYING file 2023-07-28 21:22:59 +02:00
Kelson
d91651e1ec
Merge pull request #55 from kiwix/kelson42-patch-1
Update README.md
2023-07-28 15:30:10 +02:00
Kelson
7ac4541a69 Update README.md
Small improvements of the README file
2023-07-28 15:23:43 +02:00
Kelson
f48a43a398
Merge pull request #58 from kiwix/workflow-fixes
Refresh a bit the CI/CD workflows
2023-07-28 09:42:27 +02:00
MohitMali
8dd4c86ca6 Improved CI workflow
* Used latest @v2 action for setting up java for the CI instead of @v1.
* Used single command of gradle instead of multiple commands of gradle for `Compile and prepare package` task, because gradle will automatically execute all tasks one by one.
2023-07-28 11:38:37 +05:30
Emmanuel Engelhart
fbf2c43aab
Refresh a bit the CI/CD workflows 2023-07-27 21:40:19 +02:00
Matthieu Gautier
42b50ca6f4
Merge pull request #48 from kiwix/fix_icu_setdatadirectory 2023-07-21 14:26:38 +02:00
Matthieu Gautier
020c9375a9 Fix typo in setDataDirectory.
This is `libkiwix`, not `kiwixlib`.
2023-07-21 10:28:40 +02:00
Matthieu Gautier
c1746acd4f
Merge pull request #45 from kiwix/Fixes#43 2023-07-19 11:21:26 +02:00
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
c928e30e86
Merge pull request #40 from kiwix/Issue#39 2023-07-17 13:13:09 +02:00
MohitMali
eaa957fcf0 Added .so file while while initlizing JNIKiwix class which we have missed 2023-07-13 17:45:53 +05:30
Matthieu Gautier
2f951febf3
Merge pull request #38 from kiwix/Issue#37 11.0.0 2023-07-12 12:21:41 +02:00
MohitMali
c913b47678 Fix env variables naming 2023-07-12 14:53:38 +05:30
Matthieu Gautier
6797d0fb64
Merge pull request #36 from kiwix/execption_handling 2023-06-30 12:03:35 +02:00
Matthieu Gautier
ab7bbc1043 Try to trigger gc to call finalize methods. 2023-06-30 11:54:26 +02:00
Matthieu Gautier
33152da9b4 Exception is properly created by jni wrapper.
No need to do the check in java code.
2023-06-30 11:32:55 +02:00
Matthieu Gautier
36ad3c0331 Fix indentation. 2023-06-30 11:32:55 +02:00
Matthieu Gautier
9d6ef87b57 Introduce EntryNotFoundException. 2023-06-30 11:32:55 +02:00
Matthieu Gautier
827ab31c38 Better testing of errors. 2023-06-30 10:37:37 +02:00
Matthieu Gautier
40dd4ea853 Use the message of the exception instead of using our own. 2023-06-30 10:37:26 +02:00
Matthieu Gautier
c36a29abc4 Wrap all cpp code in a try/catch on create corresponding java exception. 2023-06-29 17:11:50 +02:00
Matthieu Gautier
420794ed48
Merge pull request #35 from kiwix/testing_coverage 2023-06-28 15:34:34 +02:00
Matthieu Gautier
a2e6381a84 Construct the library different ways. 2023-06-28 15:25:54 +02:00
Matthieu Gautier
ddbf5a08c5 Separate how we test Library from how we create it. 2023-06-28 15:25:54 +02:00
Matthieu Gautier
089a7d4ba5 Fix Book.getIllustrations 2023-06-28 15:25:54 +02:00
Matthieu Gautier
73039e4ef4 Add a lot of test on libkiwix. 2023-06-28 15:25:54 +02:00