11
这是什么规则proguard的意思,例如:双星号在proguard规则中的含义是什么?
-keep class myjava.** {*;}
我明白{*;}部分将意味着在类的所有成员和方法。但是星号2在包名中的含义是什么?
在此先感谢。
这是什么规则proguard的意思,例如:双星号在proguard规则中的含义是什么?
-keep class myjava.** {*;}
我明白{*;}部分将意味着在类的所有成员和方法。但是星号2在包名中的含义是什么?
在此先感谢。
Types in classname, annotationtype, returntype, and argumenttype can contain wildcards: '?' for a single character, '*' for any number of characters (but not the package separator), '**' for any number of (any) characters, '%' for any primitive type, '***' for any type, and '...' for any number of arguments.
我错过了一部分。谢谢。 – Notbad
我还是不明白。那么,不同的@ke @@ annotation.Singleton public class *和-keep @@ annotation.Singleton公共类** –
@BasilMusa如果我理解正确,一个asterix不包括包分离器,所以,例如:com.google。*会保留com.google.test或com.google.anothertest,但不保留* com.google.test.one。双星号会使所有潜在的子包无限增加 – Jon