Skip to content

schlan/picassocompat

Repository files navigation

Picasso Compat

Build Status Picasso Compat Version License

Provides a thin compatibility later around the Picasso 2.5.2 and 2.7 APIs. It's build for libraries that rely on Picasso. By using it, the host app can either pull in Picasso 2.5.2 or 2.7. PicassoCompat detects the version of Picasso and forwards all calls to it. With this, it wouldn't be necessary to have a compatibility release.

Installation

implementation group: 'com.sebchlan.picassocompat', name: 'picassocompat', version: '1.2.1'

By default PicassoCompat depends on Picasso v2.5.2.

Usage

Like Picasso PicassoCompat provides two main entry points:

// Shared Picasso instance
PicassoCompat init = PicassoBridge.init(context);

// Builder for creating a customized Picasso instance
PicassoCompat.Builder builder = PicassoBridge.builder(context);

The remaining usage is identical to OG Picasso.

Enjoy.