Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
plnice committed Feb 3, 2019
1 parent e8a36d2 commit bc2c420
Showing 1 changed file with 58 additions and 1 deletion.
59 changes: 58 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,58 @@
# can-i-drop-jetifier
# Can I drop Jetifier?

Checks whether there are any dependencies using support library instead of AndroidX artifacts.

If you migrated to AndroidX, you probably have Jetifier tool enabled that converts dependencies that still depend on old artifacts to operate on AndroidX classes. Since more and more libraries are migrated to AndroidX, at some point there will be no need to have this tool enabled. This plugin can be used to identify which of the libraries you are using need to be migrated to AndroidX or bumped if the new version is already there.

## Setup

Using Gradle Plugins Portal:

```
plugins {
id("com.github.plnice.canidropjetifier") version "0.1"
}
```

## Usage

Jetifier tool must be temporarily disabled to make this plugin work correctly. It can be done when calling the plugin's task:

```
./gradlew -Pandroid.enableJetifier=false canIDropJetifier
```

Example output:

```
========================================
Project sample
========================================
Cannot drop Jetifier due to following dependencies:
* com.android.support:cardview-v7:28.0.0
* com.squareup.leakcanary:leakcanary-android:1.6.3
\-- com.squareup.leakcanary:leakcanary-analyzer:1.6.3
\-- com.android.support:support-annotations:28.0.0
\-- com.android.support:support-core-utils:26.0.0
```

## License

```
Copyright 2019 Miłosz Lewandowski
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```

0 comments on commit bc2c420

Please sign in to comment.