프로젝트
GitHub에서 보기
marcoRS/lint-cleaner-plugin
소개
Android 프로젝트에서 사용되지 않는 리소스를 제거하는 Gradle 플러그인입니다.
학습 및 교육측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalRemoves 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

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'
}
관련 프로젝트 살펴보기
불러오는 중…