blob: 555d13e44ce05998f389c897862c1e11fa25da2a [file] [log] [blame]
Adam Cohence77f362015-07-24 15:56:33 -07001-keep,allowshrinking,allowoptimization class com.android.launcher3.** {
2 *;
3}
4
Winsonfee206f2015-08-19 17:26:21 -07005-keep class com.android.launcher3.allapps.AllAppsBackgroundDrawable {
6 public void setAlpha(int);
7 public int getAlpha();
8}
9
Winson Chungb1777442015-06-16 13:35:04 -070010-keep class com.android.launcher3.BaseRecyclerViewFastScrollBar {
Winsond2eb49e2015-08-18 17:43:02 -070011 public void setThumbWidth(int);
12 public int getThumbWidth();
Winson67795952015-08-20 12:23:52 -070013 public void setTrackWidth(int);
14 public int getTrackWidth();
Winson Chungb1777442015-06-16 13:35:04 -070015}
16
17-keep class com.android.launcher3.BaseRecyclerViewFastScrollPopup {
18 public void setAlpha(float);
19 public float getAlpha();
20}
21
Winson Chungb1777442015-06-16 13:35:04 -070022-keep class com.android.launcher3.ButtonDropTarget {
23 public int getTextColor();
24}
25
Daniel Sandler325dc232013-06-05 22:57:57 -040026-keep class com.android.launcher3.CellLayout {
Michael Jurka5f1c5092010-09-03 14:15:02 -070027 public float getBackgroundAlpha();
28 public void setBackgroundAlpha(float);
Winson Chung7c0736e2010-09-29 10:10:05 -070029}
30
Daniel Sandler325dc232013-06-05 22:57:57 -040031-keep class com.android.launcher3.CellLayout$LayoutParams {
Adam Cohen7f4eabe2011-04-21 16:19:16 -070032 public void setWidth(int);
33 public int getWidth();
34 public void setHeight(int);
35 public int getHeight();
36 public void setX(int);
37 public int getX();
38 public void setY(int);
39 public int getY();
40}
41
Adam Cohenc9a2fac2018-03-19 20:50:49 -070042-keep class com.android.launcher3.views.BaseDragLayer$LayoutParams {
Winson Chungb1777442015-06-16 13:35:04 -070043 public void setWidth(int);
44 public int getWidth();
45 public void setHeight(int);
46 public int getHeight();
47 public void setX(int);
48 public int getX();
49 public void setY(int);
50 public int getY();
51}
52
53-keep class com.android.launcher3.FastBitmapDrawable {
Winsonc0880492015-08-21 11:16:27 -070054 public void setDesaturation(float);
55 public float getDesaturation();
56 public void setBrightness(float);
57 public float getBrightness();
Amith Yamasani2dc162f2010-11-19 10:22:19 -080058}
Daniel Sandlera127b7a2013-06-17 14:25:46 -040059
60-keep class com.android.launcher3.MemoryDumpActivity {
61 *;
62}
Sunny Goyal34846382014-07-09 00:09:28 -070063
64-keep class com.android.launcher3.PreloadIconDrawable {
65 public float getAnimationProgress();
66 public void setAnimationProgress(float);
67}
Sunny Goyalbe7939c2014-11-10 16:01:44 -080068
Hyunyoung Song7ccc4622016-07-27 12:48:09 -070069-keep class com.android.launcher3.pageindicators.CaretDrawable {
70 public float getCaretProgress();
71 public void setCaretProgress(float);
72}
73
Winson Chungb1777442015-06-16 13:35:04 -070074-keep class com.android.launcher3.Workspace {
75 public float getBackgroundAlpha();
76 public void setBackgroundAlpha(float);
Adam Cohence77f362015-07-24 15:56:33 -070077}
Kenny Guy44cba692016-01-21 19:50:02 +000078
79# Proguard will strip new callbacks in LauncherApps.Callback from
80# WrappedCallback if compiled against an older SDK. Don't let this happen.
81-keep class com.android.launcher3.compat.** {
82 *;
83}
84
Sunny Goyalda1dfa32017-04-26 22:34:49 -070085-keep class com.android.launcher3.graphics.ShadowDrawable {
86 public <init>(...);
87}
88
Sunny Goyal6316d982017-09-27 12:34:47 -070089# The support library contains references to newer platform versions.
90# Don't warn about those in case this app is linking against an older
91# platform version. We know about them, and they are safe.
92-dontwarn android.support.**
93
Hyunyoung Song4d11a2a2016-11-09 12:08:56 -080094# Proguard will strip methods required for talkback to properly scroll to
95# next row when focus is on the last item of last row when using a RecyclerView
96# Keep optimized and shrunk proguard to prevent issues like this when using
97# support jar.
Hyunyoung Song9117e942016-11-09 19:30:06 -080098-keep class android.support.v7.widget.RecyclerView { *; }
Hyunyoung Song4d11a2a2016-11-09 12:08:56 -080099
Jon Miranda54441f52018-01-24 15:38:25 -0800100# LauncherAppTransitionManager
101-keep class com.android.launcher3.LauncherAppTransitionManagerImpl {
102 public <init>(...);
103}
104
Sunny Goyal61e08462018-03-02 17:25:59 -0800105# InstantAppResolver
106-keep class com.android.quickstep.InstantAppResolverImpl {
107 public <init>(...);
108}
109
Sunny Goyal926ba832018-04-09 09:23:11 -0700110# MainProcessInitializer
111-keep class com.android.quickstep.QuickstepProcessInitializer {
112 public <init>(...);
113}
114
Sunny Goyal6c46a6d2016-11-23 02:24:32 +0530115-keep interface com.android.launcher3.userevent.nano.LauncherLogProto.** {
116 *;
117}
Hyunyoung Song2d4d1c52017-05-17 13:18:54 -0700118
119-keep interface com.android.launcher3.model.nano.LauncherDumpProto.** {
120 *;
121}
Søren Gjesse45e89c72017-12-19 22:17:57 +0100122
Sunny Goyal0bd02442018-05-22 11:20:16 -0700123# Discovery bounce animation
124-keep class com.android.launcher3.allapps.DiscoveryBounce$VerticalProgressWrapper {
125 public void setProgress(float);
126 public float getProgress();
127}
128
Søren Gjesse45e89c72017-12-19 22:17:57 +0100129# BUG(70852369): Surpress additional warnings after changing from Proguard to R8
130-dontwarn android.app.**
131-dontwarn android.view.**
132-dontwarn android.os.**