forked from CyanogenMod/android_packages_apps_CMFileManager
-
Notifications
You must be signed in to change notification settings - Fork 1
/
proguard.flags
59 lines (51 loc) · 1.79 KB
/
proguard.flags
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
#configuration
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
#keep common classes
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
#keep all classes that might be used in XML layouts
-keep public class * extends android.view.View {
public <init>(android.content.Context);
public <init>(android.content.Context, android.util.AttributeSet);
public <init>(android.content.Context, android.util.AttributeSet, int);
public void set*(...);
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}
#keep callback methods (onClick, onOption...)
-keepclassmembers class * extends android.content.Context {
public void *(android.view.View);
public void *(android.view.MenuItem);
}
#keep parcelable constructors
-keepclassmembers class * implements android.os.Parcelable {
static android.os.Parcelable$Creator CREATOR;
}
#keep all resource identifiers
-keep class **.R$*
-keepclassmembers class **.R$* {
public static <fields>;
}
#keep StorageManager access
-keep public class android.os.storage.StorageManager {
android.os.storage.StorageVolume[] getVolumeList();
}
#keep preference's classes
-keep public class * extends android.preference.PreferenceFragment {
public <init>(...);
}
-keep public class * extends android.preference.Preference {
public <init>(...);
}