blob: 1d02f9ab4239e95cd90bb563500fa9edfeb13b3b [file] [log] [blame]
Adam Cohence77f362015-07-24 15:56:33 -07001-keep,allowshrinking,allowoptimization class com.android.launcher3.** {
2 *;
3}
4
Sunny Goyal6316d982017-09-27 12:34:47 -07005# The support library contains references to newer platform versions.
6# Don't warn about those in case this app is linking against an older
7# platform version. We know about them, and they are safe.
8-dontwarn android.support.**
9
Hyunyoung Song4d11a2a2016-11-09 12:08:56 -080010# Proguard will strip methods required for talkback to properly scroll to
11# next row when focus is on the last item of last row when using a RecyclerView
12# Keep optimized and shrunk proguard to prevent issues like this when using
13# support jar.
Sunny Goyald2303072018-08-14 15:21:45 -070014-keep class androidx.recyclerview.widget.RecyclerView { *; }
Hyunyoung Song4d11a2a2016-11-09 12:08:56 -080015
Pinyao Ting8b4ed232019-12-17 15:54:32 -080016# Fragments
17-keep class ** extends androidx.fragment.app.Fragment {
18 public <init>(...);
19}
Sunny Goyal65ce2cc2018-11-07 10:08:24 -080020-keep class ** extends android.app.Fragment {
Jon Miranda54441f52018-01-24 15:38:25 -080021 public <init>(...);
22}
23
Sunny Goyal7f920b82018-06-27 15:47:49 -070024## Prevent obfuscating various overridable objects
25-keep class ** implements com.android.launcher3.util.ResourceBasedOverride {
Sunny Goyald0f43ce2018-05-30 17:35:24 -070026 public <init>(...);
27}
28
Sunny Goyal6c46a6d2016-11-23 02:24:32 +053029-keep interface com.android.launcher3.userevent.nano.LauncherLogProto.** {
30 *;
31}
Hyunyoung Song2d4d1c52017-05-17 13:18:54 -070032-keep interface com.android.launcher3.model.nano.LauncherDumpProto.** {
33 *;
34}
Søren Gjesse45e89c72017-12-19 22:17:57 +010035
Sunny Goyal0bd02442018-05-22 11:20:16 -070036# Discovery bounce animation
37-keep class com.android.launcher3.allapps.DiscoveryBounce$VerticalProgressWrapper {
38 public void setProgress(float);
39 public float getProgress();
40}
41
Søren Gjesse45e89c72017-12-19 22:17:57 +010042# BUG(70852369): Surpress additional warnings after changing from Proguard to R8
43-dontwarn android.app.**
Pinyao Ting8b4ed232019-12-17 15:54:32 -080044-dontwarn android.graphics.**
[1;3Cd9abb172020-11-30 13:32:22 -080045-dontwarn android.os.**
46-dontwarn android.view.**
47-dontwarn android.window.**
Vadim Caenb6465b22020-02-10 15:48:03 +010048
49# Ignore warnings for hidden utility classes referenced from the shared lib
Amos Bianchi20cc7a32020-02-24 15:35:49 -080050-dontwarn com.android.internal.util.**
51
52################ Do not optimize recents lib #############
53-keep class com.android.systemui.** {
54 *;
55}
56
57-keep class com.android.quickstep.** {
58 *;
59}
Joey5bdcc692019-01-23 17:49:25 +010060
61-keep class com.android.launcher3.lineage.trust.** {
62 *;
63}