2940 Commits

Author SHA1 Message Date
MohitMaliFtechiz
895e564262 Updating the UI when a undeliverable exception is thrown when getting the online library. 2024-07-23 15:11:50 +05:30
MohitMaliFtechiz
baa21cb85b Fixed: Download fragment page is crashing. 2024-07-23 00:12:08 +05:30
MohitMaliFtechiz
a76cef9cee Introduced new standalone apk for website and nightly.
* Created a new package name for the website and nightly APK so that the playStore does not recognize it and do not show updates for these apks.
* Refactored the release CI to upload the app with this new appId.
2024-07-22 18:37:38 +05:30
MohitMaliFtechiz
e02fc32a51 Fixed testExtractDocumentId test case. 2024-07-19 21:51:23 +02:00
MohitMaliFtechiz
1a9b278da6 Fixed testGetLocalFilePathByUri test case. 2024-07-19 21:51:23 +02:00
MohitMaliFtechiz
5f80a86dc9 Fixed: Images are not saving in TED zim files.
* Refactored the code to correctly retrieve the file name from the URL or source, which was causing issues with TED ZIM files.
* Added test cases to prevent this situation in the future.
2024-07-19 21:51:23 +02:00
MohitMaliFtechiz
a5284afce6 Better naming for for top level function class.
* Using top-level extension function instead of object class function.
2024-07-19 18:56:20 +05:30
MohitMaliFtechiz
882784d0ea Fixed: Automatically publish to PlayStore for internal testing team.
* Implemented a method to automatically generate a unique version code by calculating the number of days from the reference date (July 17, 2024) to the current date and adding this value to the base version code (231101) from the last release.
* Added a workflow that automatically generates the bundle and uploads it to internal testing every Monday at 12:00. This workflow will also trigger under the `internal_testing` tag.
* Since we are implementing this, it is necessary to directly release the bundle to internal testing instead of placing it in draft (to eliminate manual steps), so we have refactored our code accordingly.
2024-07-19 18:55:48 +05:30
MohitMaliFtechiz
df9888640f Fixed: Application crashes when creating the the webView.
* The application was crashing while casting activityMainRoot to ViewGroup, which was null at that point (possibly because the user switched to another fragment). We were attempting to cast a null variable to a non-nullable type.
* The WebView can return null, and we handle that in our CoreReaderFragment when creating the WebView object.
* To fix this, we modified the `createWebView` method to avoid casting any null variables and to ensure that no null variables are passed when creating the `ToolbarScrollingKiwixWebView`. If a null variable is encountered, it will throw an `IllegalArgumentException`, which we handle during the creation of this object.
2024-07-17 19:28:35 +05:30
Kelson
48efdfa8c8
Merge pull request #3874 from shaunburch/feature/Issue#1553-share-url-by-qr
Feature: Share server URL by QR
2024-07-15 15:59:24 +02:00
MohitMaliFtechiz
19666d51e2 Fixed ImportBookmarkTest. 2024-07-04 07:40:34 +02:00
Shaun Burch
afb188542b #1553 Update test for QR 2024-07-01 22:01:53 -04:00
Shaun Burch
4b951df961 #1553 Remove unused code 2024-07-01 22:01:53 -04:00
Shaun Burch
7f19919317 #1553 PR Feedback
- Rename to QRCodeDialog
- Move to core module
- Inject GenerateQR
- Remove preview string
2024-07-01 22:01:53 -04:00
Shaun Burch
4ae59f1369 #1553 Fix testZimHostFragment 2024-07-01 22:01:53 -04:00
Shaun Burch
fa1113fc00 #1553 Tests 2024-07-01 22:01:53 -04:00
Shaun Burch
f2e7e7a3c0 #1553 Use String for share by QR 2024-07-01 22:01:53 -04:00
Shaun Burch
a8d27596fe #1553 Touch up QR dialog 2024-07-01 22:01:53 -04:00
Shaun Burch
3c8f5a44e9 #1553 Generate & show QR 2024-07-01 22:01:53 -04:00
Shaun Burch
f02d4b8f03 #1553 Add Share by QR 2024-07-01 22:01:53 -04:00
MohitMaliFtechiz
a283e9491f Fixed: Sometimes migration test took longer in migration in lower device(e.g. API level 25) and fails the test case.
* Increased the migration timing a little bit as migration sometimes takes a few milliseconds more on CI.
2024-06-28 18:43:27 +05:30
translatewiki.net
0f6232cac6 Localisation updates from https://translatewiki.net. 2024-06-27 14:11:08 +02:00
MohitMaliFtechiz
13233e0dcc Fixed: SQLiteConstraintException when inserting the same id item of hisotry/notes in room database.
* id is the primary key for notes/history and when there is an already id available in the room database, and if there is the same id present in the objectbox database and we try to put that entity in the room it gives the SQLiteConstraintException. To fix this we have modified our saving functions of history and notes. If there is already an ID that exists in the room database that we are trying to put in the database it will set the ID to 0 so that the room will automatically assign the ID to that entity and our history/notes will prevent to be lost.
* Added the test cases to properly test these scenarios.
2024-06-26 22:25:18 +05:30
MohitMaliFtechiz
38e4fe41cb Fixed DownloadTest, initialDownload. The Library order and zim file name is changed so these test cases are failing so we have implemented a generic approach to not dependent on zim file name. 2024-06-25 23:22:08 +05:30
MohitMaliFtechiz
b0c5db4ad3 Added test cases for testing all the saved bookmarks should show on the bookmarks screen. 2024-06-25 23:22:02 +05:30
MohitMaliFtechiz
a1f33ca18f Fixed outdated text showing when a zim file could not open.
* Outdated text was showing when a zim file could not open in the kiwix, this text was for the older UI, and now we have removed the "Device Tab" from the "Library" screen so this text is outdated and misleading the users. so we have changed this text according to the new UI.
2024-06-20 12:13:53 +05:30
MohitMaliFtechiz
193c0d1de4 Re-enabled the retry logic in test case. 2024-06-20 01:13:58 +05:30
MohitMaliFtechiz
1fcbe67e20 Added instrumentation test cases to test the search functionality.
* Testing the render method with different scenarios to ensure that libzim do not crash due to broken call stack.
2024-06-20 00:03:25 +05:30
MohitMaliFtechiz
e9934376bb Fixed test cases are not running. 2024-06-19 18:04:59 +05:30
MohitMaliFtechiz
63849c6aab Fixed ZimFileReaderWithSplittedZimFileTest test case. 2024-06-13 18:29:13 +05:30
MohitMaliFtechiz
10f4f2431d Fixed the MimeTypeTest and EncodedUrlTest. 2024-06-13 17:40:05 +05:30
MohitMaliFtechiz
69a7099bc6 Fixed: Not able to upload 512MB+ custom apps anymore.
* Introduced the splitting zim file with 500MB for custom apps. Since the bundle has a limit for a file to upload it uses the play asset delivery mode, and for new custom apps, playStore does not allow to upload the apk (with apk we can upload more than 1GB file). So to address this issue we have introduced a feature in libzim where we can load the zim files via the fd list.

* We have modified our code to upload the files with 500MB chunks in the asset folder, and later we are accessing these files from the asset folder and creating the archive object with the help of the new libzim feature.
2024-06-13 17:36:15 +05:30
MohitMaliFtechiz
13fb613ebf Improved the naming of unsupported mimeType handler class.
* Improved the dialog's message and title.
2024-06-07 06:41:25 +02:00
MohitMaliFtechiz
c928943851 Fixed DownloadOrOpenEpubAndPdfHandlerTest failing on API level 24. 2024-06-07 06:41:25 +02:00
MohitMaliFtechiz
38fb31b6e0 Added unit test cases for testing this functionality with all possible scenarios e.g. "Download Failed", "Download Successfull", "When no reader application is installed in device", "File opens in external reader application", "When user clicks on NO Thanks button". 2024-06-07 06:41:25 +02:00
MohitMaliFtechiz
8794774816 Introduced a Open/Download dialog for Epub/Pdf files.
* This was requested in #3453 and this PR is related to the Epub opening issue so we are introducing this here.
2024-06-07 06:41:25 +02:00
MohitMaliFtechiz
2258cfabcb Fixed: Some EPUB files are not downloading.
* The issue was epub fileName containing the colon ":" in it that is not supported by most of fileSystem, that's why it is not creating the file in fileSystem and we are not able to download the epub file.
* So to fix this we have improved our `getDecodedFileName` method which returns the fileName of the epub file, here we are removing the colon from fileName if any contains. For this change we have added the test cases as well for our `getDecodedFileName` function to properly test it.
* We also refined our downloadFileFromUrl method. Previously, the generateSequence function was used to create new files with underscores and incremented numbers, anticipating multiple attempts to save the same file. However, since we now save files only once in our storage, this feature is no longer utilized. This enhancement is detailed in issue #2879.
* Added epub query in our manifest to properly open epub files in external application.
2024-06-07 06:41:25 +02:00
MohitMaliFtechiz
9c6aeecae6 Added the test cases for "ImportBookmark" feature to properly test the importing of bookmarks. 2024-06-07 06:40:29 +02:00
MohitMaliFtechiz
e83a040f02 Added test cases for testing the "Import Bookmark" feature. 2024-06-07 06:40:29 +02:00
MohitMaliFtechiz
be1369f805 Added the 'Export bookmarks' feature.
* The application now exports 'bookmark.xml' file to the 'Android/media/org.kiwix...' folder. Users can copy this file to the 'Android/data/org.kiwix.../files/Bookmarks/' folder to view the exported bookmarks.
* Introduced an export bookmark feature in the settings screen, allowing users to easily export all bookmarks with a simple click. A dialog prompt appears before exporting, indicating the location where the exported bookmarks will be saved and providing instructions on how to import them.
* Added a test case for this change in our settings test.
2024-06-07 06:40:29 +02:00
MohitMaliFtechiz
cf58340ee8 Removed the BasePageDao and RoomPageDao.
* We have refactored our code to use PageDao for managing data related to Bookmarks, Notes, and History. With the ability to return Flowable from the Room database, the BasePageDao interface has become unnecessary. Consequently, we have removed BasePageDao and streamlined our code to use PageDao, providing a unified approach for these functionalities. This change reduces code complexity and enhances readability, making the codebase easier to understand and maintain.
2024-06-07 06:35:21 +02:00
MohitMaliFtechiz
84e0b742c2 Added migration test cases for notes. 2024-06-07 06:35:21 +02:00
MohitMaliFtechiz
8f42e09c45 Added test cases for testing the NotesRoomDao via KiwixRoomDatabase. 2024-06-07 06:35:21 +02:00
MohitMaliFtechiz
d044d20e83 Added NoteRoomDaoTest for testing the saving/deleting/retrieving scenario for notes.
* Refactored the code for a better naming convention.
2024-06-07 06:35:21 +02:00
translatewiki.net
a647c15c31 Localisation updates from https://translatewiki.net. 2024-06-03 14:09:01 +02:00
MohitMaliFtechiz
a27dcc0b7e Improved the Migration test, since on slow devices/environments it will take more time for migration. 2024-05-31 19:01:31 +05:30
MohitMaliFtechiz
614b82c444 Added migration test cases for History. 2024-05-31 16:12:45 +05:30
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
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