Lint Cleaner Plugin

A Gradle plugin that helps with the removal of unused resources in Android projects.

License

License

GroupId

GroupId

com.droidtitan
ArtifactId

ArtifactId

lint-cleaner-plugin
Last Version

Last Version

0.3.0
Release Date

Release Date

Type

Type

jar
Description

Description

Lint Cleaner Plugin
A Gradle plugin that helps with the removal of unused resources in Android projects.
Project URL

Project URL

https://github.com/marcoRS/lint-cleaner-plugin
Project Organization

Project Organization

DroidTitan
Source Code Management

Source Code Management

https://github.com/marcoRS/lint-cleaner-plugin

Download lint-cleaner-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/com.droidtitan/lint-cleaner-plugin/ -->
<dependency>
    <groupId>com.droidtitan</groupId>
    <artifactId>lint-cleaner-plugin</artifactId>
    <version>0.3.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.droidtitan/lint-cleaner-plugin/
implementation 'com.droidtitan:lint-cleaner-plugin:0.3.0'
// https://jarcasting.com/artifacts/com.droidtitan/lint-cleaner-plugin/
implementation ("com.droidtitan:lint-cleaner-plugin:0.3.0")
'com.droidtitan:lint-cleaner-plugin:jar:0.3.0'
<dependency org="com.droidtitan" name="lint-cleaner-plugin" rev="0.3.0">
  <artifact name="lint-cleaner-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.droidtitan', module='lint-cleaner-plugin', version='0.3.0')
)
libraryDependencies += "com.droidtitan" % "lint-cleaner-plugin" % "0.3.0"
[com.droidtitan/lint-cleaner-plugin "0.3.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.codehaus.groovy : groovy-all jar 2.2.+

Project Modules

There are no modules declared in this project.

#Lint Cleaner Plugin Maven Central Android Arsenal

Removes unused resources reported by Android lint including strings, colors and dimensions.

Depracated

As of Android Studio 2.0+ you can use Refactor -> Remove Unused Resources

ScreenShot

Usage

Apply the plugin in your build.gradle:

buildscript {
  repositories {
    mavenCentral()
  }
  dependencies {
    classpath 'com.android.tools.build:gradle:0.12.+'
    classpath 'com.droidtitan:lint-cleaner-plugin:0.3.0'
  }
}

apply plugin: 'android'
apply plugin: 'com.droidtitan.lintcleaner'

Finally, to remove unused resources use:

gradle lintClean

Optional Configuration using DSL

lintCleaner {
    // Exclude specific files
    exclude = ['com_crashlytics_export_strings.xml','config.xml']

    // Ability to ignore all resource files. False by default. 
    ignoreResFiles = true
    
    // Default path is build/outputs/lint-results.xml
    lintXmlFilePath = 'path/to/lint-results.xml'
}

Versions

Version
0.3.0