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

Fixed: Zim files are not opening with kiwix when clicking from the storage. #3834

Merged
merged 2 commits into from
May 10, 2024

Conversation

MohitMaliFtechiz
Copy link
Collaborator

@MohitMaliFtechiz MohitMaliFtechiz commented May 9, 2024

Fixes #3832

  • Corrected the deep linking for the content type scheme.
  • Improved the handling of zim files if the user opens from the storage and our application is not in the background.
  • Improved the opening of Zim files when we open directly from storage.
  • Also, added necessary comments on the changes to properly understand why we have done these changes.
  • Added test cases for testing the deep linking in our application.
FixedStorageDeepLink.mp4

Copy link

codecov bot commented May 9, 2024

Codecov Report

Attention: Patch coverage is 78.94737% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 53.83%. Comparing base (ab694c4) to head (1b596ec).

Files Patch % Lines
.../kiwix/kiwixmobile/core/main/CoreReaderFragment.kt 33.33% 1 Missing and 1 partial ⚠️
...bile/nav/destination/reader/KiwixReaderFragment.kt 91.66% 0 Missing and 1 partial ⚠️
...mobile/core/utils/files/DocumentResolverWrapper.kt 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #3834      +/-   ##
============================================
+ Coverage     53.28%   53.83%   +0.55%     
- Complexity     1317     1324       +7     
============================================
  Files           292      292              
  Lines         11067    11078      +11     
  Branches       1471     1471              
============================================
+ Hits           5897     5964      +67     
+ Misses         4194     4131      -63     
- Partials        976      983       +7     

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

@kelson42
Copy link
Collaborator

kelson42 commented May 9, 2024

@MohitMaliFtechiz Please add test for the local loading of external ZIM files.

…orage.

* Corrected the deep linking for `content` type scheme.
* Improved the handling of zim files if user opens from the storage and our application is not in background.
* Improved the opening of Zim files when we open directly from storage.
* Also, added necessary comments on the changes to properly understand why we have done these changes.
* Testing for both `file` and `content` scheme type uris.
@MohitMaliFtechiz
Copy link
Collaborator Author

@kelson42 I have added the test cases, and now this PR is ready for review.

@kelson42 kelson42 merged commit e46e0db into main May 10, 2024
10 checks passed
@kelson42 kelson42 deleted the Fix#3832 branch May 10, 2024 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Zim files are not opening with kiwix when clicking from the storage.
3 participants