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

[WIP] Get cached image path with source uri #557

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dolsem
Copy link

@dolsem dolsem commented Sep 10, 2019

This PR adds a new static method getCachePath that takes image source uri and returns a promise of its cached file path. If the image has not been stored in cache, it returns null.

I've only done the iOS part, haven't done Android and haven't updated the docs. I probably won't have the time to finish this any time soon. But if someone wants to contribute to this feature, you can base it off my changes.

Solves #293.

@codecov
Copy link

codecov bot commented Sep 10, 2019

Codecov Report

Merging #557 into master will increase coverage by 0.88%.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #557      +/-   ##
========================================
+ Coverage   94.11%    95%   +0.88%     
========================================
  Files           1      1              
  Lines          17     20       +3     
========================================
+ Hits           16     19       +3     
  Misses          1      1
Impacted Files Coverage Δ
src/index.js 95% <100%> (+0.88%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 56c8eff...f6c9b93. Read the comment docs.

@codecov
Copy link

codecov bot commented Sep 10, 2019

Codecov Report

Merging #557 into master will increase coverage by 0.26%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #557      +/-   ##
==========================================
+ Coverage   94.73%   95.00%   +0.26%     
==========================================
  Files           1        1              
  Lines          19       20       +1     
==========================================
+ Hits           18       19       +1     
  Misses          1        1              
Impacted Files Coverage Δ
src/index.js 95.00% <100.00%> (+0.26%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4fa62bb...f6c9b93. Read the comment docs.

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.

1 participant