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