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
Matthieu Gautier
09c0e0155e
Fix hasEntryByTitle
2023-06-28 15:25:54 +02:00
Matthieu Gautier
df631a4679
Fix Iterators.
2023-06-28 15:25:54 +02:00
Matthieu Gautier
16ee15021a
Add a full coverage of libzim part.
2023-06-28 15:25:54 +02:00
Matthieu Gautier
8c3a358486
Merge pull request #34 from kiwix/search_testing
2023-06-28 15:25:23 +02:00
Matthieu Gautier
15f42f0757
Make CodeFactor happy.
2023-06-28 15:17:15 +02:00
Matthieu Gautier
56fd73932e
Run CI on PR and push on main.
2023-06-28 15:15:12 +02:00
Matthieu Gautier
eaf9b3aac9
[test] Get the suggestion result from the first result.
2023-06-21 11:39:17 +02:00
Matthieu Gautier
1806febcf4
Fix iterator next
.
...
`next` must return the "next" value.
But here, the next value is the value of the current iterator.
2023-06-21 11:38:47 +02:00
Matthieu Gautier
7315228b06
Fix typos in search/suggestion getResults.
2023-06-21 11:38:00 +02:00
Matthieu Gautier
c7ac3a0878
Update test zim file.
...
zim files have been created using a recent version of zimwriterfs
(including the fix for openzim/zim-tools#355
2023-06-21 11:36:36 +02:00
Matthieu Gautier
61faa65343
Addapt create_test_zimfiles to last zimwriterfs.
2023-06-21 11:35:08 +02:00
Matthieu Gautier
fb83f1154b
Create the test zim file with a xapian FT index.
2023-06-21 11:34:29 +02:00