centralized image caching & retrieval
Project changes:
- Added SDWebImage fork as a submodule, which means you now need to run git submodule update --init --recursive to grab the files needed by the project (which CocoaPods integrates into the project like any other Pod)...
- Luckily make pod will now do this for you
Code changes:
- Wrote WMFImageController to manage fetching, caching, and downloading images (on top of SDWebImageManager)
- Rewrote WMFArticleImageProtocol to use WMFImageController
What works right now:
- Lead & article images in the webview (except face detection, see below)
- Pull to refresh loading from the cache
- Image gallery (with GIFS!)
What doesn't work (yet):
- GIFs in the webview
- Deleting images when articles are removed from disk
- Face detection: need to refactor that so it's not coupled to MWKDataStore
- Keeping images for saved pages. They'll stick around until SDWebImage cleans them up, so we need to skip images for saved pages. (T101527)
Bug: T95350
Change-Id: I98037e1637fd8d6534a570480edc0ab1556fb44b