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