MohitMaliFtechiz
2e63d70e6c
Fixed: Downloading starts very slowly on Android 14+.
...
* Upgraded Fetch to 3.4.1.
* Upgraded Kotlin kotlin-stdlib from JDK7 to JDK8.
* Upgraded Kotlin version to 2.0.0 to support the latest Fetch library.
* Upgraded Dagger to 2.53.1.
* Upgraded ObjectBox to 4.0.3.
* Notification now shows "Pause" and "Resume" buttons instead of "pause" and "resume".
* Fixed: Notification buttons were not working on Android 13 and above.
* Fixed: Downloading was not working in the background. Added a foreground service for Fetch so that downloading will continue in the background.
2024-12-23 18:46:32 +05:30
MohitMaliFtechiz
0f16730120
Fixed: The progress the not tracked when we resume the downloads.
2024-12-20 18:15:37 +05:30
MohitMaliFtechiz
b4ba2ed848
Fixed: Downloading was not working in the background.
...
* Introduced the DownloadMonitorService to keep alive the fetch instance so that the downloading works in the background as well as on app kill.
2024-12-20 17:56:32 +05:30
MohitMaliFtechiz
aed27803f7
Fixed: When downloading 2 files together, and if we click on both notifications to open the ZIM file then same ZIM file is opening for both notifications.
2024-12-20 17:25:05 +05:30
MohitMaliFtechiz
f15caad737
Removed the DownloadManager from ApplicationModule.
2024-12-19 21:58:35 +05:30
MohitMaliFtechiz
2ddc395267
Added OkHttpDownloader in Fetch.
2024-12-19 21:49:50 +05:30
MohitMaliFtechiz
89d7b87925
Fixed: Migration of DownloadRoomEntity.
2024-12-19 21:45:05 +05:30
MohitMaliFtechiz
9bf5ce9aab
Fixed: Migration of DownloadRoomEntity.
2024-12-19 21:24:39 +05:30
MohitMaliFtechiz
3ecb55928f
Reintroduced the Fetch Library for Downloading ZIM files.
...
* Removed the DownloadManager from our project.
* Refactored the code, and test cases to use the Fetch library.
2024-12-19 17:04:22 +05:30
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