8011 Commits

Author SHA1 Message Date
MohitMaliFtechiz
9fadeff0cc Testing file opening from browser, file manager, and via file piker on tablet in CI. 2024-09-30 23:07:18 +05:30
MohitMaliFtechiz
968cbfa19a Added test cases to test opening files from browsers. 2024-09-30 23:07:18 +05:30
MohitMaliFtechiz
c6ff46a669 Added a test case to verify file opening from the file manager.
* Improved the test case to remove the file from the emulator to free up device storage, as we do not have access to this file after running the test case, and it will remain in storage.
2024-09-30 23:07:18 +05:30
MohitMaliFtechiz
c3e9426bfb Added the test cases to open the zim file via file picker. 2024-09-30 23:07:18 +05:30
MohitMaliFtechiz
6a8013177f Improved the opening of ZIM files via deep linking for the file scheme. 2024-09-30 23:07:18 +05:30
MohitMaliFtechiz
e68bb97fcb Fixed testMovingZimFileIntoPublicDirectory. 2024-09-30 23:07:18 +05:30
MohitMaliFtechiz
0d4a8a961b Improved the CopyMoveFileHandlerTest UI test. 2024-09-30 23:07:18 +05:30
MohitMaliFtechiz
a968e380e8 Improved the CopyMoveFileHandlerTest. 2024-09-30 23:07:18 +05:30
MohitMaliFtechiz
c570fc918a Fixed: ZIM file not moving/Copying on Android 14 tablet.
* When opening the ZIM file via file picker or deep linking, we were obtaining the file path using the getZimFileFromUri() method to perform the renaming for the move functionality. However, on Android 14 tablets, the URI was not resolved correctly by this method, leading to a "ZIM file not found" error.
* To fix this issue, we removed the dependency on the `getZimFileFromUri()` method in the Play Store variant, as future Android versions may handle URIs differently. We refactored our code so that the copy/move functionality works independently of this method and now works directly with Android's provided URI.
2024-09-30 23:07:18 +05:30
MohitMaliFtechiz
f0d928e9d2 Fixed: Opening the zim file with kiwix fails to open(not showing the copy/move dialog).
* The issue occurred because the logic for opening ZIM files was inside the KiwixReaderFragment, and if the user was on any other screen while using the application, this code was not triggered. As a result, the copy/move dialog was not shown. To resolve this, we moved the functionality to the KiwixMainActivity.
2024-09-30 23:07:18 +05:30
Kelson
a9599787bc
Merge pull request #3995 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2024-09-30 16:07:09 +00:00
translatewiki.net
fa9f76d017
Localisation updates from https://translatewiki.net. 2024-09-30 14:06:57 +02:00
Kelson
7e6e82684d
Merge pull request #3999 from kiwix/Fixes#3997
Fixed: Opening with Kiwix a ZIM file (just after download) from Firefox fails.
2024-09-21 07:04:51 +00:00
MohitMaliFtechiz
7078aad77a We improved the DeppLinksTest to test this functionality, so that we can avoid this type of error in the future. 2024-09-20 22:22:35 +05:30
MohitMaliFtechiz
4e86558b0e Fixed: Opening with Kiwix a ZIM file (just after download) from Firefox fails.
* Fixed an issue where the ZIM file would not load when opened directly from the file manager.
* Fixed the issue with opening a ZIM file from the browser's download screen.
2024-09-20 21:45:17 +05:30
Kelson
007e12c349
Merge pull request #3994 from kiwix/Fixes#3991
Fixed: Online library cannot be retrieved in the Play Store variant.
2024-09-19 09:43:50 +00:00
MohitMaliFtechiz
b3cff85921 Refactored the UI test cases according to this new change. 2024-09-19 11:32:33 +05:30
MohitMaliFtechiz
386a93699b Hiding the refresh layout when no internet connection is available.
* Hiding the "No internet connection" text when user turn on the internet and previous this text is showing.
2024-09-19 11:11:58 +05:30
MohitMaliFtechiz
61661a5aa0 Fixed: Showing the progress update when no wifi is available. 2024-09-18 22:02:20 +05:30
MohitMaliFtechiz
098deb10f1 Increase the call timeout from 1 minute to 3 minutes. Since on slow bandwidth it cancel the previous ongoing request after 1 minute and retry again which increased the library load time. 2024-09-18 21:51:15 +05:30
MohitMaliFtechiz
93fad4da97 Showing the progress below the online library downloading status text. 2024-09-18 21:16:33 +05:30
MohitMaliFtechiz
476733bf91 Fixed the ZimManageViewModelTest. 2024-09-18 19:07:53 +05:30
MohitMaliFtechiz
318ae98d31 Getting the content-length on the background thread to free the UI tread. 2024-09-18 15:53:11 +05:30
MohitMaliFtechiz
10837aef76 Refactored our code to properly show the downloading online library progress.
* Added a head request to get the library length and showing the progress on behalf of that length.
* Improved the library loading process: previously, fetching the online library involved making two requests, which not only took more time to get a response from the server but also used twice the bandwidth. To address this, we have refactored our code to ensure that only one request is made at a time.
* Upgraded the retrofit, and interceptor dependencies to latest version.
2024-09-18 15:24:08 +05:30
MohitMaliFtechiz
8ebeb4e3e9 Improved the fetching and downloading the online library on low bandwidth.
* Since the online library file is 19MB large and on slow bandwidth devices it takes more time to fetch that file. Our current read timeout is 60 seconds which is not enough for reading this file on slow bandwidth devices. So we have increased it to 180 seconds.
2024-09-17 15:04:16 +05:30
MohitMaliFtechiz
c5d0d8aeea Improved the design of showing the downloading progress of online library.
* Also, disabled the refresh layout so avoid unnecessary calls when a request is already in progress.
2024-09-17 15:00:02 +05:30
MohitMaliFtechiz
90f711b244 Updated the detekt file to suppress the lint on ZimManageViewModel. 2024-09-16 18:50:25 +05:30
MohitMaliFtechiz
222e86840a Added UI to show the progress on fetching online content.
* Refactored the viewModel code to show the downloading updates, e.g. content is fetching, downloading the online content, etc.
2024-09-16 18:48:34 +05:30
MohitMaliFtechiz
3ab0dcd8b9 Fixed: AndroidXTracer: java.lang.NoSuchMethodError: No static method forceEnableAppTracing error in UI test cases. 2024-09-13 18:42:37 +05:30
MohitMaliFtechiz
8770efd03d Improved the DownloadTest to handle cases where pausing the download may show a complete pause message, such as 'Pause: Waiting for Retry,' which previously caused the test case to fail. The test case has been updated to accommodate this behavior. 2024-09-13 17:48:31 +05:30
MohitMaliFtechiz
0278fa8a0c Added test cases to the CI for testing the minified version of the application to prevent this type of error from happening in the future. 2024-09-13 16:59:01 +05:30
MohitMaliFtechiz
fe2f4a376d Fixed: Online library cannot be retrieved in the Play Store variant.
* The issue arose after upgrading the Gradle version of our project (which introduced Android 14). The new Gradle version includes an updated minify tool that excludes SimpleXML attributes from the code. As a result, this error occurred. To resolve this, we added specific rules to the ProGuard file to ensure these attributes are retained in the release variant.
2024-09-12 16:22:12 +05:30
Kelson
e3844e5e28
Merge pull request #3992 from kiwix/Fixes#3988
Fixed: Opening new tab from app's shortcut in custom apps showing application is not installed.
2024-09-11 15:36:51 +02:00
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
Kelson
c723537470
Merge pull request #3983 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2024-09-10 15:03:16 +00:00
MohitMaliFtechiz
a065286092 Fixed lint issue since "copy" was conflicting with the androidx.preference:preference:1.2.0 internal string resource. 2024-09-10 15:33:32 +05:30
translatewiki.net
39bb699e67 Localisation updates from https://translatewiki.net. 2024-09-10 08:32:16 +00:00
Kelson
4fb63f0b1f
Merge pull request #3986 from kiwix/Fixes#1999
Added (unit test/UI test) cases for the `DarkModeViewPainter`.
2024-09-09 17:30:05 +00:00
MohitMaliFtechiz
be33a59616 Fixed the CI showing duplicate preference key error. 2024-09-09 18:33:51 +05:30
MohitMaliFtechiz
8893968476 Sometimes CI stuck on DownloadTest when the test case waits for data to load, but the "Swipe Down for Library" error text shows on the screen because of that CI takes a long time to fail, so to improve this scenario we have refactored our test case if this text is shown on the screen then it tries to refresh the online content and test case will pass. 2024-09-09 18:33:51 +05:30
MohitMaliFtechiz
94d36835d5 Added UI test cases to test whether the DarkModeViewPainter works correctly or not. 2024-09-09 18:33:51 +05:30
MohitMaliFtechiz
88d0e44f00 Added unit test cases for the DarkModeConfig class which is used in the DarkModeViewPainter. 2024-09-09 18:33:51 +05:30
MohitMaliFtechiz
d0f48b9929 Added unit test cases for DarkModeViewPainter. 2024-09-09 18:33:51 +05:30
Kelson
f2534d3fb9
Merge pull request #3984 from kiwix/Fixes#3736
Added a donation popup to our application.
2024-09-09 12:49:03 +00:00
MohitMaliFtechiz
9dee134cf0 Improved the test cases not to show the Donation popup between tests. 2024-09-09 13:02:18 +05:30
MohitMaliFtechiz
8f2372b7f7 Added test cases for testing this functionality. 2024-09-09 12:29:06 +05:30
MohitMaliFtechiz
c1de637118 Created a custom svg icon for showing in donation popup. 2024-09-09 12:29:06 +05:30
MohitMaliFtechiz
586bc56f9f Correctly added the bottom margin to donation popup when the bottomAppBar showing in the reader. 2024-09-09 12:29:06 +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
Kelson
681e3a04db
Merge pull request #3985 from amire80/patch-2
Fix a spelling mistake in an English message
2024-09-06 16:35:17 +00:00