https://github.com/brucewind/pyhon-lint-autoclean
用python命令清楚android-lint工具到处的lint.xml中的没有被引用到的资源文件。实现删除unused resource
https://github.com/brucewind/pyhon-lint-autoclean
Last synced: 2 months ago
JSON representation
用python命令清楚android-lint工具到处的lint.xml中的没有被引用到的资源文件。实现删除unused resource
- Host: GitHub
- URL: https://github.com/brucewind/pyhon-lint-autoclean
- Owner: BruceWind
- Created: 2016-06-21T11:08:33.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-09T06:18:28.000Z (almost 10 years ago)
- Last Synced: 2025-10-09T09:39:41.495Z (8 months ago)
- Language: Python
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pyhon-lint-autoclean
android开发中往往由于apk包过大,需要删除一些多余的资源文件,来缩小apk
使用lint工具生成了lint.xml之后, 发现里面的文件太多了,lint并没有提供一次性删除unuse resource的文件。
对于一个个手动操作删除文件的方式,始终觉得太傻逼了。
需要一种自动化方案。
这个python代码,可以用命令,帮助我们一次性删除所有的**unuse resource**。
```
sudo python ./autoclean_resource.py -i ./lint-results.xml -e ./excep.xml
```