huangcm
2025-08-25 2f2fd745743ad500687c6985119d523146531958
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
# We have moved -dontobfuscate and -dontoptimize to the makefiles.
# dex does not like code run through proguard optimize and preverify steps.
# -dontoptimize
-dontpreverify
 
# Don't obfuscate. We only need dead code striping.
# -dontobfuscate
 
# Add this flag in your package's own configuration if it's needed.
#-flattenpackagehierarchy
 
# Keep classes and methods that have the guava @VisibleForTesting annotation
-keep @**.VisibleForTesting class *
-keepclassmembers class * {
@**.VisibleForTesting *;
}
 
# Understand the @Keep support annotation.
-keep class android.support.annotation.Keep
-keep class androidx.annotation.Keep
 
-keep @android.support.annotation.Keep class * {*;}
-keep @androidx.annotation.Keep class * {*;}
 
-keepclasseswithmembers class * {
    @android.support.annotation.Keep <methods>;
}
 
-keepclasseswithmembers class * {
    @androidx.annotation.Keep <methods>;
}
 
-keepclasseswithmembers class * {
    @android.support.annotation.Keep <fields>;
}
 
-keepclasseswithmembers class * {
    @androidx.annotation.Keep <fields>;
}
 
-keepclasseswithmembers class * {
    @android.support.annotation.Keep <init>(...);
}
 
-keepclasseswithmembers class * {
    @androidx.annotation.Keep <init>(...);
}
 
-include proguard_basic_keeps.flags