blob: e556c94466ebb5c58d49b8d49920d72317532e4c [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
Sunny Goyal6316d982017-09-27 12:34:47 -07009# 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
Hyunyoung Song4d11a2a2016-11-09 12:08:56 -080014# 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.
Sunny Goyald2303072018-08-14 15:21:45 -070018-keep class androidx.recyclerview.widget.RecyclerView { *; }
Hyunyoung Song4d11a2a2016-11-09 12:08:56 -080019
Pinyao Ting8b4ed232019-12-17 15:54:32 -080020# Fragments
21-keep class ** extends androidx.fragment.app.Fragment {
22 public <init>(...);
23}
Sunny Goyal65ce2cc2018-11-07 10:08:24 -080024-keep class ** extends android.app.Fragment {
Jon Miranda54441f52018-01-24 15:38:25 -080025 public <init>(...);
26}
27
Sunny Goyal7f920b82018-06-27 15:47:49 -070028## Prevent obfuscating various overridable objects
29-keep class ** implements com.android.launcher3.util.ResourceBasedOverride {
Sunny Goyald0f43ce2018-05-30 17:35:24 -070030 public <init>(...);
31}
32
Sunny Goyal6c46a6d2016-11-23 02:24:32 +053033-keep interface com.android.launcher3.userevent.nano.LauncherLogProto.** {
34 *;
35}
Hyunyoung Song2d4d1c52017-05-17 13:18:54 -070036-keep interface com.android.launcher3.model.nano.LauncherDumpProto.** {
37 *;
38}
Søren Gjesse45e89c72017-12-19 22:17:57 +010039
Sunny Goyal0bd02442018-05-22 11:20:16 -070040# Discovery bounce animation
41-keep class com.android.launcher3.allapps.DiscoveryBounce$VerticalProgressWrapper {
42 public void setProgress(float);
43 public float getProgress();
44}
45
Søren Gjesse45e89c72017-12-19 22:17:57 +010046# BUG(70852369): Surpress additional warnings after changing from Proguard to R8
47-dontwarn android.app.**
48-dontwarn android.view.**
49-dontwarn android.os.**
Pinyao Ting8b4ed232019-12-17 15:54:32 -080050-dontwarn android.graphics.**
Vadim Caenb6465b22020-02-10 15:48:03 +010051
52# Ignore warnings for hidden utility classes referenced from the shared lib
53-dontwarn com.android.internal.util.**