silent-support-gradle-plugin

Backport new android api calls to support lib versions.

License

License

Categories

Categories

Gradle Build Tools
GroupId

GroupId

me.tatarka.silentsupport
ArtifactId

ArtifactId

silent-support-gradle-plugin
Last Version

Last Version

0.4
Release Date

Release Date

Type

Type

pom
Description

Description

silent-support-gradle-plugin
Backport new android api calls to support lib versions.
Project URL

Project URL

https://github.com/evant/silent-support
Source Code Management

Source Code Management

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

Download silent-support-gradle-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/me.tatarka.silentsupport/silent-support-gradle-plugin/ -->
<dependency>
    <groupId>me.tatarka.silentsupport</groupId>
    <artifactId>silent-support-gradle-plugin</artifactId>
    <version>0.4</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/me.tatarka.silentsupport/silent-support-gradle-plugin/
implementation 'me.tatarka.silentsupport:silent-support-gradle-plugin:0.4'
// https://jarcasting.com/artifacts/me.tatarka.silentsupport/silent-support-gradle-plugin/
implementation ("me.tatarka.silentsupport:silent-support-gradle-plugin:0.4")
'me.tatarka.silentsupport:silent-support-gradle-plugin:pom:0.4'
<dependency org="me.tatarka.silentsupport" name="silent-support-gradle-plugin" rev="0.4">
  <artifact name="silent-support-gradle-plugin" type="pom" />
</dependency>
@Grapes(
@Grab(group='me.tatarka.silentsupport', module='silent-support-gradle-plugin', version='0.4')
)
libraryDependencies += "me.tatarka.silentsupport" % "silent-support-gradle-plugin" % "0.4"
[me.tatarka.silentsupport/silent-support-gradle-plugin "0.4"]

Dependencies

compile (1)

Group / Artifact Type Version
me.tatarka.silentsupport : silent-support jar 0.4

Project Modules

There are no modules declared in this project.

silent-support

Maven Central

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.

Versions

Version
0.4
0.3
0.2
0.1