8300 Commits

Author SHA1 Message Date
MohitMaliFtechiz
68e1386344 Added test cases for HistoryRoomDao. 2024-05-31 15:14:21 +05:30
MohitMaliFtechiz
9538768165 Added migration code of history.
* Added the test cases in KiwixRoomDatabaseTest for testing the HistoryRoomDao.
2024-05-31 13:02:53 +05:30
MohitMaliFtechiz
60c905860f Fixed the compilation errors in HistoryRoomDao.
* Added he migration code in KiwixRoomDatabase.
2024-05-30 18:43:19 +05:30
MohitMaliFtechiz
c2446d27c4 Refactored the code for saving the history in room database. 2024-05-30 12:21:56 +05:30
MohitMaliFtechiz
e32e3e6371 Created HistoryRoomDao, and HistoryRoomEntity for saving the data in room database. 2024-05-30 11:12:31 +05:30
Kelson
09c482102f
Merge pull request #3858 from kiwix/Fixes#3111
Room introduction & migration of recent search
2024-05-30 06:08:12 +02:00
MohitMaliFtechiz
26cb6a69b7 Fixed the ObjectBoxToRoomMigratorTest.
* Improved the migration code of recent searches, now all the migration will be performed on the background thread so that it can not impact the UI thread.
2024-05-29 16:55:56 +05:30
MohitMaliFtechiz
0613d36ab9 Added KiwixRoomDatabaseTest, ObjectBoxToRoomMigratorTest, RecentSearchRoomDaoTest for testing all the scenarios of migration and saving the recent searches in room database.
* Improved the SaveSearchToRecentsTest.
* Removed unused code from project.
2024-05-29 14:36:59 +05:30
MohitMaliFtechiz
106e83c704 Refactored the DeleteRecentSearchTest and SaveSearchToRecentsTest tests to use the Room database for testing. 2024-05-29 14:36:59 +05:30
MohitMaliFtechiz
3f1509deaa Improved the KiwixRoomDatabase.
* Removed unnecessary logs.
* Introduced the `ObjectBoxToRoomMigrator` class for migrating the recent search data from objectBox to room.
* Fixed the deprecation code error was showing due to `RecentSearchEntity`.
2024-05-29 14:36:59 +05:30
Gouri Panda
ba5da43c89 Added room database in project, and refactored/migrated the data from objectBox to room. 2024-05-29 14:36:59 +05:30
MohitMaliFtechiz
0c26f6192d Added Room dependency. 2024-05-29 14:36:59 +05:30
Kelson
fb2b42b44c
Merge pull request #3857 from kiwix/Fix#3854
Fixed: If there is a zim file loaded in the reader that has the service worker in it so we can't exit the application with a back Button.
2024-05-29 07:31:57 +02:00
MohitMaliFtechiz
1e632d0412 Fixed flaky SearchFragmentTest that occasionally fails due to search_src_text not found error. 2024-05-28 17:58:19 +05:30
MohitMaliFtechiz
4cb32b1eff Fixed the back button issue for service worker ZIM files. 2024-05-28 16:22:16 +05:30
MohitMaliFtechiz
ba42a98ad3 Fixed: If there is a zim file loaded in the reader that has the service worker in it so we can't exit the application with a back Button.
* Improved the showing of bottomToolbar visibility.
* Preventing saving the Service worker url in history.
2024-05-27 23:33:20 +05:30
Kelson
2ef95596aa
Merge pull request #3853 from kiwix/Fix#3851
Fixed: Broken fullscreen mode with `3.10`.
2024-05-21 18:09:41 +02:00
MohitMaliFtechiz
7a56b24b13 Improved the closing of fullScreenMode. 2024-05-21 15:50:35 +05:30
MohitMaliFtechiz
489e1f2c4f Fixed: Broken fullscreen mode with 3.10.
* Fixed the fullScreen mode not properly working on Android 11 and above(It was showing the blue line on the top), and also not showing the navigation options so that the user can close the `fullScreenMode` while pressing the back button in the navigation. Now it started showing the `fullScreenMode` like in earlier version of kiwix.
* Also improved the `fullScreenMode` for lower versions of Android. We have created an extension function so that we can easily reuse the code when we open/close the `fullScreenMode` for a video.
* Fixed the BottomToolbar's options was showing when the application is in the background in `fullScreenMode` and the user opens again the application.
* When the application is running in the `fullScreenmode` and we close the `fullScreenMode` of a video so at that time BottomToolbar's option was showing. So we have fixed that.
2024-05-21 15:50:35 +05:30
Kelson
fc5c671273
Merge pull request #3841 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2024-05-20 19:43:55 +02:00
translatewiki.net
ff6226f153 Localisation updates from https://translatewiki.net. 2024-05-20 14:07:17 +02:00
Kelson
dfbfb3bf16
Merge pull request #3842 from kiwix/Fix#3837
Detecting accessibility issues in CI.
2024-05-20 09:10:11 +02:00
MohitMaliFtechiz
eb011e5c32 Corrected the fileName in SearchFragmentTest. 2024-05-20 12:05:44 +05:30
MohitMaliFtechiz
2137f47147 Added the accessibility check in remaining test cases.
* Added the `contentDescription` to AddNoteDialog's `close` image.
2024-05-20 12:05:32 +05:30
MohitMaliFtechiz
ff5f9fe162 Added the androidx.test.espresso:espresso-accessibility dependency to test the accessibility issues in our application.
* This testing library only work with `ViewAction` like if we perform any click on any screen then it starts checking the accessibility issues, so we have modify our test cases according to this.
* Suppress a few known accessibility issue e.g. on `LocalFileTransfer` screen we have a `skip` text which we are not using but it is giving the error for that.
* Fixed the `TouchTargetIssue` in ZimHostFragment.
* Added the `contentDescription` to search recyclerView.
2024-05-20 12:05:13 +05:30
MohitMaliFtechiz
037d02ab8c Added the contentDescription for views and suppressed this lint warning for some views since we are setting the contentDescription for those views in the code. 2024-05-20 11:59:13 +05:30
MohitMaliFtechiz
72d1ea3340 Introduced the ContentDescription lint check. 2024-05-20 11:59:06 +05:30
Kelson
95ef46adf5
Merge pull request #3849 from kiwix/Fix#3848
Fixed: Improve article search in our application.
2024-05-17 19:02:37 +02:00
MohitMaliFtechiz
412fdb97d3 Removed the commented code. 2024-05-17 18:12:28 +05:30
MohitMaliFtechiz
1df7a0b27a Fixed the application was crashing when we frequently searching and clicking on any article.
* Added test cases for testing this scenario.
2024-05-17 18:06:05 +05:30
MohitMaliFtechiz
e914b25957 Fixed the test cases that were failing if testPauseAndResumeInOtherLanguage failed due to any reason. Because the language remains changed and other test cases will fail. Like it was failed in this PR on API level 30.
* Also, improved our `DownloadTest`, because after changing the language of the application online content will change according to the new language so now we are using a generic approach for downloading the zim file.
2024-05-17 14:45:14 +05:30
MohitMaliFtechiz
6ad1172ac3 Fixed: Improve article search in our application.
* Now we are using the same `ZimFileReader` object to search the articles. It reduces the search timing and avoids unnecessary allocation of objects in memory.
* Refactored the `SearchViewModelTest` for this change.
* After this change there is some unused code so we have removed that from our application.
2024-05-17 14:45:14 +05:30
Kelson
e4924d8deb
Merge pull request #3846 from kiwix/Fix#3845
Fixed: application was crashing when starting the `kiwix server`.
2024-05-17 09:10:37 +02:00
MohitMaliFtechiz
e48e46b923 Fixed: application crashing when hosting the split zim files on server, since we have an issue with split zim files of zim-tools. Due to this issue, there is crash reported on the playStore. Because we have full access to files in the playStore variant since all the files are located in the app-specific directory.
* Improved the log for showing the actual error if there is something goes wrong while adding the book in `Library`.
2024-05-16 17:37:53 +05:30
MohitMaliFtechiz
17dac247c7 Improved the permission asking when the user tries to start the server in all variants and all versions of Android so that it will ask storage(read/write) permission for below Android 13 in non-playStore variant. Also, ask for the MANAGE_EXTERNAL_STORAGE permission in Android 11 and above. This check ensures that without the storage and MANAGE_EXTERNAL_PERMISSION user can not start the server. 2024-05-16 17:37:53 +05:30
MohitMaliFtechiz
a5fc8d9257 Fixed: A crash occurred when starting the kiwix server.
* Added a check for checking the `MANAGE_EXTERNAL_STORAGE` permission when starting the server in the non-playStore variant. If there is no permission, then it ask for the permission to avoid the crash due to permission lack for file.
2024-05-16 17:37:53 +05:30
Kelson
a155b62050
Merge pull request #3847 from kiwix/Fix#3666
Fixed: Unable to restart download after pausing.
2024-05-16 11:49:57 +02:00
MohitMaliFtechiz
680628f339 Fixed: Unable to restart download after pausing.
* It was due to we were using the hardcoded string for checking the pause state of downloading so pausing and resuming are working fine in the English version and do not work in other languages.
* Added test cases for checking this scenario so that we can avoid this type of errors in the future.
2024-05-16 11:45:20 +05:30
Kelson
56bd7419e7
Merge pull request #3844 from kiwix/Fix#3838
Uploading nightly APK with released signature.
2024-05-15 07:04:45 +02:00
MohitMaliFtechiz
ed0ffad86c Uploading nightly APK with released signature.
* Uploading nightly APK with a released signature so that APK can update, if a user downloads the new version of nightly like our released APK.
* Modified the nightly CI for this change.
2024-05-14 15:34:27 +05:30
Kelson
2612cf83a8
Merge pull request #3840 from kiwix/Fix#3783
Upgraded the minimum SDK version to `25`.
2024-05-13 16:27:13 +02:00
MohitMaliFtechiz
4256247afb Renamed the test cases according to our new minimum API level. 2024-05-13 18:41:52 +05:30
MohitMaliFtechiz
396e291028 Added the heap size in API level 25 emulator. 2024-05-13 18:06:36 +05:30
MohitMaliFtechiz
34928323d5 Updated minimum SDK version to 25.
* Updated the `README.md` file for this new change.
* Removed the API level 24 from CI and added the API level 25 since now our minimum SDK version is 25.
* Renamed CompatV24 file since we have upgraded the minimum SDK version so this fileName was irrelevant.
2024-05-13 13:03:21 +05:30
Kelson
c03c376ea1
Merge pull request #3835 from kiwix/update_changelog_for_3.10.1
Updated the CHANGELOG file for version `3.10.1`.
3.10.1
2024-05-10 12:22:47 +02:00
MohitMaliFtechiz
3a18fb389f Updated the CHANGELOG file for version 3.10.1.
* We have fixed some issues in this milestone which should be mentioned in the CHANGELOG file so we have added them in CHANGELOG file.
2024-05-10 15:44:40 +05:30
Kelson
e46e0dbe1e
Merge pull request #3834 from kiwix/Fix#3832
Fixed: Zim files are not opening with kiwix when clicking from the storage.
2024-05-10 12:13:27 +02:00
MohitMaliFtechiz
1b596ecb0d Added test cases for testing the deep linking in our application.
* Testing for both `file` and `content` scheme type uris.
2024-05-10 15:04:47 +05:30
MohitMaliFtechiz
31078e3dce Fixed: Zim files are not opening with kiwix when clicking from the storage.
* Corrected the deep linking for `content` type scheme.
* Improved the handling of zim files if user opens from the storage and our application is not in background.
* Improved the opening of Zim files when we open directly from storage.
* Also, added necessary comments on the changes to properly understand why we have done these changes.
2024-05-10 15:04:36 +05:30
Kelson
ab694c4f3d
Merge pull request #3824 from kiwix/Fix#3808
Fixed: PlayStore showing deep linking issue for URLs schema.
2024-05-10 07:34:59 +02:00