1-keep,allowshrinking,allowoptimization class com.android.launcher3.** { 2 *; 3} 4 5# Proguard will strip new callbacks in LauncherApps.Callback from 6# WrappedCallback if compiled against an older SDK. Don't let this happen. 7-keep class com.android.launcher3.compat.** { 8 *; 9} 10 11-keep class com.android.launcher3.graphics.ShadowDrawable { 12 public <init>(...); 13} 14 15# The support library contains references to newer platform versions. 16# Don't warn about those in case this app is linking against an older 17# platform version. We know about them, and they are safe. 18-dontwarn android.support.** 19 20# Proguard will strip methods required for talkback to properly scroll to 21# next row when focus is on the last item of last row when using a RecyclerView 22# Keep optimized and shrunk proguard to prevent issues like this when using 23# support jar. 24-keep class androidx.recyclerview.widget.RecyclerView { *; } 25 26# Preference fragments 27-keep class ** extends android.app.Fragment { 28 public <init>(...); 29} 30 31## Prevent obfuscating various overridable objects 32-keep class ** implements com.android.launcher3.util.ResourceBasedOverride { 33 public <init>(...); 34} 35 36-keep interface com.android.launcher3.userevent.nano.LauncherLogProto.** { 37 *; 38} 39-keep interface com.android.launcher3.model.nano.LauncherDumpProto.** { 40 *; 41} 42 43# Discovery bounce animation 44-keep class com.android.launcher3.allapps.DiscoveryBounce$VerticalProgressWrapper { 45 public void setProgress(float); 46 public float getProgress(); 47} 48 49# BUG(70852369): Surpress additional warnings after changing from Proguard to R8 50-dontwarn android.app.** 51-dontwarn android.view.** 52-dontwarn android.os.** 53-dontwarn android.graphics.**