silent-support

Backport new android api calls to support lib versions.

License

License

GroupId

GroupId

me.tatarka.silentsupport
ArtifactId

ArtifactId

silent-support
Last Version

Last Version

0.4
Release Date

Release Date

Type

Type

pom
Description

Description

silent-support
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

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-jre7 jar 1.1.2
com.android.tools.lint : lint-api jar 26.0.0-alpha3

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