8120 Commits

Author SHA1 Message Date
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
Kelson
a6de67e6de
Merge pull request #3972 from kiwix/Fixes#3970
Removed the dialog box to select the storage in settings.
2024-08-08 13:08:23 +02:00
MohitMaliFtechiz
65297a79d2 Enhanced RTL Support for Storage Path TextView.
* Ensured that the storage path and title are displayed correctly in both LTR and RTL layouts.
2024-08-08 11:08:02 +05:30
MohitMaliFtechiz
9e2ce9370f Refactored the Setting Test case according to this new UI. 2024-08-07 19:08:42 +05:30
MohitMaliFtechiz
72fe21ba4c Changed the visual representation of storage selection.
* Now the storage path will show for non-selected storage as well.
* Improved the KiwixSettingsFragmentTest.
2024-08-07 17:32:37 +05:30
MohitMaliFtechiz
70245d3621 Fixed: Sometimes internal storage is not found in KiwixSettngsFragmentTest 2024-08-07 13:04:02 +05:30
MohitMaliFtechiz
cbd35c036d Fixed ZimHostFragmentTest, and DeepLinksTest. 2024-08-07 12:06:36 +05:30
MohitMaliFtechiz
1f0cdbeaf5 Fixed KiwixSettingsFragmentTest was failing. 2024-08-06 21:52:52 +05:30
MohitMaliFtechiz
960189e68c Removed the dialog box to select the storage in settings.
* Now, the storage selection (internal/external) is directly visible in the settings, allowing users to select storage without using a dialog box.
* The total and available space for each storage option is displayed.
* Additionally, the selected storage path is shown in the settings, so users know where the downloaded files will be saved.
2024-08-06 21:52:44 +05:30
Kelson
5a588004f7
Merge pull request #3971 from kiwix/Fixes#3963
Changed the criteria for requesting a Google Play Store evaluation.
2024-08-05 18:59:40 +00:00
MohitMaliFtechiz
6cbdf0a2af Changed the criteria for requesting a Google Play Store evaluation.
* Now, it asks for an evaluation when the user has opened the application at least 20 times, has been using the application for the past two weeks, and has one or more ZIM files in their library.
2024-08-05 23:12:25 +05:30
Kelson
5c1c359976
Merge pull request #3968 from kiwix/Fixes#3966
Fixed: Unable to render homepage of "Klimawandel".
2024-08-01 07:32:51 +02:00
MohitMaliFtechiz
dc7fec3e13 Using wikipedia_fr_climate_change_mini.zim file for testing.
* Improved the test case for checking the full page is loaded or not.
2024-08-01 08:54:44 +05:30
MohitMaliFtechiz
349260b955 Added test case for testing the rendering of content in webView. 2024-08-01 08:54:35 +05:30
MohitMaliFtechiz
a0331da5d7 Fixed: Unable to render homepage of "Klimawandel".
* The issue was that we were writing the content on the IO thread using a coroutine, which was called from a `suspend` function. The function was suspended while loading the content, causing the `PipedOutputStream` to be flushed prematurely and resulting in the failure to render the remaining data.
* To fix this, we removed the content rendering from the coroutine and are now using `Completable` to render the content on the IO thread.
2024-08-01 08:54:23 +05:30
Kelson
a23dabd82d
Merge pull request #3917 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2024-07-29 12:15:26 +02:00
translatewiki.net
c840576813 Localisation updates from https://translatewiki.net. 2024-07-29 12:21:12 +05:30
Kelson
71d8a18e1b
Merge pull request #3953 from CalebKL/task/download-fragment-crash-fix
Task/download fragment crash fix
2024-07-26 12:45:37 +02:00
MohitMaliFtechiz
f29634edc7 Setup uncaught exception error handling.
* Updated `setUpUncaughtErrorHandlerForOnlineLibrary` to handle `RxJavaPlugin` errors.
2024-07-26 13:15:45 +05:30
MohitMaliFtechiz
0c0ddd3657 Added CoreComponentFactory to multidex-instrumentation-config.pro, and proGruard file 2024-07-26 13:08:15 +05:30
MohitMaliFtechiz
e88b426d49 added largeHeap to manifest 2024-07-26 13:07:32 +05:30
Kelson
7dcf0424ce
Merge pull request #3954 from kiwix/Fixes#3950
Changed the feature name to "Dark Mode".
2024-07-25 07:48:57 +02:00
MohitMaliFtechiz
d690475621 Improved the renameTarakFile task to ensure that any string removed from the main file will not be added to the tarask old file. We are removing the tarask file from the project at runtime before building the project. If we keep this file, the project will not build. To fix the lint issue, we have enhanced our Gradle task. 2024-07-24 14:55:57 +05:30
MohitMaliFtechiz
6b81b644bd Changed the feature name to "Dark Mode".
* Refactored the code for this feature change.
2024-07-24 11:54:23 +05:30
Kelson
974c7d4832
Merge pull request #3951 from kiwix/Fixes#3933
Introduced new standalone apk for website and nightly.
2024-07-22 18:47:17 +02:00
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
Kelson
00f21359f8
Merge pull request #3915 from kiwix/Fixes#3892
Fixed: Mul file not recognized as such and listing pretty much all languages.
2024-07-19 21:59:22 +02:00
MohitMaliFtechiz
3c89a82c7a Fixed: Mul file not recognized as such and listing pretty much all languages.
* Showing zim files in all available languages.
2024-07-19 21:57:36 +02:00
Kelson
ca19ec2c47
Merge pull request #3938 from kiwix/Fixes#3936
Fixed: Images are not saving in TED zim files.
2024-07-19 21:56:39 +02:00
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
Kelson
d068166d0a
Merge pull request #3948 from kiwix/Fixes#3942
Fixed: Automatically publish to PlayStore for internal testing team.
2024-07-19 21:50:38 +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
79add751a4 Updated the remaining action in pull_request.yml file. 2024-07-19 18:56:13 +05:30
MohitMaliFtechiz
8e62954d4a Using latest versions of actions.
* Updated the version of actions used in our workflows.
2024-07-19 18:56:04 +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
8c25521f43
Merge pull request #3946 from kiwix/Fixes#3945
Fixed: Application crashes when loading the asset(videos) from cache.
2024-07-17 20:12:30 +02:00
MohitMaliFtechiz
ca6d37b43f Fixed: Application crashes when loading the asset(videos) from cache.
* The getData method of the Item class was throwing an error due to any condition, the reason is unknown(may be the data is corrupted or anything) since there are only very less occurrences but it was crashing the application so we are catching the exception if thrown by the `getData()` method so that our application will not crash.
2024-07-17 20:12:13 +02:00
Kelson
9c69d77739
Merge pull request #3947 from kiwix/Fixes#3944
Fixed: Application crashes when creating the webView.
2024-07-17 20:11:45 +02:00
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
Kelson
a46d5a30ee
Merge pull request #3932 from kiwix/Fixes#3909
Fixed: Playing video is too slow to start.
2024-07-15 15:57:40 +02:00
MohitMaliFtechiz
8ce2dfee3c Returning the inputStream for above 1MB item to webView. 2024-07-15 18:30:33 +05:30
MohitMaliFtechiz
2e39330ba0 Returning inputStream in better way to webView for rendering.
* Loading the video on the background thread so that it will not block the UI thread, and the user can easily use the UI(For better video loading in case of a large video file) while ensuring that it returns the inputStream.
2024-07-10 19:29:33 +05:30
MohitMaliFtechiz
c478b8646a Fixed: Playing video is too slow to start.
* This video's size was already coming in the data, and we were again loading the url for getting the size of content while returning the webViewResponse to webView for rendering so we have refactored our code to use the same existing data, and if existing data does not have the size then we are getting the video size from libzim.
* Rendering the HTML data on the IO thread.
* We were creating the file objects twice to get the inputStream of a video file which takes more time to render. Now we are using the same file object for getting the inputStream.
* These changes reduced the video loading time
2024-07-10 19:29:30 +05:30
Kelson
aba37e7ca9
Merge pull request #3934 from kiwix/use-java-libkiiwx-2.2.1
Use java-libkiwix 2.2.1
2024-07-09 21:39:42 +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