blob: 335bc5821eba2bab7c29ab6a48c6419c5b2338ae [file] [log] [blame]
Adam Cohence77f362015-07-24 15:56:33 -07001-keep,allowshrinking,allowoptimization class com.android.launcher3.** {
2 *;
3}
4
Sunny Goyalda1dfa32017-04-26 22:34:49 -07005-keep class com.android.launcher3.graphics.ShadowDrawable {
6 public <init>(...);
7}
8
Edward Cross4146dc92018-12-26 22:18:30 +01009# QSB
10-keep class com.android.launcher3.qsb.QsbContainerView$QsbFragment {
11 public <init>(...);
12}
13
Sunny Goyal6316d982017-09-27 12:34:47 -070014# The support library contains references to newer platform versions.
15# Don't warn about those in case this app is linking against an older
16# platform version. We know about them, and they are safe.
17-dontwarn android.support.**
18
Hyunyoung Song4d11a2a2016-11-09 12:08:56 -080019# Proguard will strip methods required for talkback to properly scroll to
20# next row when focus is on the last item of last row when using a RecyclerView
21# Keep optimized and shrunk proguard to prevent issues like this when using
22# support jar.
Sunny Goyald2303072018-08-14 15:21:45 -070023-keep class androidx.recyclerview.widget.RecyclerView { *; }
Hyunyoung Song4d11a2a2016-11-09 12:08:56 -080024
Pinyao Ting8b4ed232019-12-17 15:54:32 -080025# Fragments
26-keep class ** extends androidx.fragment.app.Fragment {
27 public <init>(...);
28}
Sunny Goyal65ce2cc2018-11-07 10:08:24 -080029-keep class ** extends android.app.Fragment {
Jon Miranda54441f52018-01-24 15:38:25 -080030 public <init>(...);
31}
32
Sunny Goyal7f920b82018-06-27 15:47:49 -070033## Prevent obfuscating various overridable objects
34-keep class ** implements com.android.launcher3.util.ResourceBasedOverride {
Sunny Goyald0f43ce2018-05-30 17:35:24 -070035 public <init>(...);
36}
37
Sunny Goyal6c46a6d2016-11-23 02:24:32 +053038-keep interface com.android.launcher3.userevent.nano.LauncherLogProto.** {
39 *;
40}
Hyunyoung Song2d4d1c52017-05-17 13:18:54 -070041-keep interface com.android.launcher3.model.nano.LauncherDumpProto.** {
42 *;
43}
Søren Gjesse45e89c72017-12-19 22:17:57 +010044
Sunny Goyal0bd02442018-05-22 11:20:16 -070045# Discovery bounce animation
46-keep class com.android.launcher3.allapps.DiscoveryBounce$VerticalProgressWrapper {
47 public void setProgress(float);
48 public float getProgress();
49}
50
Søren Gjesse45e89c72017-12-19 22:17:57 +010051# BUG(70852369): Surpress additional warnings after changing from Proguard to R8
52-dontwarn android.app.**
53-dontwarn android.view.**
54-dontwarn android.os.**
Pinyao Ting8b4ed232019-12-17 15:54:32 -080055-dontwarn android.graphics.**
Vadim Caenb6465b22020-02-10 15:48:03 +010056
57# Ignore warnings for hidden utility classes referenced from the shared lib
Amos Bianchi20cc7a32020-02-24 15:35:49 -080058-dontwarn com.android.internal.util.**
59
60################ Do not optimize recents lib #############
61-keep class com.android.systemui.** {
62 *;
63}
64
65-keep class com.android.quickstep.** {
66 *;
67}
Joey8bb80c82019-01-23 17:49:25 +010068
69-keep class com.android.launcher3.lineage.trust.** {
70 *;
71}