Android Studio資源自動清理工具 - Lint Cleaner Plugin

Android項目隨着迭代時間愈來愈長,代碼廢棄資源也會愈來愈多。 android

Lint Cleaner Plugin這個github源上小工具,簡單易用,省去了很多麻煩。git

首先,配置一下app的build.gradle文件github

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

再配置module的build.gradle文件app

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

而後在項目根目錄下,執行清理命令maven

gradle lintClean

或者工具

./gradlew lintClean

文章參考自:https://github.com/marcoRS/lint-cleaner-plugingradle

相關文章
相關標籤/搜索