blob: 3e12283d28e8c6036b67dfa14db383331a725d40 [file] [log] [blame]
Adam Cohence77f362015-07-24 15:56:33 -07001-keep,allowshrinking,allowoptimization class com.android.launcher3.** {
2 *;
3}
4
Kenny Guy44cba692016-01-21 19:50:02 +00005# Proguard will strip new callbacks in LauncherApps.Callback from
6# WrappedCallback if compiled against an older SDK. Don't let this happen.
7-keep class com.android.launcher3.compat.** {
8 *;
9}
10
Sunny Goyalda1dfa32017-04-26 22:34:49 -070011-keep class com.android.launcher3.graphics.ShadowDrawable {
12 public <init>(...);
13}
14
Sunny Goyal6316d982017-09-27 12:34:47 -070015# The support library contains references to newer platform versions.
16# Don't warn about those in case this app is linking against an older
17# platform version. We know about them, and they are safe.
18-dontwarn android.support.**
19
Hyunyoung Song4d11a2a2016-11-09 12:08:56 -080020# Proguard will strip methods required for talkback to properly scroll to
21# next row when focus is on the last item of last row when using a RecyclerView
22# Keep optimized and shrunk proguard to prevent issues like this when using
23# support jar.
Sunny Goyald2303072018-08-14 15:21:45 -070024-keep class androidx.recyclerview.widget.RecyclerView { *; }
Hyunyoung Song4d11a2a2016-11-09 12:08:56 -080025
Pinyao Ting8b4ed232019-12-17 15:54:32 -080026# Fragments
27-keep class ** extends androidx.fragment.app.Fragment {
28 public <init>(...);
29}
Sunny Goyal65ce2cc2018-11-07 10:08:24 -080030-keep class ** extends android.app.Fragment {
Jon Miranda54441f52018-01-24 15:38:25 -080031 public <init>(...);
32}
33
Sunny Goyal7f920b82018-06-27 15:47:49 -070034## Prevent obfuscating various overridable objects
35-keep class ** implements com.android.launcher3.util.ResourceBasedOverride {
Sunny Goyald0f43ce2018-05-30 17:35:24 -070036 public <init>(...);
37}
38
Sunny Goyal6c46a6d2016-11-23 02:24:32 +053039-keep interface com.android.launcher3.userevent.nano.LauncherLogProto.** {
40 *;
41}
Hyunyoung Song2d4d1c52017-05-17 13:18:54 -070042-keep interface com.android.launcher3.model.nano.LauncherDumpProto.** {
43 *;
44}
Søren Gjesse45e89c72017-12-19 22:17:57 +010045
Sunny Goyal0bd02442018-05-22 11:20:16 -070046# Discovery bounce animation
47-keep class com.android.launcher3.allapps.DiscoveryBounce$VerticalProgressWrapper {
48 public void setProgress(float);
49 public float getProgress();
50}
51
Søren Gjesse45e89c72017-12-19 22:17:57 +010052# BUG(70852369): Surpress additional warnings after changing from Proguard to R8
53-dontwarn android.app.**
54-dontwarn android.view.**
55-dontwarn android.os.**
Pinyao Ting8b4ed232019-12-17 15:54:32 -080056-dontwarn android.graphics.**