433 Commits

Author SHA1 Message Date
MohitMaliFtechiz
903c1e142e Corrected all the messages related to ZIM, and improved the message of copy/move ZIM file dialog 2024-11-12 18:59:00 +05:30
MohitMaliFtechiz
d572af4fcd Removed the usesCleartextTraffic from our manifest 2024-11-07 10:44:43 +05:30
translatewiki.net
44fe71119b Localisation updates from https://translatewiki.net. 2024-10-31 13:51:32 +01:00
MohitMaliFtechiz
c7f8d99eb0 Fixed: Search was not working properly, it always showing the current loaded page when we click on any searched item. 2024-10-21 10:55:12 +05:30
MohitMaliFtechiz
78e265b942 Fixed an issue where bookmarks would not open for a ZIM file if another ZIM file was already opened in the reader. Instead of opening the bookmarked page, it always opens the home page of the current ZIM file. 2024-10-21 10:55:12 +05:30
MohitMaliFtechiz
a7f662fe45 Fixed: The search fragment test was failing in both the custom and app modules due to a socket exception during the ZIM file download. 2024-10-21 10:55:12 +05:30
MohitMaliFtechiz
c3d9bb74f7 Added the test cases for CustomFileValidator with edge cases. 2024-10-18 15:18:42 +02:00
MohitMaliFtechiz
e25f0f0aad Added unit test cases for testing this scenario to avoid this type of errors in future. 2024-10-18 15:18:42 +02:00
MohitMaliFtechiz
5f898be238 Fixed: Medical wikimedia (mini) keeps crashing.
* This issue occurred when we tried to access ZIM files from the application’s folder in the `zimFiles()` method. In this method, we add directories to a non-null list of files. However, when attempting to retrieve the list of files from the application directory, the SD card path was null due to the SD card being unmounted, which caused the application to crash.
* To fix this, we have improved our `zimFiles()` and `obbFiles()` methods to return only existing, non-null directories. This ensures proper handling of file system detection, so if a directory is unavailable or returns null, these methods handle it appropriately.
2024-10-18 15:18:42 +02:00
MohitMaliFtechiz
02d732f763 Corrected the comments. 2024-10-15 22:52:20 +02:00
MohitMaliFtechiz
4cb8776644 Re-enabled the WifiHotspot for app only and removed this for custom apps. 2024-10-15 22:52:20 +02:00
MohitMaliFtechiz
081fc6b207 Removed the restriction popup from start in PS variant.
* Since now we have a way to load the sideloaded zim files in application so this popup does not make sense. Therefore, we are removing this.
2024-10-01 12:00:47 +05:30
MohitMaliFtechiz
81109c4a49 Removing the temporary files of test cases from storage to free up storage. 2024-09-30 23:07:18 +05:30
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
MohitMaliFtechiz
9dee134cf0 Improved the test cases not to show the Donation popup between tests. 2024-09-09 13:02:18 +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
MohitMaliFtechiz
dbead86c57 Fixed SearchFragmentTestForCustomApp test case 2024-08-24 19:21:28 +05:30
MohitMaliFtechiz
6f2c3a45cf Fixed the test cases and some code 2024-08-24 17:18:48 +05:30
MohitMaliFtechiz
aed1dd1661 Fixed namespace issue in custom module. 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
09070d187b Fixed Instrumentation test cases was failing. 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
bfff033af8 Fixed app_name is not found in core module.
* Fixed some ids are not found in the project.
2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
3cdb7d998d Fixed, ids and string are not found in app and custom module 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
8f6cde05b3 Fixed, package name and R classes not found in custom module 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
2a9bbe71b3 Resolve namespace issues for compatibility with Gradle 8.0 and above. * In compliance with the requirement to specify a namespace for each module, we have eliminated package names from manifests and introduced namespace declarations in the Gradle files. * Considering the presence of multiple apps in the custom app, we configured the namespace during the creation of product flavors. * To enhance clarity and understanding, comprehensive comments have been added. 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
c9b43117e6 Removed the fetch library from README file.
* Also, now we are not using fetch library anymore so we have removed this from our credits files.
* Removed the unused code from detekt_baseline.xml file.
2024-08-12 17:15:42 +05:30
MohitMaliFtechiz
775fab14bc Fixed unit coverage 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
9b091301bd Fixed some detekt and lint issues 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
cebbbabbd8 Introduced Room database for managing the downloads. * Refactored the code to use the room database instead of objectbox database with fetch. 2024-08-12 17:14:18 +05:30
MohitMaliFtechiz
34618aec05 Fixed: Download zim files in Android/media/org.kiwix/kiwixmobile/ folder instead of internal app-specific directory.
* Now all the downloading files will store in this public app-specific directory.
* Refactored the code to show this new location in storageSelection dialog for both internal and external storage.
* Updated the `README.md` file to educate user that how they can read already downloaded zim files in PS version.
* Refactored the test cases according to this change.
2024-08-08 16:57:31 +05:30
MohitMaliFtechiz
01cce5307e Refactored the test case to use the scientific-alliance zim file since this zim can reproduce this bug. 2024-07-03 18:09:30 +05:30
MohitMaliFtechiz
32e1ba69de Fixed the test cases failure. 2024-07-03 17:28:11 +05:30
MohitMaliFtechiz
2a4c9c51d4 Added test cases for custom apps so that we can avoid the error in search functionality of custom apps. 2024-07-03 16:25:41 +05:30
MohitMaliFtechiz
53a259f2bb Improved the Zim file writing for APK(OBB files). 2024-06-14 12:22:03 +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
72d1ea3340 Introduced the ContentDescription lint check. 2024-05-20 11:59:06 +05:30
MohitMaliFtechiz
e193f10afd Fixed Search is not working in both modules.
* Fixed when we opens the `Note dialog` from Note screen and came back to reader screen then it was showing the blank screen.
2024-04-29 19:27:58 +05:30
MohitMaliFtechiz
ebfea07fd4 Fixed: PlayStore reported UninitializedPropertyAccessException when launching the KiwixMainActivity.
* The error was occurring when launching the `KiwixMainActivity`. At this moment, `coreComponent` was in creation process so it is not initialized at this moment, and we are passing this component in our `KiwixMainActivity` through interface for injection of this activity. But we are not using `coreComponent` object in our `KiwixMainActivity` so passing it to the activity is unused because we are injecting this activity through `cachedComponent`, and this unused object causing the error. So we have removed this interface from our `BaseActivity` and directly injecting `KiwixMainActivity` in via `cachedComponent`.
2024-04-17 20:33:09 +05:30
MohitMaliFtechiz
8828a8b917 Fixed: Lint Issue - Unconditional Logging.
* Re-enabled the `LogConditional` lint check.
* Introduced a `Log` class that exclusively handles logging operations in the debug variant.
* Removed unnecessary `if (BuildConfig.DEBUG)` conditions from the project.
2024-03-11 11:46:17 +05:30
translatewiki.net
4f5d66dbd7 Localisation updates from https://translatewiki.net. 2024-03-07 13:07:14 +01:00
MohitMaliFtechiz
f2e44e02c4 Upgraded many dependencies of our project.
* Upgraded test cases and project dependencies.
* Refactor test cases and project code according to the new changes in dependencies.
2024-03-04 21:18:04 +05:30
translatewiki.net
ebdc5443fe Localisation updates from https://translatewiki.net. 2024-02-22 19:04:26 +01:00
translatewiki.net
d733ee8812 Localisation updates from https://translatewiki.net. 2024-02-06 18:44:03 +01:00
MohitMaliFtechiz
62883febb3 Fixed: Resolved the issue where Google Play Store displayed an error during APK upload.
* We have excluded the universal APK from the variant list that is being uploaded to the Play Store.
* This exclusion is necessary because we cannot disable the universal APK, as it is required to set the version code for the bundle. Disabling the universal APK would result in the bundle version code being set exclusively for `x86_64`.
2023-12-28 19:24:09 +05:30
MohitMaliFtechiz
2423b6b683 * Fixed: Made a small improvement to the sidebar entries for "About the app" and "Support app."
* Introduced the 'Support kiwix' option, which is configurable in the navigation for custom apps. If the custom app is set to display the "Support" menu item in navigation, it will be shown; otherwise, it will be hidden from the app.
* Replaced the "kiwix" and "the" prefixes in "Support kiwix" and "About the app" with the app name in the navigation.
2023-12-15 16:44:25 +05:30
MohitMaliFtechiz
25eab4e5fb Introduced the 'About the app' option in the navigation for custom apps.
* If the custom app is configured to display the 'About the app' option in navigation, it will be visible. Clicking on it will redirect the user to the configured URL.
2023-12-14 12:44:05 +05:30
MohitMaliFtechiz
3ca6a15058 Fixes the issue where the "Help" submenu in the sidebar is misleading in custom apps.
* We have hidden the help screen from our sidebar.
2023-12-14 07:45:15 +01:00
MohitMaliFtechiz
caf776a60d Introduced the disable external links option for custom apps.
* We have introduced the option to disable external links for custom apps. If a custom app is configured not to display the external links popup, it will both hide the external links preference from settings and refrain from showing the external link popup when opening external links. Additionally, we have included relevant comments within the methods and code to provide developers with a clear understanding of the reasons behind these changes.
2023-12-14 07:43:25 +01:00
MohitMaliFtechiz
e391b407b2 Fixed the left margin on the placeholder to make it look nice on the phone. 2023-12-06 17:05:43 +05:30
MohitMaliFtechiz
bbcf8bea8c Added a placeholder for search in custom apps.
* Introduced a search placeholder for custom apps; if any custom app is configured not to show the title in the toolbar, it will display the search placeholder with a border. To implement this change, a layout has been added inside the toolbar.
* To enhance understanding of this change, proper comments have been added to the methods.
2023-12-06 16:00:35 +05:30
MohitMaliFtechiz
88475d8601 The app icon will no longer automatically be replaced with three lines after closing the tabs screen in custom apps when the custom app is configured not to show the title. 2023-12-06 16:00:28 +05:30