An Android library for managing images and the memory they use.
Fresco 2.1.0 comes with tons of improvements, including a Java-only Fresco version.
NativeLoaderDelegate
and call NativeLoader.init(yourDelegate)
before Fresco is initialized.ProducerListener2
and RequestListener2
. They give you significantly more flexibility since they allow you to access more image information.implementation('com.facebook.fresco:fresco:2.1.0') {
exclude group: 'com.facebook.soloader', module: 'soloader'
exclude group: 'com.facebook.fresco', module: 'soloader'
exclude group: 'com.facebook.fresco', module: 'nativeimagefilters'
exclude group: 'com.facebook.fresco', module: 'nativeimagetranscoder'
exclude group: 'com.facebook.fresco', module: 'memory-type-native'
exclude group: 'com.facebook.fresco', module: 'imagepipeline-native'
}
implementation('com.facebook.fresco:fresco:2.1.0') {
exclude group: 'com.facebook.soloader', module: 'soloader'
exclude group: 'com.facebook.fresco', module: 'soloader'
}
We bumped the major version since Fresco is now using AndroidX support libraries. If you are still using the previous support library, please use version 1.13.0 until you've migrated to AndroidX.
We've open sourced our Flipper images plugin, which makes it easy for you to debug images within your application. Take a look at the Flipper documentation here: https://fbflipper.com/docs/features/images-plugin.html
It also allows you to track unclosed CloseableReference
s if you're using the image pipeline directly.
Highlights:
CloseableReference
leak tracking. You can hook up your own listener to track unclosed references.Full changelog: https://github.com/facebook/fresco/compare/v1.13.0...v2.0.0
Thanks to the following for their pull requests which are included in this release: @otopba, @lpy and @kexuejin
CloseableRefererence
s. You can hook up your custom leak handler for unclosed CloseableReference
s which is triggered when a reference is GCed without being explicitly closed.native-imagetranscoder
) a6b47b9Thanks to @dulmandakh for your pull request!
native-filters
)Thanks to the following for their pull requests which are included in this release: @Crysis21, @JuniperPhoton, @dryganets, @Yrlec, @s1rius, @qhyuan1992, @xjy2061, @zjupure
Thanks to the following for their pull requests which are included in this release: @cucbin, @chibatching, @mariotaku, @hetovar, @Naman-Bhalla, @woyunowuyuda, @hearsilent
Inlined ProGuard rules such that you no longer need to manually copy-over the Fresco proguard file (thanks @gengjiawen). If you are manually adding Fresco-specific ProGuard files in your Gradle files, you can now remove them
Added isSameImageRequest()
to DraweeController
ImageRequest
to SimpleDraweeView(53c6151d1e5fd4ceb4733c8eecec86b2f4214632 (https://github.com/facebook/fresco/commit/53c6151d1e5fd4ceb4733c8eecec86b2f4214632), thanks @bkpavan)HttpUrlConnection
network fetcher (005f38a797f2ad9ed4d138df45f44835144c32fd, thanks @jnawaz)Thanks to the following for their pull requests which are included in this release: @bkpavan, @eldk, @gengjiawen, @howardpang, @jnawaz, @NightlyNexus, @sophiebits!
Version 1.8.1 is a bug-fix release following the main 1.8.0 release. In particular, it addresses the following issues: