8300 Commits

Author SHA1 Message Date
MohitMaliFtechiz
583038154b Fixing pause/resume functionlaity is not working on android 10 and above 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
b2d2c5c242 Fixed retry download is not working in some conditions 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
4fb53ed5df Fixed downloading progress is not showing after starting the download. 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
71db5fc7d1 Improved download monitoring efficiency by disposing observable when no downloads are ongoing.
* This change ensures that the observable is only active when necessary, reducing unnecessary resource usage and avoiding redundant requests to the DownloadManager.
2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
d398c47c3f Fixed: Notification "pause" text and notification icons.
* Improved variable naming and placed them in appropriate locations.
2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
9a2acea046 Implemented the retry download functionality.
* Removed unnecessary code.
2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
f640dd1c19 Improved the file opening while clicking the download notification, because two zim files can have the same title 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
6a16745920 Fixed: zim file was not opening when clicking on the notification after the zim file downloaded 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
a859da3192 Improved the moving books functionality after download.
* Improved the updating status functionality.
* Cancelling the notification if any running and download is completed.
* Fixed TestModelFunctions build failure.
2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
fa4f289511 Fixed remaining detekt and lint issues 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
9b091301bd Fixed some detekt and lint issues 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
3039232b2c Moving the downloads to library fragment after downloading 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
fdeb6bcbe6 Fixed: download is always cancelling when we click on the pause button in notification 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
28472c0988 Added RECEIVER_NOT_EXPORTED to all broadcasts to make the application compatiable with Android 14. Also, Fixed the clicking is not working in notification 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
8405c7c6d7 Improved the cancelling of downloads 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
6eab724e3d Calcelling notification when user canceled the downloads 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
30cf3c69ad Properly showing the notification for different downloads. Corrected the IN_PROGRESS showing in notification when downloading is in_progress state 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
d6a8ee9e24 Removed the default notification of download manager 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
ce275254b9 Added custom notification for showing the downloading progress with pause/resume functionality 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
ef2f50539b Not showing the eta time when download is paused 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
d394bb6078 Improved the eta time calculation. 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
7e79f288a5 Implemented the pause/resume functionality for downloads. 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
d67262224b Showing progress, eta time on download screen. 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
cebbbabbd8 Introduced Room database for managing the downloads. * Refactored the code to use the room database instead of objectbox database with fetch. 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
2616fa8565 Updating the current download item on OnlineLibraryScreen if a download completes or cancelled 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
5104c49f8e Replacing the fetch library with Android's DownloadManager. 2024-08-12 17:14:18 +05:30
Kelson
eff8321f77
Merge pull request #3940 from kiwix/Fixes#3939
Fixed: Download zim files in `Android/media/org.kiwix/kiwixmobile/` folder instead of internal app-specific directory.
2024-08-12 13:32:30 +02:00
MohitMaliFtechiz
4cc76fbd89 Added migration code to move from the internal app directory to the public app directory upon application update. This ensures that after updating, users will automatically start using the public directory for downloads without needing to configure storage settings. 2024-08-12 15:35:49 +05:30
MohitMaliFtechiz
7008e7b90b Created the public app-specific directory for existing users if they do not configure the storage, so that they can easily copy the zim files in this new public app directory. 2024-08-08 18:01:58 +05:30
MohitMaliFtechiz
706c47ae6a Updated the README file to show all possible paths which are supported by the play store version for scanning/reading zim files. 2024-08-08 17:00:06 +05:30
MohitMaliFtechiz
34618aec05 Fixed: Download zim files in Android/media/org.kiwix/kiwixmobile/ folder instead of internal app-specific directory.
* Now all the downloading files will store in this public app-specific directory.
* Refactored the code to show this new location in storageSelection dialog for both internal and external storage.
* Updated the `README.md` file to educate user that how they can read already downloaded zim files in PS version.
* Refactored the test cases according to this change.
2024-08-08 16:57:31 +05:30
Kelson
a6de67e6de
Merge pull request #3972 from kiwix/Fixes#3970
Removed the dialog box to select the storage in settings.
2024-08-08 13:08:23 +02:00
MohitMaliFtechiz
65297a79d2 Enhanced RTL Support for Storage Path TextView.
* Ensured that the storage path and title are displayed correctly in both LTR and RTL layouts.
2024-08-08 11:08:02 +05:30
MohitMaliFtechiz
9e2ce9370f Refactored the Setting Test case according to this new UI. 2024-08-07 19:08:42 +05:30
MohitMaliFtechiz
72fe21ba4c Changed the visual representation of storage selection.
* Now the storage path will show for non-selected storage as well.
* Improved the KiwixSettingsFragmentTest.
2024-08-07 17:32:37 +05:30
MohitMaliFtechiz
70245d3621 Fixed: Sometimes internal storage is not found in KiwixSettngsFragmentTest 2024-08-07 13:04:02 +05:30
MohitMaliFtechiz
cbd35c036d Fixed ZimHostFragmentTest, and DeepLinksTest. 2024-08-07 12:06:36 +05:30
MohitMaliFtechiz
1f0cdbeaf5 Fixed KiwixSettingsFragmentTest was failing. 2024-08-06 21:52:52 +05:30
MohitMaliFtechiz
960189e68c Removed the dialog box to select the storage in settings.
* Now, the storage selection (internal/external) is directly visible in the settings, allowing users to select storage without using a dialog box.
* The total and available space for each storage option is displayed.
* Additionally, the selected storage path is shown in the settings, so users know where the downloaded files will be saved.
2024-08-06 21:52:44 +05:30
Kelson
5a588004f7
Merge pull request #3971 from kiwix/Fixes#3963
Changed the criteria for requesting a Google Play Store evaluation.
2024-08-05 18:59:40 +00:00
MohitMaliFtechiz
6cbdf0a2af Changed the criteria for requesting a Google Play Store evaluation.
* Now, it asks for an evaluation when the user has opened the application at least 20 times, has been using the application for the past two weeks, and has one or more ZIM files in their library.
2024-08-05 23:12:25 +05:30
Kelson
5c1c359976
Merge pull request #3968 from kiwix/Fixes#3966
Fixed: Unable to render homepage of "Klimawandel".
2024-08-01 07:32:51 +02:00
MohitMaliFtechiz
dc7fec3e13 Using wikipedia_fr_climate_change_mini.zim file for testing.
* Improved the test case for checking the full page is loaded or not.
2024-08-01 08:54:44 +05:30
MohitMaliFtechiz
349260b955 Added test case for testing the rendering of content in webView. 2024-08-01 08:54:35 +05:30
MohitMaliFtechiz
a0331da5d7 Fixed: Unable to render homepage of "Klimawandel".
* The issue was that we were writing the content on the IO thread using a coroutine, which was called from a `suspend` function. The function was suspended while loading the content, causing the `PipedOutputStream` to be flushed prematurely and resulting in the failure to render the remaining data.
* To fix this, we removed the content rendering from the coroutine and are now using `Completable` to render the content on the IO thread.
2024-08-01 08:54:23 +05:30
Kelson
a23dabd82d
Merge pull request #3917 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2024-07-29 12:15:26 +02:00
translatewiki.net
c840576813 Localisation updates from https://translatewiki.net. 2024-07-29 12:21:12 +05:30
Kelson
71d8a18e1b
Merge pull request #3953 from CalebKL/task/download-fragment-crash-fix
Task/download fragment crash fix
2024-07-26 12:45:37 +02:00
MohitMaliFtechiz
f29634edc7 Setup uncaught exception error handling.
* Updated `setUpUncaughtErrorHandlerForOnlineLibrary` to handle `RxJavaPlugin` errors.
2024-07-26 13:15:45 +05:30
MohitMaliFtechiz
0c0ddd3657 Added CoreComponentFactory to multidex-instrumentation-config.pro, and proGruard file 2024-07-26 13:08:15 +05:30