上课前的感叹号在ProGuard中有什么作用? [英] What does the exclamation mark before class path do in ProGuard?

查看:99
本文介绍了上课前的感叹号在ProGuard中有什么作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在正在学习Proguard,但对感叹号感到困惑!设置中的类路径之前,例如:

I studying the Proguard now but im confused with the exclamation mark ! before the classpath in the settings, such as:

-保留类!android.support.v7.view.menu. {*;} **

这是什么意思!做?这是否意味着proguard不会保留此类课程?但是如果这样的话,为什么我们需要它,因为proguard会混淆所有类?

what does this "!" do? does it mean that proguard will not keep this class? but if thats so why do we need it since proguard will obfuscate all the classes?

推荐答案

意思是!在许多其他编程语言中是指.它否定了随后的选择.因此,在您的示例中,keep指令将应用于以下软件包/类选择中不是的所有内容.

It means the same thing that ! means in many other programming languages. It negates the selection that follows. So in your example, the keep directive will apply to everything that is not in the following package/class selection.

这篇关于上课前的感叹号在ProGuard中有什么作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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