Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/evant/silent-support

Backport new android api calls to support lib versions.
https://github.com/evant/silent-support

Last synced: about 1 month ago
JSON representation

Backport new android api calls to support lib versions.

Awesome Lists containing this project

README

        

# silent-support

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/me.tatarka.silentsupport/silent-support/badge.svg?style=flat)](https://maven-badges.herokuapp.com/maven-central/me.tatarka.silentsupport/silent-support)

Backport new android api calls to support lib versions.

The support lib provideds many useful wrappers and backports of android apis. However, using them requires
you to change your code. And as you bump your min sdk, you need to change them back to the platform versions.
This plugin will automatically rewrite calls to their support lib equivlents when necssary. The `NewApi` lint
is replaced with a custom lint which will ignore successfully backported calls.

## Usage

Currently requires android gradle plugin `3.0.0-alpha3`

```
buildscript {
repositories {
mavenCentral()
}

dependencies {
classpath "me.tatarka.silentsupport:silent-support-gradle-plugin:0.4"
}
}

apply plugin: 'me.tatarka.silent-support'
```

## Supported Methods/Classes

Right now only calls that can be converted from `foo.bar(baz)` to `FooCompat.bar(foo, baz)` are supported.