This repository has been archived by the owner on Feb 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
``` |