8156 Commits

Author SHA1 Message Date
MohitMaliFtechiz
ad28e09392 Added fetch library in credits.html, and README.md files. 2024-12-19 11:43:51 +05:30
MohitMaliFtechiz
e3396901c6 Added Fetch library in our project for downloading the ZIM files. 2024-12-19 11:39:55 +05:30
Kelson
4b8fe6df69
Merge pull request #4130 from kiwix/Issue#4106
Fixed: Downloads were not automatically starting showing progress when reopening the app(If downloads paused due to any network error).
3.13.0
2024-12-18 11:48:04 +01:00
MohitMaliFtechiz
1f55d95386 Improved the resuming of downloads.
* Improved the resuming download logic.
2024-12-18 11:47:13 +01:00
MohitMaliFtechiz
9b8abe5ab2 Improved the resuming of downloads. 2024-12-18 11:47:13 +01:00
MohitMaliFtechiz
5050e4a92e Fixed: The fileName was showing in notification instead of book name. 2024-12-18 11:47:13 +01:00
MohitMaliFtechiz
86658fb58e Improved the query to DownloadManager.
* Removed the unnecessary query to download manager for previous downloads. Now we are only making request to active downloads which are in our download DAO.
2024-12-18 11:47:13 +01:00
MohitMaliFtechiz
092d060fb3 Enabled the DownloadManager's notification.
* Removed the foreground service from application since now download manager handles the notification so we don't need the foreground service.
* Removed the all code related to notification management.
2024-12-18 11:47:13 +01:00
MohitMaliFtechiz
6fcf519605 Fixed: detekt issue. 2024-12-18 11:47:13 +01:00
MohitMaliFtechiz
5a28af4d6e Fixed: The compilation errors in test case. 2024-12-18 11:47:13 +01:00
MohitMaliFtechiz
a17ccefd89 Fixed: The Resume button was functional while downloading ZIM files, even when they were paused due to no internet connection. We have added a check before pausing or resuming the download. If there is no internet connection, we now display the same "No Internet connection" snackbar message that is shown when attempting to download a book without an internet connection. 2024-12-18 11:47:13 +01:00
MohitMaliFtechiz
136dc3cef0 Improved the download functionality when the user pauses the download.
* After implementing the previous approach to track download progress during network fluctuations, a new issue occurred. Sometimes, when the user pauses a download, it resumes immediately without any user interaction. To address this, we introduced a new field to track the paused status, distinguishing whether the pause was initiated by the user or caused by the DownloadManager due to network fluctuations.
2024-12-18 11:47:13 +01:00
MohitMaliFtechiz
7c7dc2fcbb Improved handling of scenarios where download progress was interrupted due to network errors (e.g., network fluctuations). The application now correctly retrieves download progress from the DownloadManager and, if necessary, automatically resumes paused downloads without requiring user intervention.
* Downloads paused due to network errors like "Waiting to Retry" are now resumed automatically when the network becomes available.
* For downloads configured to only proceed on Wi-Fi, the application will resume progress when a Wi-Fi connection is re-established. Similarly, downloads queued for mobile networks will resume when the mobile network reconnects.
2024-12-18 11:47:13 +01:00
MohitMaliFtechiz
6330a78df2 Keeping the foreground service active when downloads are paused due to network errors (especially during network fluctuations), as the Download Manager will retry after some time once the connection is restored. 2024-12-18 11:47:13 +01:00
MohitMaliFtechiz
9444a3d74b Fixed: IllegalStateException while setting the toolbar in SearchFragment which i accidentally faced while navigating very frequently to other screens. 2024-12-18 11:47:13 +01:00
MohitMaliFtechiz
8df7bddff0 Fixed: Downloads were not automatically starting or showing progress when reopening the app.
* Previously, if a download was stopped due to a network error and the Download Manager was waiting to retry, we were not receiving updates from the Download Manager. As a result, the download progress was not being displayed when the app was reopened.
* Improved the service start mechanism: If the application is in the background, we now avoid starting the service because foreground services cannot be started when the application is not in the foreground.
2024-12-18 11:47:13 +01:00
Kelson
0db479a8d8
Merge pull request #4141 from kiwix/update_kiwix_version_to_3.13.0
Upgraded the kiwix version to `3.13.0`.
2024-12-18 11:46:52 +01:00
MohitMaliFtechiz
bd2e299548 Upgraded the kiwix version to .3.13.0. 2024-12-18 11:46:29 +01:00
Kelson
cdd03ec34b
Merge pull request #4142 from kiwix/update_changelog_file_for_3.13.0
Updated the CHANGELOG file to show changes made in milestone `.3.13.0`.
2024-12-18 11:46:13 +01:00
MohitMaliFtechiz
65ecea353e Added remaining changes in CHANGELOG file. 2024-12-18 15:24:26 +05:30
MohitMaliFtechiz
9abdb391e4 Updated the CHANGELOG file to show changes made in milestone .3.13.0. 2024-12-18 15:05:09 +05:30
Kelson
cae22c8a36
Merge pull request #4116 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2024-12-13 19:33:28 +01:00
translatewiki.net
91f9ca3624 Localisation updates from https://translatewiki.net. 2024-12-13 19:33:19 +01:00
Kelson
dd327f8315
Merge pull request #4134 from kiwix/Fixes#4132
Fixed: ZIM files are not showing on "Library" screen when updating the app from `3.11.1` to `3.12.0`.
2024-12-13 07:07:47 +01:00
MohitMaliFtechiz
5b868ddc73 Added a comment in the JSON file to clarify that entity and property IDs should remain unchanged unless the corresponding entity is modified. 2024-12-13 11:30:56 +05:30
MohitMaliFtechiz
968dc2824d Fixed: ZIM files are not showing on "Library" screen when updating the app to from 3.11.1 to 3.12.0. 2024-12-13 06:14:12 +01:00
Kelson
97e6b9bf6b
Merge pull request #4133 from viditpawar0/main
#4083 fixed external link warning when user wants to make a donation
2024-12-12 13:38:22 +01:00
ArctikCircle
393d645918 #4083 fixed external link popup not showing for external links not for donation 2024-12-12 16:53:41 +05:30
ArctikCircle
b9d662f3da #4083 fixed bug from last commit 2024-12-12 16:53:41 +05:30
ArctikCircle
89d67b6304 #4083 made similar changes in CoreReaderFragment.kt and CustomReaderFragment.kt 2024-12-12 16:53:41 +05:30
ArctikCircle
2ed91ddef2 #4083 made same changes in CoreReaderFragment.kt 2024-12-12 16:53:41 +05:30
ArctikCircle
5062841714 #4083 modified TopLevelDestinationTest.kt to accommodate this change 2024-12-12 16:53:41 +05:30
ArctikCircle
40cea15065 #4083 fixed external link warning when user wants to make a donation for custom apps 2024-12-12 16:53:41 +05:30
ArctikCircle
f6a4daa773 #4083 fixed external link warning when user wants to make a donation 2024-12-12 16:53:41 +05:30
Kelson
5990291892
Merge pull request #4135 from kiwix/remove_butterknife_from_readme_file
Removed the `ButterKnife` from the README file as we are not using this library in our project anymore.
2024-12-11 14:03:30 +01:00
MohitMaliFtechiz
bfd9e57c12 Removed the `ButterKnife ' from the README file as we are not using this library in our project anymore.
* Also removed this library from the `credits.html` of both the app and custom modules.
2024-12-11 18:03:34 +05:30
Kelson
9fc6e66ecc
Merge pull request #4103 from CalebKL/caleb/task/move-free-space-to-IO-thread
Move free space to io thread
2024-12-10 17:16:04 +01:00
MohitMaliFtechiz
ab1b7b19cd Removed unused code. 2024-12-10 17:15:47 +01:00
CalebK
0be9244578 Review fix. 2024-12-10 17:15:47 +01:00
CalebK
9b64e5d815 Fixed failing test cases. 2024-12-10 17:15:47 +01:00
MohitMaliFtechiz
cd73d6eb89 Moved free space to IO thread. 2024-12-10 17:15:47 +01:00
Kelson
3e197cfcd2
Merge pull request #4129 from kiwix/Fixes#4127
Fixed: Input dispatching timed out in `CoreReaderFragment.toggleBookmark`.
2024-12-10 17:15:23 +01:00
MohitMaliFtechiz
3f4fb9dcfc Fixed: Input dispatching timed out in CoreReaderFragment.toggleBookmark.
* Moved the `Book()` object creation to `lifeCycleScope` instead of running it on the main thread. Earlier, it was blocking the UI, especially with large ZIM files. Now, by using `lifeCycleScope`, it won't block the main thread.
* Improved the KiwixServer creation process. Server creation was previously happening on the main thread, which could cause the same issue we are facing with adding bookmarks. Because we are creating the same book object while creating the server, which is required for `server` creation.
* Updated the behavior of the "Starting server" dialog. Before, the dialog disappeared after validating the IP address, even though server creation was still in progress. Now, the server creation process is moved to the IO thread. For large ZIM files, server creation can take some time, so the dialog will only dismiss once the server is successfully created or if an error occurs. This ensures users are aware that server creation is in progress.
2024-12-10 12:40:39 +05:30
Kelson
696087e396
Merge pull request #4119 from kiwix/Fixes#4036
Moved `isFileExist` method to IO thread.
2024-12-10 06:26:49 +01:00
MohitMaliFtechiz
17d9d9e350 Fixed: SearchFragmentTest which was failing on API 33, and 34. 2024-12-10 06:26:26 +01:00
MohitMaliFtechiz
9f84a38e7d Improved the initializing of Bookmarks. 2024-12-10 06:26:26 +01:00
MohitMaliFtechiz
4c1c40a536 Improved the CopyMoveFileHandlerTest. 2024-12-10 06:26:26 +01:00
MohitMaliFtechiz
3e47cfa6ae Fixed: Books are not displayed on the LocalLibrary screen if a book is deleted from storage after being added to the DAO.
* Improved the test cases as well.
2024-12-10 06:26:26 +01:00
MohitMaliFtechiz
f78e1447a6 Improved the importing bookmark feature. 2024-12-10 06:26:26 +01:00
MohitMaliFtechiz
dc53139d84 Moved isFileExist method to IO thread. 2024-12-10 06:26:26 +01:00