Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reintroduced the Fetch Library for Downloading ZIM files. #4143

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

MohitMaliFtechiz
Copy link
Collaborator

@MohitMaliFtechiz MohitMaliFtechiz commented Dec 19, 2024

Fixes #4140
Fixes #4138
Fixes #4106

  • Added Fetch library in our project for downloading the ZIM files.
  • Added fetch library in credits.html, and README.md files.
  • Removed the DownloadManager from our project.
  • Refactored the code, and test cases to use the Fetch library.
  • Fixed: Downloading starts very slowly on Android 14+.
  • Upgraded Fetch to 3.4.1.
  • Upgraded Kotlin kotlin-stdlib from JDK7 to JDK8.
  • Upgraded Kotlin version to 2.0.0 to support the latest Fetch library.
  • Upgraded Dagger to 2.53.1.
  • Upgraded ObjectBox to 4.0.3.
  • Notification now shows "Pause" and "Resume" buttons instead of "pause" and "resume".
  • Fixed: Notification buttons were not working on Android 13 and above.
  • Fixed: Downloading was not working in the background. Added a foreground service for Fetch so that downloading will continue in the background.

@MohitMaliFtechiz MohitMaliFtechiz marked this pull request as draft December 19, 2024 11:37
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

Attention: Patch coverage is 58.06452% with 156 lines in your changes missing coverage. Please review.

Project coverage is 56.77%. Comparing base (4b8fe6d) to head (a48f904).

Files with missing lines Patch % Lines
...wnloader/downloadManager/DownloadMonitorService.kt 27.15% 99 Missing and 11 partials ⚠️
...ownloadManager/FetchDownloadNotificationManager.kt 77.27% 15 Missing and 5 partials ⚠️
...g/kiwix/kiwixmobile/core/data/KiwixRoomDatabase.kt 14.28% 18 Missing ⚠️
...wnloader/downloadManager/DownloadManagerMonitor.kt 79.16% 4 Missing and 1 partial ⚠️
...loader/downloadManager/DownloadManagerRequester.kt 83.33% 1 Missing and 1 partial ⚠️
...rg/kiwix/kiwixmobile/core/main/CoreMainActivity.kt 94.11% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #4143      +/-   ##
============================================
- Coverage     57.73%   56.77%   -0.96%     
- Complexity     1496     1516      +20     
============================================
  Files           313      312       -1     
  Lines         13324    13285      -39     
  Branches       1707     1644      -63     
============================================
- Hits           7692     7542     -150     
- Misses         4507     4612     +105     
- Partials       1125     1131       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kelson42
Copy link
Collaborator

kelson42 commented Dec 23, 2024

@MohitMaliFtechiz Let me know when this is ready to merge

Would be great to confirm also that scenarios fixed in 2.13.0 are still fixed.

* Upgraded Fetch to 3.4.1.
* Upgraded Kotlin kotlin-stdlib from JDK7 to JDK8.
* Upgraded Kotlin version to 2.0.0 to support the latest Fetch library.
* Upgraded Dagger to 2.53.1.
* Upgraded ObjectBox to 4.0.3.
* Notification now shows "Pause" and "Resume" buttons instead of "pause" and "resume".
* Fixed: Notification buttons were not working on Android 13 and above.
* Fixed: Downloading was not working in the background. Added a foreground service for Fetch so that downloading will continue in the background.
@MohitMaliFtechiz MohitMaliFtechiz marked this pull request as ready for review December 24, 2024 12:01
@MohitMaliFtechiz
Copy link
Collaborator Author

MohitMaliFtechiz commented Dec 24, 2024

@kelson42 This PR is ready for review.

Would be great to confirm also that scenarios fixed in 2.13.0 are still fixed.

The previous fixes are working fine with these changes.

@kelson42
Copy link
Collaborator

@MohitMaliFtechiz This is great, will wait feedbacka from users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants