Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not read the library in readOnly mode. #72

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

mgautierfr
Copy link
Member

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

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
Copy link

codecov bot commented Nov 9, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f9dc43e) 92.38% compared to head (d109cc5) 92.38%.

Additional details and impacted files
@@            Coverage Diff            @@
##               main      #72   +/-   ##
=========================================
  Coverage     92.38%   92.38%           
  Complexity      213      213           
=========================================
  Files            44       44           
  Lines           289      289           
  Branches          3        3           
=========================================
  Hits            267      267           
  Misses           19       19           
  Partials          3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kelson42
Copy link
Contributor

kelson42 commented Nov 9, 2023

@mgautierfr @MohitMaliFtechiz Who fixes this to release 1.0.1?

@mgautierfr mgautierfr changed the title Do not the library in readOnly mode. Do not read the library in readOnly mode. Nov 9, 2023
@mgautierfr
Copy link
Member Author

Who fixes this to release 1.0.1?

I haven't made it the last time. So probably @MohitMaliFtechiz.

But any changes (changelog, version numbering here?,...) related to the release must be made in another PR.


BTW, we have this workflow which is triggered only when we create a release on github.
But we don't have a 1.0.0 release. @MohitMaliFtechiz, how the previous release has been published ?

@MohitMaliFtechiz
Copy link
Collaborator

I haven't made it the last time. So probably @MohitMaliFtechiz.

@mgautierfr Last time @kelson42 published it on maven via workflow see here https://github.com/kiwix/java-libkiwix/actions/workflows/publish.yml

BTW, we have this workflow which is triggered only when we create a release on github.

Yes, you are right.

But we don't have a 1.0.0 release. @MohitMaliFtechiz, how the previous release has been published ?

We have release 1.0.0 published by @kelson42 see https://github.com/kiwix/java-libkiwix/releases

But any changes (changelog, version numbering here?,...) related to the release must be made in another PR.

Yes, we will make this on another PR, but before that, I am testing this PR to see if the issue is fixed or not. Allow me some time and i will test and review this PR.

@mgautierfr
Copy link
Member Author

We have release 1.0.0 published by @kelson42 see kiwix/java-libkiwix/releases

Ho. I haven't found the tab on github UI so I assume there was no release. Sorry about the noise.

@MohitMaliFtechiz
Copy link
Collaborator

@mgautierfr The bug is resolved now 🎉 🎉 , now it is properly saving the data everytime.

@kelson42 kelson42 merged commit 853233a into main Nov 9, 2023
4 checks passed
@kelson42 kelson42 deleted the load_library_not_readonly branch November 9, 2023 17:00
@kelson42 kelson42 added this to the 1.0.1 milestone Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants