This component uses DriveChain’s application hooks to automatically initialize and configure Fresco using OkHttp for network calls.
Add the dependency to your build.gradle
file
compile "com.github.InkApplications.DriveChain:fresco-bridge:2.+"
Add the module to your application component:
@Singleton
@Component(modules = arrayOf(
FrescoBridgeModule::class
))
interface ApplicationComponent {
// ...
}
This requires that you have an OkHTTP client set up as a dependency. If you don’t have one set up already, you can install the [OkHttp Bridge] for that as well:
Everything is set up for you. Start using Fresco exactly how you normally would.