如何获取被Proguard方法和类剥离的列表? [英] How to get list of stripped by Proguard methods and classes?

查看:94
本文介绍了如何获取被Proguard方法和类剥离的列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Proguard在优化过程中删除未使用的方法和类.如何获得他们的名单?

Proguard removes unused methods and classes during optimization. How to get list of them?

推荐答案

我认为您应该使用printusage

按照proguard

As per proguard

-printusage [filename] 指定列出输入类文件的无效代码.该列表被打印到标准输出或给定的文件中.例如,您可以列出应用程序的未使用代码.仅在缩小时适用.

-printusage [filename] Specifies to list dead code of the input class files. The list is printed to the standard output or to the given file. For example, you can list the unused code of an application. Only applicable when shrinking.

这是在优化时将删除的代码,尽管您也可以控制优化过程.

This is code which will be removed at the time of optimization, though you can also control optimization process.

这篇关于如何获取被Proguard方法和类剥离的列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆