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