forked from samkenxstream/SAMkenXFireBase-android-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default-preguard.txt
62 lines (54 loc) · 2.01 KB
/
default-preguard.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
-keepparameternames
-renamesourcefileattribute SourceFile
-keepattributes Exceptions,InnerClasses,Signature,Deprecated,
SourceFile,LineNumberTable,*Annotation*,EnclosingMethod
# Keep the classes/members we need for client functionality.
-keep @interface androidx.annotation.Keep
-keep @androidx.annotation.Keep class *
-keepclasseswithmembers class * {
@androidx.annotation.Keep <fields>;
}
-keepclasseswithmembers class * {
@androidx.annotation.Keep <methods>;
}
# Keep the classes/members we need for client functionality.
-keep @interface com.google.android.gms.common.annotation.KeepForSdk
-keep @com.google.android.gms.common.annotation.KeepForSdk class *
-keepclasseswithmembers class * {
@com.google.android.gms.common.annotation.KeepForSdk <fields>;
}
-keepclasseswithmembers class * {
@com.google.android.gms.common.annotation.KeepForSdk <methods>;
}
# Keep the public API
-keep @interface com.google.firebase.annotations.PublicApi
-keep @com.google.firebase.annotations.PublicApi class *
-keepclasseswithmembers class * {
@com.google.firebase.annotations.PublicApi <fields>;
}
-keepclasseswithmembers class * {
@com.google.firebase.annotations.PublicApi <methods>;
}
# Keep Enum members implicitly
-keepclassmembers @androidx.annotation.Keep public class * extends java.lang.Enum {
public <fields>;
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keepclassmembers @com.google.android.gms.common.annotation.KeepForSdk class * extends java.lang.Enum {
public <fields>;
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keepclassmembers @com.google.firebase.annotations.PublicApi class * extends java.lang.Enum {
public <fields>;
public static **[] values();
public static ** valueOf(java.lang.String);
}
# Implicitly keep methods inside annotations
-keepclassmembers @interface * {
public <methods>;
}
# Using names starting with "zz"
-classobfuscationdictionary obfuscate_dict.txt
-obfuscationdictionary obfuscate_dict.txt