7880 Commits

Author SHA1 Message Date
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
Amir E. Aharoni
95f9117979
Fix a spelling mistake in an English message 2024-09-06 11:21:45 -04:00
Kelson
32d36d75cc
Merge pull request #3979 from kiwix/Fixes#3941
Added the file picker in play store variant for move or copy the zim files in application's public directory
2024-09-05 04:41:29 +00:00
MohitMaliFtechiz
e5d7b2a17e Added unit and instrumentation test cases for CopyMoveFileHandler to properly test the all scenario with edge cases. 2024-09-05 04:41:04 +00:00
MohitMaliFtechiz
d5013674ab Added test cases for CopyMoveFileHandler. 2024-09-05 04:41:04 +00:00
MohitMaliFtechiz
1d0c0422fe Added copy, move, cancel options in permission dialog.
* Using the error message from string file instead of a hardcoded string.
2024-09-05 04:41:04 +00:00
MohitMaliFtechiz
bba2b1d95f Fixed some memory leaks in SearchFragment, LanguageFragment, and KiwixPrefsFragment. 2024-09-05 04:41:04 +00:00
MohitMaliFtechiz
e8856c1cbe Implemented move functionality with fallbacks: If the DocumentsContract API fails to move the document, a fallback method will copy the source file and delete the original file, ensuring a smooth user experience.
* Improved file copying performance: To enhance copy speed, we now use FileChannel for copying files, which is faster than the standard InputStream operation.
2024-09-05 04:41:04 +00:00
MohitMaliFtechiz
6a8c34b565 Improved the move functionality and copy functionality. 2024-09-05 04:41:04 +00:00
MohitMaliFtechiz
1e2eeabbf0 Added the functionality to move zim files from another storage. 2024-09-05 04:41:04 +00:00
MohitMaliFtechiz
657783e09a Fixed the memory leak on Android 13 and Android 14. 2024-09-05 04:41:04 +00:00
MohitMaliFtechiz
c88428dbbe Properly handling the fileSystemState when copy/move the files. 2024-09-05 04:41:04 +00:00
MohitMaliFtechiz
1ec4df4753 Created a CopyMoveFileHandler for handing the copy/move of files.
* Improved the showing of progressBar to inform the user about the copy/moving progress.
2024-09-05 04:41:04 +00:00
MohitMaliFtechiz
a2b1f5093e Added the file picker in play store variant for move or copy the zim files in application's public directory 2024-09-05 04:41:04 +00:00
Kelson
992ebc9944
Merge pull request #3981 from kiwix/Fixes#3754
Fixed: File drawer was showing on Tabs screen.
2024-09-05 04:40:20 +00:00
MohitMaliFtechiz
e5a6b97510 Fixed: File drawer was showing on Tabs screen.
* Disabled the right drawer when the tabs screen is opened, the drawer will be enable when the tabs screen will close.
2024-09-05 04:40:07 +00:00
Kelson
9ba28ecd90
Merge pull request #3982 from kiwix/Fixes#3978
Re-enabled the emulator caching in CI.
2024-09-05 04:39:38 +00:00
MohitMaliFtechiz
16cbe2a1e0 Try creating the codecov report on Api level 30 since some test cases are running on this api level like testing the WifiHotspot, ShowingPlayStoreRestriction in HelpFragment, etc. 2024-09-04 16:55:12 +05:30
MohitMaliFtechiz
95ade4b28c Configured the emulator to use 3GB of RAM and a 1024MB SD card instead of 4GB of RAM and a 2048MB SD card to reduce resource usage on CI.
* Since the emulator works well with 3GB of RAM and a 1024MB SD card on CI for running test cases for custom apps, it is better to use this configuration for the app's test cases as well.
2024-09-04 16:19:44 +05:30
MohitMaliFtechiz
9d3c275ca8 Re-enabled the emulator caching in CI. 2024-09-04 15:06:23 +05:30
Kelson
829ec5301c
Merge pull request #3980 from kiwix/use-libkiwix-2.2.2
Use java-libkiwix 2.2.2
2024-08-29 16:33:57 +00:00
Emmanuel Engelhart
4b81c65e4a Use java-libkiwix 2.2.2 2024-08-29 15:52:52 +00:00
Kelson
f6fc49f8d2
Merge pull request #3962 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2024-08-29 15:38:46 +00:00
translatewiki.net
f5c350f515
Localisation updates from https://translatewiki.net. 2024-08-29 14:05:54 +02:00
Kelson
c3e17e5988
Merge pull request #3624 from kiwix/Issue#3536
Fixed: Create only one reader and use it everywhere.
2024-08-26 06:30:04 +02:00
MohitMaliFtechiz
2d0bc4855d * Fixed: Deleting files was not working in the local library.
* Removed the unnecessary comments.
2024-08-25 19:31:21 +05:30
MohitMaliFtechiz
1cdd683e79 Improved the books() method to properly return the new books along with the old saved books. 2024-08-25 16:35:27 +05:30
MohitMaliFtechiz
4e3f66243b Fixed: Previously saved books are not showing on the LocalLibraryScreen. 2024-08-25 16:24:22 +05:30
MohitMaliFtechiz
a86de10c19 Improved the saving of the zim file in the local library when we open the zim file via deep linking or via file picker. We have moved this functionality to the background thread so that it will not block the UI thread and provide a smooth user experience. 2024-08-25 15:07:11 +05:30
MohitMaliFtechiz
561ff4090c Fixed: Zim File was not opening if we opened it through the DeepLinking. 2024-08-25 13:42:22 +05:30
MohitMaliFtechiz
5e8abe1153 Fixed zim file is not showing when we open it from the notes screen. 2024-08-25 13:21:39 +05:30
MohitMaliFtechiz
769aaeea3d Fixed ObjectBoxToLibkiwixMigratorTest was failing. 2024-08-25 13:07:29 +05:30