• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This is a comment.
2
3   # I bet there will be many of those.
4
5-keep @Annotation class hello.Hello {
6  public *;
7}
8
9-keep @Annotation class hello.Hello {
10  public <methods>;
11}
12
13-keep @Annotation class hello.Hello {
14  public <fields>;
15}
16
17-keep @Annotation class hello.Hello {
18  public <init>();
19}
20
21-keep  @Annotation class hello.Hello {
22  public <init>(hello.***.B, hello.**.A, hello.?);
23}
24
25-keep @Annotation class hello.Hello{  # Missing space before '{' on purpose.
26  public <init>(hello.A);
27}
28
29-keep class hello.Hello {
30  public static static void main(java.lang.String[]);
31}
32
33-keep class hello.Hello {
34  public static static % method(...);
35}
36
37-keep class hello.Hello {
38  public static boolean theFlag;
39}
40
41-keep class hello.Hello {
42  public Hello(...);
43}
44
45-keepnames class hello.Hello extends Hello.Base {
46  public *;
47}
48
49-keepclassmembers class hello.Hello implements @Hep Hello.Base {
50  public *;
51}
52
53-keepclasseswithmembers class hello.Hello {
54  public *;
55}
56
57-keepclassmembernames class hello.Hello {
58  public *;
59}
60
61-keepclasseswithmembernames class hello.Hello {
62  public *;
63}
64
65-keepclassmembers,includedescriptorclasses @com.company.Annotation* public class **JNI {
66  public static *** methodPrefix_*(...);
67}
68
69-keepclassmembernames,includedescriptorclasses @com.company.Annotation* public class * {
70  public <methods>;
71  protected <methods>;
72}
73
74-keepclasseswithmembernames public class **JNI {
75  public final static native <methods>;
76}
77
78-keep class com.company.some.package.MyClass
79
80-keep @interface com.company.SomeAnnotation
81
82-keep @com.company.SomeAnnotation class *
83
84-keepclasseswithmembers class * {
85  @com.company.SomeAnnotation <fields>;
86}
87
88-keepclasseswithmembers class * {
89  @com.company.SomeAnnotation <methods>;
90}
91
92-keep public @com.company.Something class * {
93  public <fields>;
94  public <methods>;
95}
96