What does the exclamation mark before class path do in ProGuard?

守給你的承諾、 提交于 2019-12-10 22:15:04

问题


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

-keep class !android.support.v7.view.menu.{*;}**

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?


回答1:


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.



来源:https://stackoverflow.com/questions/36169430/what-does-the-exclamation-mark-before-class-path-do-in-proguard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!