图书馆项目是否需要 proguard.cfg? [英] Is proguard.cfg needed for library projects?

查看:23
本文介绍了图书馆项目是否需要 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.

应用程序项目混淆了整个代码库,包括任何引用的库,因此它们需要对应用程序代码和库代码进行适当的配置.

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天全站免登陆