proguard.flags 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. -keep,allowshrinking,allowoptimization class com.android.launcher3.** {
  2. *;
  3. }
  4. -keep class com.android.launcher3.allapps.AllAppsBackgroundDrawable {
  5. public void setAlpha(int);
  6. public int getAlpha();
  7. }
  8. -keep class com.android.launcher3.BaseRecyclerViewFastScrollBar {
  9. public void setThumbWidth(int);
  10. public int getThumbWidth();
  11. public void setTrackWidth(int);
  12. public int getTrackWidth();
  13. }
  14. -keep class com.android.launcher3.BaseRecyclerViewFastScrollPopup {
  15. public void setAlpha(float);
  16. public float getAlpha();
  17. }
  18. -keep class com.android.launcher3.ButtonDropTarget {
  19. public int getTextColor();
  20. }
  21. -keep class com.android.launcher3.CellLayout {
  22. public float getBackgroundAlpha();
  23. public void setBackgroundAlpha(float);
  24. }
  25. -keep class com.android.launcher3.CellLayout$LayoutParams {
  26. public void setWidth(int);
  27. public int getWidth();
  28. public void setHeight(int);
  29. public int getHeight();
  30. public void setX(int);
  31. public int getX();
  32. public void setY(int);
  33. public int getY();
  34. }
  35. -keep class com.android.launcher3.views.BaseDragLayer$LayoutParams {
  36. public void setWidth(int);
  37. public int getWidth();
  38. public void setHeight(int);
  39. public int getHeight();
  40. public void setX(int);
  41. public int getX();
  42. public void setY(int);
  43. public int getY();
  44. }
  45. -keep class com.android.launcher3.FastBitmapDrawable {
  46. public void setDesaturation(float);
  47. public float getDesaturation();
  48. public void setBrightness(float);
  49. public float getBrightness();
  50. }
  51. -keep class com.android.launcher3.MemoryDumpActivity {
  52. *;
  53. }
  54. -keep class com.android.launcher3.PreloadIconDrawable {
  55. public float getAnimationProgress();
  56. public void setAnimationProgress(float);
  57. }
  58. -keep class com.android.launcher3.pageindicators.CaretDrawable {
  59. public float getCaretProgress();
  60. public void setCaretProgress(float);
  61. }
  62. -keep class com.android.launcher3.Workspace {
  63. public float getBackgroundAlpha();
  64. public void setBackgroundAlpha(float);
  65. }
  66. # Proguard will strip new callbacks in LauncherApps.Callback from
  67. # WrappedCallback if compiled against an older SDK. Don't let this happen.
  68. -keep class com.android.launcher3.compat.** {
  69. *;
  70. }
  71. -keep class com.android.launcher3.graphics.ShadowDrawable {
  72. public <init>(...);
  73. }
  74. # The support library contains references to newer platform versions.
  75. # Don't warn about those in case this app is linking against an older
  76. # platform version. We know about them, and they are safe.
  77. -dontwarn android.support.**
  78. # Proguard will strip methods required for talkback to properly scroll to
  79. # next row when focus is on the last item of last row when using a RecyclerView
  80. # Keep optimized and shrunk proguard to prevent issues like this when using
  81. # support jar.
  82. -keep class android.support.v7.widget.RecyclerView { *; }
  83. # LauncherAppTransitionManager
  84. -keep class com.android.launcher3.LauncherAppTransitionManagerImpl {
  85. public <init>(...);
  86. }
  87. # InstantAppResolver
  88. -keep class com.android.quickstep.InstantAppResolverImpl {
  89. public <init>(...);
  90. }
  91. # MainProcessInitializer
  92. -keep class com.android.quickstep.QuickstepProcessInitializer {
  93. public <init>(...);
  94. }
  95. # UserEventDispatcherExtension
  96. -keep class com.android.quickstep.logging.UserEventDispatcherExtension {
  97. public <init>(...);
  98. }
  99. -keep interface com.android.launcher3.userevent.nano.LauncherLogProto.** {
  100. *;
  101. }
  102. -keep interface com.android.launcher3.model.nano.LauncherDumpProto.** {
  103. *;
  104. }
  105. # Discovery bounce animation
  106. -keep class com.android.launcher3.allapps.DiscoveryBounce$VerticalProgressWrapper {
  107. public void setProgress(float);
  108. public float getProgress();
  109. }
  110. # BUG(70852369): Surpress additional warnings after changing from Proguard to R8
  111. -dontwarn android.app.**
  112. -dontwarn android.view.**
  113. -dontwarn android.os.**