是proguard.cfg需要的库项目? [英] Is proguard.cfg needed for library projects?

查看:157
本文介绍了是proguard.cfg需要的库项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我需要应用相同的规则为一个应用程序项目,其依赖库项目,我需要重复proguard.cfg从应用程序的内容到库项目?

Assuming I need to apply the same rules for both an application project and a library project on which it relies, do I need to duplicate the content of proguard.cfg from the application to the library project?

在换句话说,它的应用程序的proguard.cfg接管所有它所依赖的库项目,或必须明确指定为每个库项目的规则?

In other words, does the application's proguard.cfg "take over" all the library projects on which it depends, or must I explicitly specify rules for each of the library projects?

推荐答案

自行库项目不运行ProGuard的,所以他们不使用任何配置。

Library projects by themselves don't run ProGuard, so they don't use any configuration.

应用程序项目混淆了整个code基地,包括任何引用的库,所以需要正确配置应用程序code和库code。

Application projects obfuscate the entire code base, including any referenced libraries, so they need proper configuration for the application code and for the library code.

这篇关于是proguard.cfg需要的库项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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