31 Commits

Author SHA1 Message Date
MohitMali
ec3095e484 Improved code to show proper error message to the user why the server is failed to start.
* if we run 2 servers at once (if in `app` server is already running then we can not run the server on the `custom` module since we can not run 2 servers on the same IP.) So for this, we have improved our code to show the proper error message so the user will know why the server is not running.
2023-10-14 09:59:39 +02:00
MohitMali
94d592f545 Reintroduce wifi hotspot feature in custom apps.
* Moved wifi hotspot related files to core module to use hotspot functionality in both app and custom module.
* Moved permission in core manifest to access them in both modules.
* Removed some unnecessary files which is now no longer in use.
2023-10-14 09:59:39 +02:00
MohitMaliFtechiz
221f84b2bf Improved the "load more" functionality for search and introduced several other enhancements:
* Added logging for cases where the `ZimFileReader` failed to find an entry, failed to load an asset, and more.
* Significantly improved the "load more" functionality: Now, if the user is near the end of the list, we start loading new search results. This enhancement enhances the user experience by reducing wait times for new search results.
* Added references in the `KiwixServer` class to help developers understand why we are keeping the library object.
* Implemented test cases to thoroughly test the `getMimeTypeFromUrl()` function in the ZimFileReader class.
* Enhanced the search functionality by consolidating the use of a single viewModelScope instead of multiple coroutines, reducing the potential for future issues.
2023-09-18 19:13:20 +02:00
MohitMali
adea940f72 Introduced an endless suggestion list in search.
* With the integration of libkiwix12, we now receive full results based on the search term. Previously, we were loading the entire list, but we have now implemented pagination to enhance the search functionality.
* The libkiwix provides us with a Search object, which enables us to obtain the suggestion list using start and end indices. Consequently, we have modified our `ZimSearchResultGenerator` code to return the `Search` object instead of a list.
* To accommodate the changes, we have updated the return type of `SearchResultGenerator` to a nullable Search. This change is necessary because we initialize the `SearchState` when the search is initialized in `SearchViewModel`, and initially, we do not have the Search object available. The nullable return type allows us to pass the Search object when it becomes available.
2023-09-18 19:13:20 +02:00
MohitMali
161337a818 Start using libkiwix 11.0.0 from maven, loading wrappers .so files for fixing the jni crash which we have missed loading in libkiwix 2023-09-18 19:13:20 +02:00
MohitMali
c1cbebd64f Enhanced ZIM file support for Android 10 and above devices, including USB-OTG integration.
* Previously we can only open zim files from `USB-OTG` in android 10 and below devices, because `context.getExternalFilesDirs("")` does not provide the USB path in android 10 and above devices for security reasons. There is no direct way to access the USB-OTG on these devices, but USB-OTG are mounted under the `/mnt/media_rw` directory, so now we are directly using this to open zim files from USB drive for android 10 and above devices.
2023-08-29 21:23:15 +07:00
MohitMali
903a40938a Added service component and module for injection in core module and added all controls from notification 2023-03-01 18:28:57 +05:30
MohitMaliFtechiz
32d672fd72 merging fixes with develop 2022-06-20 13:23:44 +05:30
gouri-panda
246b8cc38c #2418 lint fixes 2020-11-02 15:49:16 +05:30
gouri-panda
d28d00ea66 #2418 resolved conflicts 2020-11-02 15:02:21 +05:30
gouri-panda
5f00cede4b #2418 lint fixes 2020-11-02 14:57:56 +05:30
gouri-panda
765b69a714 #2418 resolve conflicts 2020-10-31 14:51:02 +05:30
gouri-panda
a261450d9d #2418 lint fixed by deketBaseline 2020-10-31 14:37:14 +05:30
Abdul Wadood
6025aab5fc Merge branch 'develop' into feature/abdulwd/1826-kotlin-convert-compatfindactionmodecallback 2020-10-22 14:17:40 +05:30
Seán Mac Gillicuddy
dd387e2e8f
Merge pull request #2452 from kiwix/feature/abdulwd/2402-convert-kotlin-tabsadapter
Covert TabsAdapter.java to Kotlin
2020-10-22 09:13:41 +01:00
Abdul Wadood
234c569cbf Covert CompatFindActionModeCallback.java to Kotlin 2020-10-22 11:16:45 +05:30
Abdul Wadood
fdd9566ac8 Move init block to top
Get rid of result var
2020-10-21 14:28:49 +05:30
Abdul Wadood
8aa2b2bc7e Covert TabsAdapter.java to Kotlin 2020-10-20 22:50:24 +05:30
Abdul Wadood
d3190170f9 Covert OnSwipeTouchListener.java to Kotlin 2020-10-20 22:21:04 +05:30
gouri-panda
e125796c65 #2324 converted HotspotNotificationManagerToKotlin 2020-09-30 15:19:04 +05:30
Sean Mac Gillicuddy
fb475d5078 #2375 Fix Back Navigation in custom apps - move common functionality down - use same NavHostFragment - align packages in core 2020-09-24 12:21:36 +01:00
Sean Mac Gillicuddy
91b09bda92 Merge remote-tracking branch 'origin/develop' into release/3.3.2 2020-07-02 11:40:43 +01:00
Sean Mac Gillicuddy
726679a112 bump library versions 2020-07-01 10:08:25 +01:00
Sean Mac Gillicuddy
b62d5a0005 #2157 Cannot resume download after pausing - remove pause button in notification 2020-06-29 12:45:25 +01:00
Sean Mac Gillicuddy
9786066e14 #2045 Create Send Diagnostic Report screen - add screen 2020-04-29 12:34:45 +01:00
Sean Mac Gillicuddy
3a2ac5f064 #1659 Autoload next video - replace content provider with WebResource input streams 2020-03-30 13:17:50 +01:00
Mohamed Sameh
0f605ed6ac issue #1350: fix SearchActivity architecture 2020-03-17 22:04:30 +02:00
Mohamed Sameh
781c475697 issue #1350: Add search option in tab mode to open in a new tab 2020-03-05 12:42:54 +02:00
Sean Mac Gillicuddy
f4ada8ce0b Merge remote-tracking branch 'origin/develop' into feature/macgills/detekt
# Conflicts:
#	core/src/main/java/org/kiwix/kiwixmobile/core/main/KiwixTextToSpeech.java
2020-02-21 10:37:31 +00:00
Sean Mac Gillicuddy
d743430dc3 Merge branch 'develop' into feature/macgills/detekt
# Conflicts:
#	.travis.yml
2020-02-14 09:53:56 +00:00
Sean Mac Gillicuddy
80c3276786 Add detekt 2019-12-11 14:44:26 +00:00