双星号在proguard规则中意味着什么?

Not*_*bad 17 proguard

例如,这个规则对于proguard意味着什么:

-keep class myjava.** {*;}
Run Code Online (Sandbox Code Playgroud)

我理解{*;}部分意味着课堂上的所有成员和方法.但是2星号在包名中意味着什么?

提前致谢.

Sea*_*ght 19

手册:

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.

  • @BasilMusa如果我理解正确,单个asterix不包含包分离器,例如:com.google.*将保留com.google.test或com.google.anothertest但*不是*com.google.test .一.双星号可以无限制地保留所有潜在的子包 (3认同)
  • 因此,如果没有 {*;},您就不会保留成员和方法,那么您到底要保留什么? (2认同)