Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/evant/silent-support
- Owner: evant
- License: apache-2.0
- Created: 2017-05-09T00:44:00.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2020-06-14T22:51:49.000Z (over 4 years ago)
- Last Synced: 2023-07-05T04:13:36.763Z (over 1 year ago)
- Language: Java
- Size: 17.3 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.