-
-
Notifications
You must be signed in to change notification settings - Fork 447
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
Use libkiwix to store bookmarks #3109
Comments
After discussion with @mgautierfr, it seems clear to me we should not use Room for the bookmarks. Read kiwix/libkiwix#840. The libkiwix provides already all the primitives. |
@kelson42 Sounds good to me! |
@kelson42, Now we have the latest libkiwix which has the functionality to store the bookmarks in In #3474 we have implemented this functionality. we have successfully implemented the functionality of bookmarks with libkiwix (Save, retrieve, delete) while saving or deleting the bookmarks we are updating the corresponding files with the updated data to avoid any data loss. Please let me know your thought on this. |
@MohitMaliFtechiz Testing reading/writting bookmarks should be tested in java-libkiwix. It does not make sense to test here because there is no additional logic. Here, you need to test the bookmark related UI and migration. |
@MohitMaliFtechiz Testing reading/writting bookmarks should be tests in java-libkiwix. It does not make sense to test here because there is no additional logic. Here, you need to test the bookmark related UI and migration. Please confirm you don't write anything to fs or create custom bookmark related structures/objects. |
@kelson42 We are saving bookmarks and library in the file system because libkiwix stores bookmark and books in So we are using write bookmarks in a file and write a library to file to deal with filesystem , we are not using any native android filesystem methods.
If this is the approach then we just need to create an instrumentation test case for testing the bookmarks-related UI. The migration test case is already written. |
@MohitMaliFtechiz I meant, you don't write to the fs outside the libkiwix |
Yes nothing outside the libkiwix. |
Last comment seems to me to clarify the situation appropriatly #3109 (comment). PR shozld be completed, tested and reviewed. |
This is a subtask for #3102 . Write migration test and new database test for Bookmarks.
The text was updated successfully, but these errors were encountered: