OSDN Git Service

Update URLs of native bridge libraries again
[android-x86/packages-apps-Settings.git] / proguard.flags
1 # This is a configuration file for ProGuard.
2 # http://proguard.sourceforge.net/index.html#manual/usage.html
3
4 # Keep all Fragments in this package, which are used by reflection.
5 -keep public class com.android.settings.** extends android.app.Fragment
6 -keep public class com.android.settings.cyanogenmod.superuser.**
7 -keep public class com.koushikdutta.**
8
9 # We want to keep methods in Activity that could be used in the XML attribute onClick.
10 -keepclassmembers class * extends android.app.Activity {
11     public void *(android.view.View);
12     public void *(android.view.MenuItem);
13 }
14
15 # Keep setters in Views so that animations can still work.
16 -keep public class * extends android.view.View {
17     public <init>(android.content.Context);
18     public <init>(android.content.Context, android.util.AttributeSet);
19     public <init>(android.content.Context, android.util.AttributeSet, int);
20
21     void set*(***);
22     *** get*();
23 }
24
25 # Keep classes that may be inflated from XML.
26 -keepclasseswithmembers class * {
27     public <init>(android.content.Context, android.util.AttributeSet);
28 }
29 -keepclasseswithmembers class * {
30     public <init>(android.content.Context, android.util.AttributeSet, int);
31 }
32
33 # Keep annotated classes or class members.
34 -keep @android.support.annotation.Keep class *
35 -keepclassmembers class * {
36     @android.support.annotation.Keep *;
37 }
38
39 # Keep specific fields used via reflection.
40 -keepclassmembers class * {
41     public static ** SEARCH_INDEX_DATA_PROVIDER;
42     public static ** SUMMARY_PROVIDER_FACTORY;
43 }