8184 Commits

Author SHA1 Message Date
MohitMaliFtechiz
3423bbf671 Added support for Android 15. 2025-01-03 17:06:48 +01:00
Kelson
061249ad5f
Merge pull request #4158 from kiwix/Fixes#4157
Fixed: `Item.getSize` sometimes throwing exception and application crashses.
2025-01-03 14:08:02 +01:00
MohitMaliFtechiz
98f29b7757 Little improvement in comment of the extension function. 2025-01-03 18:29:46 +05:30
MohitMaliFtechiz
6e5d487d38 Fixed: A crash reported by Play Store for the org.kiwix.libzim.Item.getSize method.
* Created an extension function to safely retrieve the item's size and handle any potential errors within this function. This method was used in three places, and since we are already handling cases where this method returns null, the existing functionality remains unaffected.
2025-01-03 18:17:05 +05:30
Kelson
eddb78c355
Merge pull request #4057 from kiwix/disable_dependencies_block
Disabled the dependencies metadata from Singed APK for kiwix app.
2025-01-01 14:42:14 +01:00
Emmanuel Engelhart
7313a12005
Rephrase a bit the README 2025-01-01 14:41:25 +01:00
MohitMaliFtechiz
b2e42748b4 Updated the outdated content of the README file. As now we have the file picker functionality in our PS variant, and README was showing that there is no file picker in PS variant. 2025-01-01 14:08:40 +01:00
MohitMaliFtechiz
91a382a39a Added the information about permissions used in the application in the README file to show users why and where we are using these permissions. 2025-01-01 14:08:40 +01:00
MohitMaliFtechiz
ef5eb5bca8 Disabled the dependencies metadata for Singed APK.
* Added comments in build.gradle.kts file of app module to inform devs why this is required and why we have disable this for APKs.
2025-01-01 14:08:40 +01:00
Kelson
da8975a373
Merge pull request #4151 from kiwix/Fixes#4150
Added the hasFragileUserData tag in the manifest to display the "Keep app data" checkbox in the uninstall dialog.
2025-01-01 14:08:18 +01:00
MohitMaliFtechiz
64a1f3f3f5 Added the hasFragileUserData tag in the manifest to display the "Keep app data" checkbox in the uninstall dialog.
* When users attempt to uninstall the app, the "Keep app data" checkbox will appear in the uninstall dialog. By enabling it, the app's data will not be deleted upon uninstallation, allowing users to access the data again if they reinstall the app. Additionally, this is a good way to notify users that uninstalling the app can delete all app-related data, such as ZIM files.
2024-12-31 11:23:31 +05:30
Kelson
b04375bf92
Merge pull request #4149 from kiwix/Fixes#4148
Improved the scanning of ZIM files in the Play Store variant.
2024-12-30 17:01:37 +01:00
MohitMaliFtechiz
d94fb5cb3a Fixed: UI was displaying storage options prematurely while storage information was still being fetched in the background.
* To resolve this, storage options are initially hidden, and a progress bar with a title is shown to inform users that storage information is being fetched.
2024-12-30 16:02:13 +05:30
MohitMaliFtechiz
e309dde0c5 Improved the scanning of ZIM files in the Play Store variant.
* Excluded the scanning of other directories in the Play Store variant, as only app-specific directories can be accessed, making it unnecessary to include other directories in the scan.
2024-12-30 11:57:45 +05:30
Kelson
0969102778
Merge pull request #4143 from kiwix/Fixes#4140
Reintroduced the Fetch Library for Downloading ZIM files.
2024-12-25 22:10:27 +01:00
MohitMaliFtechiz
a48f90422a Fixed: The ZIM file was not opening when clicking on the download notification while the application was not running in the background. 2024-12-24 16:36:19 +05:30
MohitMaliFtechiz
d5943856cd Fixed: ObjectBoxToRoomMigratorTest. 2024-12-23 21:39:02 +05:30
MohitMaliFtechiz
8177287a08 Fixed: ImportBookmarkTest, and ObjectBoxToLibkiwixMigratorTest. 2024-12-23 21:06:10 +05:30
MohitMaliFtechiz
4a423642fb Fixed: lint errors. 2024-12-23 18:47:14 +05:30
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