Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/schlan/picassocompat

Picasso Compat
https://github.com/schlan/picassocompat

android compatibility hacktoberfest java picasso

Last synced: 3 months ago
JSON representation

Picasso Compat

Awesome Lists containing this project

README

        


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

```java
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:

```java

// 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.