Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/schlan/picassocompat
- Owner: schlan
- License: apache-2.0
- Created: 2018-10-06T18:38:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-31T17:56:15.000Z (about 4 years ago)
- Last Synced: 2024-10-14T14:03:11.812Z (4 months ago)
- Topics: android, compatibility, hacktoberfest, java, picasso
- Language: Java
- Homepage:
- Size: 160 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Picasso Compat
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.