389 Commits

Author SHA1 Message Date
translatewiki.net
262e327f20 Localisation updates from https://translatewiki.net. 2025-02-13 14:41:40 +01:00
MohitMaliFtechiz
d974822481 Refactored the deprecated method used in our test cases. 2025-02-13 10:26:37 +01:00
MohitMaliFtechiz
af8ca7f620 Fixed: SearchFragmentTest for custom apps was failing. 2025-02-07 13:50:48 +05:30
MohitMaliFtechiz
83337ac5f1 Fixed: FindInPage functionality not working in Kiwix and custom apps. 2025-02-07 13:37:20 +05:30
MohitMaliFtechiz
67111ef848 Fixed: Searched item was not opening in custom apps. 2025-02-07 13:34:04 +05:30
MohitMaliFtechiz
2fb1896cea Fixed: Restore web view history in Kiwix app.
* Improved restoration of web view history after opening a searched article.
* Refactored `restoreViewStateOnValidJSON` and `restoreViewStateOnInvalidJSON` methods to save and retrieve web view history from the Room database.
* Added detailed comments to methods for better understanding, including guidance for developers to check subclass implementations before making modifications.
* Fixed the `static analysis` errors.
2025-02-07 13:29:01 +05:30
MohitMaliFtechiz
ee50417154 Implemented new approach to save and retrieve the webView history. 2025-02-07 13:28:33 +05:30
translatewiki.net
376c4d694d Localisation updates from https://translatewiki.net. 2025-02-01 12:10:30 +01:00
MohitMaliFtechiz
a9364d5881 Fixed: The SearchFragmentTestForCustomApp was failing sometimes. 2025-02-01 12:07:02 +01:00
MohitMaliFtechiz
5e05fe81d9 Added test cases for custom apps to cover this scenario and prevent future errors.
* Refactored some deprecated methods used in test cases.
2025-02-01 12:07:02 +01:00
MohitMaliFtechiz
1ed02e5ab0 Fixed: FIND_IN_PAGE feature only works with first tab page.
* The previously loaded article was not loading in custom apps when switching to another fragment and then returning to the reader screen. Instead, the home page of the ZIM file was loading. A fix has been implemented to resolve this issue.
2025-02-01 12:07:02 +01:00
MohitMaliFtechiz
08e004a819 Fixed: Application crash while adding application shortcuts.
* Using the `ShortcutManagerCompat` class to add dynamic shortcuts instead of directly using the `ShortcutManager` class, as it provides better handling for adding shortcuts.
* The issue occurred because these shortcuts were defined in the manifest, which treated them as immutable and unable to be updated. We removed them from the manifest and added them as dynamic shortcuts. On some devices (e.g., Honor devices), it takes time to remove these shortcuts from the static shortcut list after the user updates the app, causing them to be treated as immutable and unable to be updated. This led to the crash. To fix this, we updated our shortcut IDs so that when the previous static shortcuts are removed by the OS, it will not affect the creation of the new dynamic shortcuts.
* For previously added dynamic shortcuts on other devices, we implemented a removeOutdatedIdShortcuts() method, which removes the old dynamic shortcuts.
2025-01-19 17:06:09 +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
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
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
ArctikCircle
393d645918 #4083 fixed external link popup not showing for external links not for donation 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
40cea15065 #4083 fixed external link warning when user wants to make a donation for custom apps 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
cd73d6eb89 Moved free space to IO thread. 2024-12-10 17:15:47 +01:00
MohitMaliFtechiz
dc53139d84 Moved isFileExist method to IO thread. 2024-12-10 06:26:26 +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
translatewiki.net
7dae5307e0 Localisation updates from https://translatewiki.net. 2024-11-26 18:08:55 +01:00
MohitMaliFtechiz
05891eba03 Fixed: CustomDownloadFragment was not showing if there is no ZIM file available in custom apps. 2024-11-26 21:14:19 +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
903c1e142e Corrected all the messages related to ZIM, and improved the message of copy/move ZIM file dialog 2024-11-12 18:59:00 +05:30
MohitMaliFtechiz
d572af4fcd Removed the usesCleartextTraffic from our manifest 2024-11-07 10:44:43 +05:30
translatewiki.net
44fe71119b Localisation updates from https://translatewiki.net. 2024-10-31 13:51:32 +01:00
MohitMaliFtechiz
c7f8d99eb0 Fixed: Search was not working properly, it always showing the current loaded page when we click on any searched item. 2024-10-21 10:55:12 +05:30
MohitMaliFtechiz
78e265b942 Fixed an issue where bookmarks would not open for a ZIM file if another ZIM file was already opened in the reader. Instead of opening the bookmarked page, it always opens the home page of the current ZIM file. 2024-10-21 10:55:12 +05:30
MohitMaliFtechiz
a7f662fe45 Fixed: The search fragment test was failing in both the custom and app modules due to a socket exception during the ZIM file download. 2024-10-21 10:55:12 +05:30
MohitMaliFtechiz
c3d9bb74f7 Added the test cases for CustomFileValidator with edge cases. 2024-10-18 15:18:42 +02:00
MohitMaliFtechiz
e25f0f0aad Added unit test cases for testing this scenario to avoid this type of errors in future. 2024-10-18 15:18:42 +02:00
MohitMaliFtechiz
5f898be238 Fixed: Medical wikimedia (mini) keeps crashing.
* This issue occurred when we tried to access ZIM files from the application’s folder in the `zimFiles()` method. In this method, we add directories to a non-null list of files. However, when attempting to retrieve the list of files from the application directory, the SD card path was null due to the SD card being unmounted, which caused the application to crash.
* To fix this, we have improved our `zimFiles()` and `obbFiles()` methods to return only existing, non-null directories. This ensures proper handling of file system detection, so if a directory is unavailable or returns null, these methods handle it appropriately.
2024-10-18 15:18:42 +02:00
MohitMaliFtechiz
02d732f763 Corrected the comments. 2024-10-15 22:52:20 +02:00
MohitMaliFtechiz
4cb8776644 Re-enabled the WifiHotspot for app only and removed this for custom apps. 2024-10-15 22:52:20 +02:00
MohitMaliFtechiz
081fc6b207 Removed the restriction popup from start in PS variant.
* Since now we have a way to load the sideloaded zim files in application so this popup does not make sense. Therefore, we are removing this.
2024-10-01 12:00:47 +05:30
MohitMaliFtechiz
81109c4a49 Removing the temporary files of test cases from storage to free up storage. 2024-09-30 23:07:18 +05:30
MohitMaliFtechiz
8ce956cae3 Fixed: Opening new tab from app's shortcut in custom apps showing application is not installed.
* Since we are now creating dynamic shortcuts for the application, the static shortcut is no longer required, so we have removed the static shortcut code from our implementation.
2024-09-11 17:37:25 +05:30
MohitMaliFtechiz
9dee134cf0 Improved the test cases not to show the Donation popup between tests. 2024-09-09 13:02:18 +05:30
MohitMaliFtechiz
e55deb851f Added a donation popup to our application.
* The donation popup will be shown to the user every three months.
* If the user clicks the "Later" button, the popup will appear again after 3 days.
* The donation popup will only be shown when there is at least one book available in the library. If no ZIM file is present, it’s not ideal to ask for a donation, as the user has not yet used the application.
* The donation popup will only be shown for custom apps when the support_url is configured. If the support menu item is hidden in the sidebar (a feature we offer), the donation popup will not be displayed, as there is no support_url available for that custom app.
2024-09-09 12:29:06 +05:30
MohitMaliFtechiz
dbead86c57 Fixed SearchFragmentTestForCustomApp test case 2024-08-24 19:21:28 +05:30
MohitMaliFtechiz
6f2c3a45cf Fixed the test cases and some code 2024-08-24 17:18:48 +05:30
MohitMaliFtechiz
aed1dd1661 Fixed namespace issue in custom module. 2024-08-16 15:35:10 +00:00