blob: c0a0042e81fd3f11cfab264ed543d93528bb71e1 [file] [log] [blame]
Hyunyoung Song8b7f5f12025-01-29 08:44:28 +00001
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.** {*;}
Adam Cohence77f362015-07-24 15:56:33 -070010
Sunny Goyal6316d982017-09-27 12:34:47 -070011# 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
Hyunyoung Song4d11a2a2016-11-09 12:08:56 -080016# 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.
Sunny Goyald2303072018-08-14 15:21:45 -070020-keep class androidx.recyclerview.widget.RecyclerView { *; }
Hyunyoung Song4d11a2a2016-11-09 12:08:56 -080021
Pinyao Ting8b4ed232019-12-17 15:54:32 -080022# Fragments
23-keep class ** extends androidx.fragment.app.Fragment {
24 public <init>(...);
25}
Sunny Goyal65ce2cc2018-11-07 10:08:24 -080026-keep class ** extends android.app.Fragment {
Jon Miranda54441f52018-01-24 15:38:25 -080027 public <init>(...);
28}
29
Sunny Goyal7f920b82018-06-27 15:47:49 -070030## Prevent obfuscating various overridable objects
31-keep class ** implements com.android.launcher3.util.ResourceBasedOverride {
Sunny Goyald0f43ce2018-05-30 17:35:24 -070032 public <init>(...);
33}
34
Sunny Goyal6c46a6d2016-11-23 02:24:32 +053035-keep interface com.android.launcher3.userevent.nano.LauncherLogProto.** {
36 *;
37}
Hyunyoung Song2d4d1c52017-05-17 13:18:54 -070038-keep interface com.android.launcher3.model.nano.LauncherDumpProto.** {
39 *;
40}
Søren Gjesse45e89c72017-12-19 22:17:57 +010041
Sunny Goyal0bd02442018-05-22 11:20:16 -070042# Discovery bounce animation
43-keep class com.android.launcher3.allapps.DiscoveryBounce$VerticalProgressWrapper {
44 public void setProgress(float);
45 public float getProgress();
46}
47
Søren Gjesse45e89c72017-12-19 22:17:57 +010048# BUG(70852369): Surpress additional warnings after changing from Proguard to R8
49-dontwarn android.app.**
Pinyao Ting8b4ed232019-12-17 15:54:32 -080050-dontwarn android.graphics.**
[1;3Cd9abb172020-11-30 13:32:22 -080051-dontwarn android.os.**
52-dontwarn android.view.**
53-dontwarn android.window.**
Vadim Caenb6465b22020-02-10 15:48:03 +010054
55# Ignore warnings for hidden utility classes referenced from the shared lib
Amos Bianchi20cc7a32020-02-24 15:35:49 -080056-dontwarn com.android.internal.util.**
57
Schneider Victor-Tulias00b69962024-09-23 13:34:25 -040058
59-keep class com.android.internal.protolog.** {
60 *;
61}