No Description

proguard.flags 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # This is a configuration file for ProGuard.
  2. # http://proguard.sourceforge.net/index.html#manual/usage.html
  3. # Keep all Fragments in this package, which are used by reflection.
  4. -keep public class com.android.settings.** extends android.app.Fragment
  5. # Keep all preference controllers needed by slice and DashboardFragment.
  6. -keep class * extends com.android.settings.core.BasePreferenceController {
  7. *;
  8. }
  9. -keep class * extends com.android.settings.core.TogglePreferenceController {
  10. *;
  11. }
  12. # We want to keep methods in Activity that could be used in the XML attribute onClick.
  13. -keepclassmembers class * extends android.app.Activity {
  14. public void *(android.view.View);
  15. public void *(android.view.MenuItem);
  16. }
  17. # Keep setters in Views so that animations can still work.
  18. -keep public class * extends android.view.View {
  19. public <init>(android.content.Context);
  20. public <init>(android.content.Context, android.util.AttributeSet);
  21. public <init>(android.content.Context, android.util.AttributeSet, int);
  22. void set*(***);
  23. *** get*();
  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. -keepclasseswithmembers class * {
  33. public <init>(android.content.Context, android.util.AttributeSet, int, int);
  34. }
  35. # Keep annotated classes or class members.
  36. -keep @android.support.annotation.Keep class *
  37. -keepclassmembers class * {
  38. @android.support.annotation.Keep *;
  39. }
  40. # Keep specific fields used via reflection.
  41. -keepclassmembers class * {
  42. public static ** SEARCH_INDEX_DATA_PROVIDER;
  43. public static ** SUMMARY_PROVIDER_FACTORY;
  44. }
  45. -keep class android.support.v4.app.CoreComponentFactory