8300 Commits

Author SHA1 Message Date
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
Kelson
bb9d14c693
Merge pull request #3925 from kiwix/Fixes#3924
Fixed: REGRESSION WikimedFR stuck on specifc article
2024-07-05 07:45:27 +02:00
MohitMaliFtechiz
d389e73f7b Fixed: Regression issue causing WikimedFR to get stuck on specific articles
* Articles containing special characters like # in the URL were causing problems. We had previously implemented logic to retrieve data from libzim by trimming the URL before these characters to properly load videos, images, and other articles. However, this logic caused the URL to break under certain conditions.
* To address this, we implemented a fallback mechanism. If libzim does not return the expected data using our initial logic, we now attempt to retrieve the data using the full, unmodified URL. This change ensures that URLs with special characters (e.g., #, ?) will be processed correctly, preventing loading issues for such media and articles.
2024-07-05 07:45:18 +02:00
Kelson
2335fb4ae8
Merge pull request #3927 from kiwix/Fixes#3926
Fixed: The application crashes when opening a random article.
2024-07-05 07:44:53 +02:00
MohitMaliFtechiz
151392cdc0 Fixed: The application crashes when opening a random article.
* Caught the exception if any thrown by the libzim when getting the random entry.
* When this type of error occurs then we have refactored our code to show the random article instead of a (blank/ same page) currently loaded in the webView.
2024-07-04 16:09:00 +05:30
Kelson
4a39ba80ca
Merge pull request #3922 from kiwix/Fixes3890
Fixed: Duplicate bookmarks showing on the bookmark screen, and bookmark.xml showing to bookmarks connected to each other.
2024-07-04 07:47:52 +02:00
MohitMaliFtechiz
19666d51e2 Fixed ImportBookmarkTest. 2024-07-04 07:40:34 +02:00
MohitMaliFtechiz
2f000d7400 Showing the original bookmark as and removed the unrelated page bookmark. 2024-07-04 07:40:34 +02:00
MohitMaliFtechiz
c2dd8a894d Fixed: Duplicate bookmarks showing on the bookmark screen, and bookmark.xml showing to bookmarks connected to each other. 2024-07-04 07:40:34 +02:00
Kelson
46b0e2c616
Merge pull request #3923 from kiwix/Fixes#3920
Fixed: Suggestions to 90% broken on Wikimed FR.
2024-07-04 07:18:39 +02:00
MohitMaliFtechiz
31e1458928 Fixed emulator is not starting while running custom apps test cases. 2024-07-03 20:27:28 +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
998edda2aa Removed the testing code 2024-07-03 16:27:20 +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
16844541c0 Fixed: Suggestions to 90% broken on Wikimed FR.
* In custom apps we are using the assetFileDescriptor, and the `dup()` method of `parcelFileDescriptor` is internally throwing resource leak exception(found in the debug stacktrace while running the application under the strace) and it somehow impacting the suggestion API.
* Removed the dup method of the `parcelFileDescriptor`.
2024-07-03 16:25:16 +05:30
Shaun Burch
afb188542b #1553 Update test for QR 2024-07-01 22:01:53 -04:00
Shaun Burch
b6b87b9b8c #1553 Default QR to gone 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
90b3137216 #1553 Move QR above ZIM files 2024-07-01 22:01:53 -04:00
Shaun Burch
fe22851843 #1553 Use getSocketAddress 2024-07-01 22:01:53 -04:00