kiwix-android icon indicating copy to clipboard operation
kiwix-android copied to clipboard

Fix Storage permission on Android 13

Open MohitMaliFtechiz opened this issue 2 years ago • 3 comments

Fixes #3081

MohitMaliFtechiz avatar Sep 19 '22 10:09 MohitMaliFtechiz

@MohitMaliDeveloper CI seems to fail :(

kelson42 avatar Sep 19 '22 12:09 kelson42

Codecov Report

Base: 48.48% // Head: 48.57% // Increases project coverage by +0.08% :tada:

Coverage data is based on head (89e923e) compared to base (a0449ef). Patch coverage: 9.09% of modified lines in pull request are covered.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #3082      +/-   ##
=============================================
+ Coverage      48.48%   48.57%   +0.08%     
  Complexity        25       25              
=============================================
  Files            299      299              
  Lines           9723     9726       +3     
  Branches        1177     1187      +10     
=============================================
+ Hits            4714     4724      +10     
+ Misses          4464     4455       -9     
- Partials         545      547       +2     
Impacted Files Coverage Δ
...le/nav/destination/library/LocalLibraryFragment.kt 50.61% <0.00%> (+2.94%) :arrow_up:
...a/org/kiwix/kiwixmobile/core/main/AddNoteDialog.kt 0.00% <0.00%> (ø)
.../kiwix/kiwixmobile/core/main/CoreReaderFragment.kt 30.42% <0.00%> (-0.07%) :arrow_down:
...wix/kiwixmobile/core/settings/CorePrefsFragment.kt 46.77% <0.00%> (-0.51%) :arrow_down:
...ix/kiwixmobile/custom/main/CustomReaderFragment.kt 0.00% <0.00%> (ø)
...e/nav/destination/library/OnlineLibraryFragment.kt 32.79% <7.69%> (-0.41%) :arrow_down:
...wix/kiwixmobile/core/utils/SharedPreferenceUtil.kt 59.34% <25.00%> (-0.89%) :arrow_down:
...rg/kiwix/kiwixmobile/core/utils/files/FileUtils.kt 25.65% <33.33%> (-0.14%) :arrow_down:
...rg/kiwix/kiwixmobile/core/search/SearchFragment.kt 64.04% <0.00%> (+2.24%) :arrow_up:
... and 1 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov[bot] avatar Sep 19 '22 13:09 codecov[bot]

@MohitMaliDeveloper CI seems to fail :(

hi @kelson42 , I just rerun it and its green now.

MohitMaliFtechiz avatar Sep 19 '22 13:09 MohitMaliFtechiz

Hi @gouri-panda I think this PR desserves a new review.

kelson42 avatar Sep 29 '22 14:09 kelson42

@kelson42 It would be best if we do this after #2944 and also it would be best if we add tests for this in the PR as well.

gouri-panda avatar Sep 29 '22 15:09 gouri-panda

@kelson42 It would be best if we do this after #2944 and also it would be best if we add tests for this in the PR as well.

hi @gouri-panda ,

Actually we are not taking storage permission on android 13 because we are saving zim files inside app specific directory and for test case i think #3084 in this PR we added InitialDownloadTest will works for this issue.

According to https://github.com/kiwix/kiwix-android/issues/3081#issue-1377421856 after clicking on download button it's showing a dialog, so for this issue our InitialDownloadTest will works.

MohitMaliFtechiz avatar Sep 30 '22 07:09 MohitMaliFtechiz

@gouri-panda not sure aaut the status here hobenestly!

kelson42 avatar Oct 04 '22 07:10 kelson42

@gouri-panda ???

kelson42 avatar Oct 29 '22 10:10 kelson42

@MohitMaliDeveloper There are some conflict files here :)

gouri-panda avatar Nov 03 '22 09:11 gouri-panda

@MohitMaliDeveloper There are some conflict files here :)

hi @gouri-panda , i have resolved the conflicts.

MohitMaliFtechiz avatar Nov 04 '22 06:11 MohitMaliFtechiz

@MohitMaliDeveloper Thanks!

gouri-panda avatar Nov 04 '22 09:11 gouri-panda

@gouri-panda Still good for you to merge?

kelson42 avatar Nov 23 '22 12:11 kelson42

Ok @kelson42 . Let me review again!

gouri-panda avatar Nov 23 '22 12:11 gouri-panda