7204 Commits

Author SHA1 Message Date
MohitMaliFtechiz
d2505b7ca3 Resolved the application crash occurring when clicking the 'OPEN_NOTE' button in the NotesFragment.
* Now, we primarily utilize the `FileDescriptor` instead of the file in conjunction with the URI for various functionalities. Consequently, we have refactored our note-opening functionality accordingly.
2023-12-27 17:30:44 +05:30
MohitMaliFtechiz
1f8c4e8ad0 Moved takePersistableUriPermission permission for only we have selected via file picker since we can only take this permission for those file that we have selected via file picker.
* exist the previous book, if any open in reader screen when there is some error in opening new file in the reader screen.
2023-12-27 16:36:59 +05:30
MohitMaliFtechiz
8e59d4390e Fixed zim file not opening that is previous loaded, if we close the application or navigate to the other fragments.
* Improved the error logging if due to some condition we are unable to open the assetFileDescriptor.
2023-12-27 15:53:15 +05:30
MohitMaliFtechiz
4da41bc9ec Taking takePersistableUriPermission for uris that user try to open via file picker. Since we need access of this uri to open the same file again, if user tries to open notes, history etc. 2023-12-27 15:22:55 +05:30
MohitMaliFtechiz
b3b6c06a0e Open file with AssetFileDescriptor instead of File since we have restriction to directly access the files via filePath so instead of a file now we are acquiring the fileDescriptor approach since we can directly open ZIM files via file descriptor without any special permission. Therefore, we are now starting to utilize the fileDescriptor instead of a file. 2023-12-27 15:20:12 +05:30
MohitMaliFtechiz
5d97055a6a Re-enabled the file picker button in play store button. 2023-12-27 15:13:03 +05:30
MohitMaliFtechiz
ab38adf19c Fixed: Create only one reader and use it everywhere.
* Now we are creating only one reader for both `zimFile`, `assetFileDescriptor` and using for all the features.
2023-12-26 18:19:04 +05:30
Kelson
5fe3f5e9e6
Merge pull request #3617 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
3.9.1
2023-12-25 15:21:22 +01:00
translatewiki.net
922d4d2b35 Localisation updates from https://translatewiki.net. 2023-12-25 15:20:01 +01:00
Kelson
352449fb55
Merge pull request #3630 from kiwix/release-3.9.1
Release 3.9.1
2023-12-25 15:18:35 +01:00
Emmanuel Engelhart
0258c09af4
Update Changelog for 3.9.1 2023-12-25 15:17:37 +01:00
Emmanuel Engelhart
bbc683da88
Bump-up version to 3.9.1 2023-12-25 15:09:18 +01:00
Kelson
3c17704a07
Merge pull request #3618 from kiwix/Issue#3611
Fixed: 3.9.0 Welcome screen does not run, and Kiwix does not prompt for permissions.
2023-12-23 10:26:13 +01:00
MohitMaliFtechiz
0e61bdd7d8 Removed the lint suppression for "NewApi". 2023-12-23 10:25:54 +01:00
MohitMaliFtechiz
cc744b2b74 Fixed: 3.9.0 Welcome screen does not run, and Kiwix does not prompt for permissions.
* This commit addresses the scenario where, for any reason, shared preferences and the database are retained on the device, and the list of ZIM files is visible in the library. However, the `MANAGE_EXTERNAL_PERMISSION` is not found, and when a user attempts to open a file, the application lacks the necessary permission. To improve this scenario, we now prompt the user for permission if it is not available when opening ZIM files from the library.
* Additionally, enhanced the behavior of the swipe refresh layout if the user clicks on the "NO" button in the permission dialog.
2023-12-23 10:25:54 +01:00
Kelson
c6700762ba
Merge pull request #3621 from kiwix/Issue#3620
Fixed: ErrorActivity was not appearing in the non-debug version when the application crashed.
2023-12-23 10:25:28 +01:00
MohitMaliFtechiz
f7e14162fc Fixed: ErrorActivity was not appearing in the non-debug version when the application crashed.
* We are using the `applicationContext` to start the `ErrorActivity`, which is outside the `Activity`. Therefore, to initiate the activity with an external context of the `Activity`, we must include the `FLAG_ACTIVITY_NEW_TASK` flag in the intent. Without this flag, the activity will not start.
2023-12-23 10:25:11 +01:00
Kelson
fa3e2d1aab
Merge pull request #3616 from kiwix/Fixes-#3615
Refactor GitHub Action for Emulator Runner Job Redundancy
2023-12-22 08:29:37 +01:00
MohitMaliFtechiz
394e72be27 Removed the "develop" branch from CI because it no longer exists, rendering it redundant. 2023-12-21 06:32:14 +01:00
MohitMaliFtechiz
a4227f04a1 Fixed incorrect indentation. 2023-12-21 06:32:14 +01:00
gouri-panda
e23e4190f4 updated ram-size 2023-12-21 06:32:14 +01:00
gouri-panda
005434ec13 Fixes #3615 2023-12-21 06:32:14 +01:00
Kelson
2a0d98db1b
Merge pull request #3612 from gouri-panda/Fixes#3609
Removed Debouncing mechanism
2023-12-21 06:31:43 +01:00
MohitMaliFtechiz
3eda149636 Removed unnecessary debouncing code from search functionality.
* Refactored SearchViewModelTest.
2023-12-20 12:30:04 +05:30
Gouri Panda
d0de528dc8 Refactored test 2023-12-20 12:29:52 +05:30
Gouri Panda
5cf726a412 Debouncing mechanism removed 2023-12-20 12:29:43 +05:30
Kelson
e693dd544a
Merge pull request #3614 from kiwix/Fixes-#3613
Fix potential infinite loop in bash script
2023-12-19 04:47:38 +01:00
MohitMaliFtechiz
bdbfe2f3d1 Fixed: $/${} is unnecessary on arithmetic variables error while incrementing the count of retry variable. Since In Bash arithmetic expansion, the $ is not needed when referencing variables see https://www.shellcheck.net/wiki/SC2004 for more details. 2023-12-18 16:56:53 +05:30
gouri-panda
23a984416f
Fixed #3613 2023-12-17 23:18:33 +05:30
Kelson
d0a951c5c5
Merge pull request #3603 from kiwix/update_changelog_for_3.9.0
Added a small change in the CHANGELOG for `3.9.0`.
3.9.0
2023-12-16 09:36:18 +01:00
MohitMaliFtechiz
7356bcd2be Added a small change in the CHANGELOG for 3.9.0. 2023-12-16 09:36:10 +01:00
Kelson
e33edbe0d7
Merge pull request #3602 from kiwix/Issue#3601
Fixed: Made a small improvement to the sidebar entries for "About the app" and "Support app."
2023-12-16 09:19:49 +01:00
MohitMaliFtechiz
dcc8a40751 Increased timeout for waiting the views in ZimHostFragmentTest since on Android 13 it takes time to find the views. 2023-12-15 19:09:22 +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
Kelson
bff68c0967
Merge pull request #3591 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2023-12-14 15:16:36 +01:00
translatewiki.net
6bd22da364 Localisation updates from https://translatewiki.net. 2023-12-14 15:15:52 +01:00
Kelson
226213c015
Merge pull request #3580 from kiwix/Issue#3578
Fixed Zimit archives are not displaying correctly.
2023-12-14 15:06:51 +01:00
MohitMaliFtechiz
ced2182301 Fixed Zimit archives are not displaying correctly.
* The getEntryByPath method was being called twice when retrieving content. Consequently, the initial call returned the content entry URL with additional parameters. Subsequently, when making the second call with the provided URL, it resulted in an "entry not found" exception. This issue prevented the loading of the CSS and content of the Zim file.
* Additionally, the getActualUrl method was primarily implemented to retrieve the redirect entry of the URL provided by the webView. It is unnecessary to invoke this method when obtaining content.
2023-12-14 15:06:29 +01:00
Kelson
977baf588e
Merge pull request #3583 from kiwix/Issue#3576
Fixed Start-up message to inform about the restrictions on the Google Store app to open sideloaded ZIM files.
2023-12-14 15:03:57 +01:00
MohitMaliFtechiz
b572d02e6c Fixed HelpFragmentTest and PlayStoreRestrictionTest on api level 24 2023-12-14 15:03:01 +01:00
MohitMaliFtechiz
90dc8ec292 Enhanced the visibility of the ZIM file on the help screen for testability.
* Introduced test cases for the new functionality to ensure its expected behavior in both variants, such as Play Store and non-Play Store.
* Updated other test cases to accommodate the testing of this new functionality.
2023-12-14 15:03:01 +01:00
MohitMaliFtechiz
c20b40e389 Added a button to the startup message dialog to directly open the Kiwix website for downloading the APK. This will make it easier for the user who wants to download the full APK version of the Kiwix app. 2023-12-14 15:03:01 +01:00
MohitMaliFtechiz
c3a6a52255 Added play store restriction dialog 2023-12-14 15:03:01 +01:00
MohitMaliFtechiz
4d47198b90 Introducing the startup message dialog that shows the restrictions of the Play Store to the user. 2023-12-14 15:03:01 +01:00
MohitMaliFtechiz
a736a7bdea Fixed the URL shown in the help option and made it clickable to directly open our official website for downloading the APK. 2023-12-14 15:03:01 +01:00
MohitMaliFtechiz
7d276658d4 Fixed Start-up message to inform about the restrictions on the Google Store app to open sideloaded ZIM files.
* Showing play store restriction to the users in the help screen in play store variant.
2023-12-14 15:03:01 +01:00
Kelson
2745892a14
Merge pull request #3598 from kiwix/update_changelog_of_3.9.0
Updated `CHANGELOG` for `3.9.0`.
2023-12-14 15:02:33 +01:00
MohitMaliFtechiz
a1ec16a3c9 Updated CHANGELOG for 3.9.0. 2023-12-14 15:01:50 +01:00
Kelson
fb520a3c25
Merge pull request #3599 from kiwix/update_kiwix_version_to_3.9.0
Updated kiwix version to `3.9.0`.
2023-12-14 15:01:09 +01:00
MohitMaliFtechiz
4fdbf540e4 Updated kiwix version to 3.9.0. 2023-12-14 15:00:57 +01:00