8300 Commits

Author SHA1 Message Date
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
MohitMaliFtechiz
3d976d9304 Fixed all unit coverage failures. 2024-08-24 19:44:49 +05:30
MohitMaliFtechiz
ac36538e1d Fixed static analysis failure 2024-08-24 19:23:18 +05:30
MohitMaliFtechiz
dbead86c57 Fixed SearchFragmentTestForCustomApp test case 2024-08-24 19:21:28 +05:30
MohitMaliFtechiz
3ffe4cc6a7 Fixed instrumentation test case compilation errors 2024-08-24 19:18:29 +05:30
MohitMaliFtechiz
b667553a8f Fixed Migration is not properly running for HistoryRoomEntity 2024-08-24 18:58:52 +05:30
MohitMaliFtechiz
31991bdf1a Fixed adding books to library while importing the bookmarks. Also improved the convertor of room and objectbox 2024-08-24 17:39:16 +05:30
MohitMaliFtechiz
58cbd5dbbe Fixed some compliation errors 2024-08-24 17:21:13 +05:30
MohitMaliFtechiz
6f2c3a45cf Fixed the test cases and some code 2024-08-24 17:18:48 +05:30
MohitMaliFtechiz
811e37bf70 Refactored the whole code to use ZimReaderSource 2024-08-24 16:03:44 +05:30
MohitMaliFtechiz
da51cfc02d Refactored the entities, and dao to use the ZimReaderSource instead of zimFilePath. Also, Refactored the bookmark saving functionality with this change 2024-08-24 14:22:24 +05:30
MohitMaliFtechiz
8fffb1018e Refctored the ZimFileReader and ZimReaderContainer to use ZimReaderSource instead of directly using the file and fileDescriptor 2024-08-24 12:03:17 +05:30
MohitMaliFtechiz
571d940894 Created ZimReaderSource for creating the zimFileReader object at one place 2024-08-24 11:44:12 +05:30
Kelson
4a9be43785
Merge pull request #3976 from kiwix/Add_Android_14
Added support for Android 14
2024-08-16 19:42:14 +00:00
MohitMaliFtechiz
9ecadfdfab Downgrading the emulator configuration for custom app test cases since there is only a single test case runs so there is no need of extra ram and sd card size. 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
5bdcaf3e56 Re-enabled KVM for better performance of emulator. 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
f40b3679c3 Removed the caching of emulator from CI. 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
bcb4a46315 Fixed the JvmMockKGateway error in mock deps.
* Fixed the SearchStateTest test which sometimes failing.
2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
0fe6dd4dbc Improved SearchFragmentTest which sometimes failing on API level 34.
* Improved the SearchStateTest which sometimes failing.
2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
07cca85c95 Improved the CI for using the same emulator. 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
040e548391 Removed the canary channel from CI to run the emulator on stable versions.
* Added the emulator boot timeout so that emulator can boot if it takes long in booting.
2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
6a67c8bd5f Improved the CI for running custom app test cases.
* The emulator was not running on API level 25 so now we are directly running the new emulator for this without canary channel.
2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
fce89ef2b3 Updated the CI to run on separate emulator for custom app test cases.
* Upgraded the `uiautomator` version to `2.3.0`.
* Upgraded the `appcompat` version to `1.7.0`.
* Upgraded the coroutines version to `1.8.1`.
* Upgraded the `androidx.test:runner` version to `1.6.1`.
* Upgraded the `androidx.test:core` version to `1.6.1`.
* Upgraded the `androidx.test:orchestrator` version to `1.5.0`.
* Upgraded the `io.mockk:mockk` version to `1.13.12`.
* Upgraded the `org.junit.jupiter:junit-jupiter` version to `5.11.0`.
* Upgraded the `org.assertj:assertj-core` version to `3.26.3`.
* Upgraded the `androidx.annotation:annotation` version to `1.6.0`.
* Improved the SearchStateTest.
* Fixed some deprecated code which is deprecated in new dependencies.
2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
3f7d0f7214 Updated the testing_release.yml to use the JAVA 17.
* Updated the README file to show that now our project requires the JAVA 17 instead of JAVA 11.
* Updated the pre-commit failed message to properly show the error information.
2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
9eebd2b750 Removed the TypographyQuotes issue from lintConfig file since the issue has been fixed on the upstream. 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
55d5019b2f Kept the emulator running after creating the instrumentation coverage so that the same emulator can be used for testing custom apps. This will reduce the CI timing since it will not create the new emualtor to run the custom app test cases. 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
8cd58a8136 Improved the tasks according to the new gradle. 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
0b4bc66858 Fixed unit coverage test cases.
* Upgraded the jacoco dependency to `0.8.12`.
* Fixed StartSpeechInputTest was failing.
2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
23fa4500df Improved the downloading for custom apps.
* Improved the CI to run the test cases for custom app on same emulator.
2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
3d29faf02e Running Android 13 test cases on default apis. 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
b3dba69249 Upgraded the webView dependency to 1.11.0 to take advantage of new webView fixes/improvements. 2024-08-16 15:35:10 +00:00