3254 Commits

Author SHA1 Message Date
MohitMaliFtechiz
4fe022c6a2 Improved the message of Warning dialog to show user where they can verify the ZIM chunks are copied/moved properly. 2025-01-19 16:19:49 +01:00
MohitMaliFtechiz
4e16102bc4 Improved the copying/moving of ZIM chunks.
* Now all the ZIM chunks are copying/moving correctly.
* Improved the warning message to inform user what should they do after copying/moving all the ZIM chunks.
* Implement a feature to directly view the copied/moved ZIM chunks by clicking on the button in warning dialog.
2025-01-19 16:19:49 +01:00
MohitMaliFtechiz
be81ca5405 Showing a warning dialog when copying/moving the ZIM chunks in PS version. 2025-01-19 16:19:49 +01:00
MohitMaliFtechiz
8195194f48 Refactored the IntroFragmentTest to test this new screen. 2025-01-18 15:05:03 +05:30
MohitMaliFtechiz
75b63c069c Added a third intro screen to inform users about changing the storage location for downloading ZIM files. 2025-01-18 14:49:10 +05:30
translatewiki.net
6e09c1a353 Localisation updates from https://translatewiki.net. 2025-01-07 11:35:15 +05:30
MohitMaliFtechiz
7f6f0d4347 Fixed: Application crash caused by "Input dispatching timed out" while retrieving storageDeviceList information in the online library.
* Moved the storage device retrieval to the IO thread.
* Updated the StorageDeviceUtils.getWritableStorage method to a suspend function to ensure execution on the IO thread.
* Refactored CopyMoveFileHandler, OnlineLibraryFragment, KiwixPrefsFragment, and LocalLibraryFragment to adapt to this change.
* Optimized storage device retrieval by caching it in the main activity and reusing it across fragments to enhance performance, especially with large SD cards.
* Refactored the CopyMoveFileHandlerTest.
* Improved the showing of storage device list.
2025-01-06 21:39:34 +05:30
MohitMaliFtechiz
93f4a51013 Fixed the testOpeningFromFileManager was failing on Android 15. 2025-01-03 17:06:48 +01:00
MohitMaliFtechiz
3b24308c92 Fixed: ZimManageViewModelTest, NewRecentSearchDaoTest, and SearchViewModelTest, etc, which were failing. 2025-01-03 17:06:48 +01:00
MohitMaliFtechiz
77f67d4c8f Improved the edge to edge mode in landscape mode.
* It was showing the content behind the display cutout in landscape mode.
* Removed the unnecessary code from BaseFragment.
* Enhanced the applying edge to edge mode for lower devices(Before Android 10).
2025-01-03 17:06:48 +01:00
MohitMaliFtechiz
84807a1930 Fixed: ErrorActivity buttons overlapping in navigation buttons. 2025-01-03 17:06:48 +01:00
MohitMaliFtechiz
82ba9f3299 Fixed: The navigationView and rightDrawerView was overlapping on statusBar. 2025-01-03 17:06:48 +01:00
MohitMaliFtechiz
4157903682 Fixed: The recyclerview content was going in the statusBar. 2025-01-03 17:06:48 +01:00
MohitMaliFtechiz
ccfc896f02 Enabled EdgeToEdge mode in project to support latest windowInset API. 2025-01-03 17:06:48 +01:00
MohitMaliFtechiz
08c054586a Upgraded the dagger version to 2.53.1.
* Upgraded the ksp version to `2.0.0-1.0.24`.
* Upgraded the kotlin version to `2.0.0`.
* Upgraded the objectbox version to `4.0.3`.
* Removed the deprecated `runBlockingTest` from test cases which was giving compilation error because it is permanently removed in this version of kotlin.
* Replaced some deprecated methods with new methods that is deprecated in latest version of gradle.
* Fixed some string lint issues.
2025-01-03 17:06:48 +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
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
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
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
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
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
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
ArctikCircle
393d645918 #4083 fixed external link popup not showing for external links not for donation 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
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
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
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
MohitMaliFtechiz
17d9d9e350 Fixed: SearchFragmentTest which was failing on API 33, and 34. 2024-12-10 06:26:26 +01:00
MohitMaliFtechiz
4c1c40a536 Improved the CopyMoveFileHandlerTest. 2024-12-10 06:26:26 +01:00
MohitMaliFtechiz
dc53139d84 Moved isFileExist method to IO thread. 2024-12-10 06:26:26 +01:00
MohitMaliFtechiz
c410f20a0f Fixed: Input dispatching timed out at CopyMoveFileHandler.deleteSourceFile.
* Moved the delete logic to the IO thread to ensure the deletion operation does not block the main thread.
2024-12-09 15:40:49 +05:30
CalebK
2168f9dcd6 linting 2024-12-08 08:44:57 +01:00
CalebK
cd442c37d9 updated storage extension 2024-12-08 08:44:57 +01:00
CalebK
cff3901491 move total space to IO Thread 2024-12-08 08:44:57 +01:00
MohitMaliFtechiz
c136380945 Fixed: Impossible to download full Wikipedia in English.
* Updating the UI correctly when there is some error while creating the kiwixService(Specially when failed to connect with the server).
* Minor improvement in showing right drawer.
2024-12-01 16:21:51 +05:30
MohitMaliFtechiz
2912bc92a2 Fixed: Virtual keyboard resetting the search in the library.
* The issue was with android 14 device, it is working fine in below devices.
* Improved the back press handling in CoreMainActivity using the latest onBackPressedDispatcher API, ensuring proper functionality on Android 14 and above.
* Enhanced the back press behavior in OnlineLibraryFragment while searching for ZIM files, so the SearchView does not close immediately when the user presses the back button to simply dismiss the keyboard.
2024-11-28 23:02:43 +05:30
MohitMaliFtechiz
49fb4ca5d4 Minor improvement in downloading functionality.
* When the internet connection is turned off and then turned on back, the download progress is now properly tracked while the application is in the foreground. Tracking progress is working fine with this scenario when the application is closed.
2024-11-27 15:28:07 +05:30
translatewiki.net
7dae5307e0 Localisation updates from https://translatewiki.net. 2024-11-26 18:08:55 +01:00
MohitMaliFtechiz
da9528b8ff Fixed: the download notification controls was not working.
* Refactored/cleanup code.
* Added foreground permission in core module so that it can be used in both modules.
2024-11-26 19:43:16 +05:30
MohitMaliFtechiz
1f62caebbe Fixed: Download notification was disappearing when the application is in background. 2024-11-25 20:48:27 +05:30
MohitMaliFtechiz
c86c156345 Fixed: Sometimes application crashes due to a native crash when we frequently load the ZIM files in the reader. 2024-11-22 18:48:49 +05:30
translatewiki.net
54201197de
Localisation updates from https://translatewiki.net. 2024-11-21 13:06:28 +01:00
MohitMaliFtechiz
56dafa4b6b Improved the Note lable in the OverFlowMenu for more clarity 2024-11-20 11:20:16 +01:00
MohitMaliFtechiz
85dfa732b4 Fixed the static analysis lint failure 2024-11-19 16:41:59 +05:30
MohitMaliFtechiz
2d485842aa Dynamically adjusted the width of showCaseView according to device width so that it looks nice in all screen sizes 2024-11-19 16:39:05 +05:30