-
Notifications
You must be signed in to change notification settings - Fork 29
/
proguard-rules.pro
49 lines (40 loc) · 1.27 KB
/
proguard-rules.pro
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
# This is a configuration file for ProGuard.
# http://proguard.sourceforge.net/index.html#manual/usage.html
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-verbose
# Optimization is turned off by default. Dex does not like code run
# through the ProGuard optimize and preverify steps (and performs some
# of these optimizations on its own).
-dontoptimize
-dontpreverify
-keepattributes *Annotation*
-keep public class com.google.vending.licensing.ILicensingService
-keep public class com.android.vending.licensing.ILicensingService
# hide warnings caused by Retrolamdba
-dontwarn java.lang.invoke.*
# native methods
-keepclasseswithmembernames class * {
native <methods>;
}
# keep setters in Views so that animations can still work.
-keepclassmembers public class * extends android.view.View {
void set*(***);
*** get*();
}
# enumeration classes
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
# parcelable object
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
# resources
-keepclassmembers class **.R$* {
public static <fields>;
}
# keep line numbers intact
-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable