Search code examples
proguard

What does the double asterisk mean in proguard rules?


What does this rule mean in proguard for example:

-keep class myjava.** {*;}

I understand {*;} part would mean all members and methods in the class. But what does the 2 asterisk mean in the package name?.

Thanks in advance.


Solution

  • From the manual:

    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.