We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
mainFileCache
Updated Fresco version from 2.6.0 to 3.4.0. Function ImagePipelineFactory.getMainFileCache() does not exist anymore in 3.4.0.
ImagePipelineFactory.getMainFileCache()
val imageRequest = ImageRequest.fromUri(url) val cacheKey = DefaultCacheKeyFactory .getInstance() .getEncodedCacheKey(imageRequest, null) val resource = ImagePipelineFactory .getInstance() .mainFileCache // Unresolved reference: mainFileCache .getResource(cacheKey) val file = (resource as? FileBinaryResource?)?.file
How do I change the above code to work in 3.4.0? It would be helpful if the function was marked as deprecated before completely removing it.
The text was updated successfully, but these errors were encountered:
It looks like this breaking change was introduced in 3.3.0 by bf42e89.
3.3.0
I couldn't find any documentation on the current recommended approach, but this seems to work:
val resource = ImagePipelineFactory .getInstance() .diskCachesStoreSupplier .get() .mainFileCache .getResource(cacheKey)
Sorry, something went wrong.
It looks like this breaking change was introduced in 3.3.0 by bf42e89. I couldn't find any documentation on the current recommended approach, but this seems to work: val resource = ImagePipelineFactory .getInstance() .diskCachesStoreSupplier .get() .mainFileCache .getResource(cacheKey)
Thank you, will try this code.
No branches or pull requests
Description
Updated Fresco version from 2.6.0 to 3.4.0.
Function
ImagePipelineFactory.getMainFileCache()
does not exist anymore in 3.4.0.Reproduction
Solution
How do I change the above code to work in 3.4.0?
It would be helpful if the function was marked as deprecated before completely removing it.
Additional Information
The text was updated successfully, but these errors were encountered: