237 Commits

Author SHA1 Message Date
CalebK
9b64e5d815 Fixed failing test cases. 2024-12-10 17:15:47 +01:00
MohitMaliFtechiz
1904b91da0 Upgraded the kiwix version to 3.12.0 2024-11-21 12:23:49 +05:30
MohitMaliFtechiz
33bd3397e3 Fixed: Move canReadFile() method to IO thread.
* Moved the file readability check to the IO thread to prevent ANR.
* Refactored the code to accommodate this change.
2024-10-21 10:55:12 +05:30
MohitMaliFtechiz
0dc7224c2a Upgraded the java-libkiwix to 2.2.3 to start using the libkiwix14. 2024-10-15 09:48:11 +05:30
MohitMaliFtechiz
10837aef76 Refactored our code to properly show the downloading online library progress.
* Added a head request to get the library length and showing the progress on behalf of that length.
* Improved the library loading process: previously, fetching the online library involved making two requests, which not only took more time to get a response from the server but also used twice the bandwidth. To address this, we have refactored our code to ensure that only one request is made at a time.
* Upgraded the retrofit, and interceptor dependencies to latest version.
2024-09-18 15:24:08 +05:30
MohitMaliFtechiz
3ab0dcd8b9 Fixed: AndroidXTracer: java.lang.NoSuchMethodError: No static method forceEnableAppTracing error in UI test cases. 2024-09-13 18:42:37 +05:30
MohitMaliFtechiz
0278fa8a0c Added test cases to the CI for testing the minified version of the application to prevent this type of error from happening in the future. 2024-09-13 16:59:01 +05:30
Emmanuel Engelhart
4b81c65e4a Use java-libkiwix 2.2.2 2024-08-29 15:52:52 +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
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
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
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
MohitMaliFtechiz
8c522daa07 Upgraded few dependencies. * Upgraded kotlin to to make it compatible with gradle . * Upgraded dagger to to make it compatible with gradle . * Removed from project since it is not maintained from 2020 and new gradle is not compatible with this library, so we have changed the it with binding. 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
0f65ebeff9 Enabled BuildConfig file, since it is by default turened off in new gradle 2024-08-16 15:35:10 +00:00
MohitMali
f314e70d0c Upgraded Gradle to 8.1.3 * Added the namespace property in the build.gradle file because, in the newer Gradle version, it is necessary to specify the namespace in the build.gradle file instead of declaring it in the manifest file. 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
88a83be01d Updated to Android 14 & refactored some methods inorder to compile with the SDK 14 2024-08-16 15:35:10 +00:00
MohitMaliFtechiz
88d828e5ce Removed the fetch library and its code from project.
* Fixed the Downloading for Authentication URL.
2024-08-12 17:14:18 +05:30
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
e0731197fc Removed the testing date from code. 2024-07-19 18:55:56 +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
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
2d96cde064 Catching exceptions if any thrown by this method since we are throwing the error when there are corrupted database error and other type of error while getting the searchResult from libzim.
* Fixed the library version issue.
2024-07-09 22:12:57 +05:30
Emmanuel Engelhart
c969695139
Use java-libkiwix 2.2.1 2024-07-09 09:29:21 +02:00
Shaun Burch
3c8f5a44e9 #1553 Generate & show QR 2024-07-01 22:01:53 -04:00
MohitMaliFtechiz
4e96703b11 Upgrade the kiwix version to 3.11.1 2024-06-27 14:08:04 +02:00
MohitMaliFtechiz
a2ac6429a7 Fixed: A NotSerializableException was attached to the crash logs instead of the actual crash logs when there was an error in the coroutine.
* The serialization issue was fixed in coroutine version `1.7.0`, so we have upgraded the coroutine dependency to `1.7.0` to address this issue.
* In the new version of coroutines, `ConflatedBroadcastChannel` is replaced with `StateFlow`, so we have refactored our code to use `StateFlow`.
* Fixed some detekt issues which occurs after upgrading this dependency.
2024-06-27 14:50:23 +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
3a3f413c87 Use java-libkiwix 2.2.0 2024-06-07 12:48:06 +05:30
MohitMaliFtechiz
f58559ed17 Upgraded the kiwix version to 3.11.0. 2024-06-07 06:36: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
4898bacbc5 Fixed history was not showing on the HistoryScreen. 2024-05-31 17:03:47 +05:30
MohitMaliFtechiz
c2446d27c4 Refactored the code for saving the history in room database. 2024-05-30 12:21:56 +05:30
MohitMaliFtechiz
0c26f6192d Added Room dependency. 2024-05-29 14:36:59 +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
72d1ea3340 Introduced the ContentDescription lint check. 2024-05-20 11:59:06 +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
MohitMaliFtechiz
94dcebe25a Updated kiwix version to 3.10.1. 2024-05-08 16:59:08 +02:00
Emmanuel Engelhart
11e5bb3ed4
Use java-libkiwix 2.1.1 2024-05-03 22:38:34 +02:00
Emmanuel Engelhart
68dd59432c
Use libkiwix-java 2.1.0 2024-04-22 19:37:29 +02:00
MohitMaliFtechiz
cf6e2849fe Updated kiwix version to 3.10.0. 2024-03-22 03:21:58 +01:00
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
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
MohitMaliFtechiz
23ede348cc Upgraded java-libkiwix to 2.0.0
* A new version of java-libkiwix has been released so we are using the new version of java-libkiwix in our project.
2024-02-06 12:51:24 +05:30
MohitMaliFtechiz
fa031a4fde Fixed: Release versions are lower in the custom apps.
* Changed the date format from `YYDDD0` to `yyDDD0` to accurately calculate the version code for the last day of the year as well.
2024-01-30 12:12:46 +01:00
MohitMaliFtechiz
4796137fad Upgraded webkit version to latest to work with latest chromium dependencies.
* Upgraded the `WebKit` version to the latest (from 1.3.0 to 1.7.0) to leverage improvements and bug fixes. This update is essential to address the issue with the latest `chromium` dependency, as outlined in #3644.
* Additionally, elevated the `androidx.annotation:annotation` dependency from `1.1.0` to `1.2.0` to meet the requirements of the updated WebKit version.
2024-01-02 17:06:52 +05:30
Emmanuel Engelhart
bbc683da88
Bump-up version to 3.9.1 2023-12-25 15:09:18 +01:00
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
4fdbf540e4 Updated kiwix version to 3.9.0. 2023-12-14 15:00:57 +01:00