Adam Cohen | ce77f36 | 2015-07-24 15:56:33 -0700 | [diff] [blame] | 1 | -keep,allowshrinking,allowoptimization class com.android.launcher3.** { |
| 2 | *; |
| 3 | } |
| 4 | |
Winson | fee206f | 2015-08-19 17:26:21 -0700 | [diff] [blame] | 5 | -keep class com.android.launcher3.allapps.AllAppsBackgroundDrawable { |
| 6 | public void setAlpha(int); |
| 7 | public int getAlpha(); |
| 8 | } |
| 9 | |
Winson Chung | b177744 | 2015-06-16 13:35:04 -0700 | [diff] [blame] | 10 | -keep class com.android.launcher3.BaseRecyclerViewFastScrollBar { |
Winson | d2eb49e | 2015-08-18 17:43:02 -0700 | [diff] [blame] | 11 | public void setThumbWidth(int); |
| 12 | public int getThumbWidth(); |
Winson | 6779595 | 2015-08-20 12:23:52 -0700 | [diff] [blame] | 13 | public void setTrackWidth(int); |
| 14 | public int getTrackWidth(); |
Winson Chung | b177744 | 2015-06-16 13:35:04 -0700 | [diff] [blame] | 15 | } |
| 16 | |
| 17 | -keep class com.android.launcher3.BaseRecyclerViewFastScrollPopup { |
| 18 | public void setAlpha(float); |
| 19 | public float getAlpha(); |
| 20 | } |
| 21 | |
Winson Chung | b177744 | 2015-06-16 13:35:04 -0700 | [diff] [blame] | 22 | -keep class com.android.launcher3.ButtonDropTarget { |
| 23 | public int getTextColor(); |
| 24 | } |
| 25 | |
Daniel Sandler | 325dc23 | 2013-06-05 22:57:57 -0400 | [diff] [blame] | 26 | -keep class com.android.launcher3.CellLayout { |
Michael Jurka | 5f1c509 | 2010-09-03 14:15:02 -0700 | [diff] [blame] | 27 | public float getBackgroundAlpha(); |
| 28 | public void setBackgroundAlpha(float); |
Winson Chung | 7c0736e | 2010-09-29 10:10:05 -0700 | [diff] [blame] | 29 | } |
| 30 | |
Daniel Sandler | 325dc23 | 2013-06-05 22:57:57 -0400 | [diff] [blame] | 31 | -keep class com.android.launcher3.CellLayout$LayoutParams { |
Adam Cohen | 7f4eabe | 2011-04-21 16:19:16 -0700 | [diff] [blame] | 32 | 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 | |
Vadim Tryshev | fedca43 | 2015-08-19 17:55:02 -0700 | [diff] [blame] | 42 | -keep class com.android.launcher3.dragndrop.DragLayer$LayoutParams { |
Winson Chung | b177744 | 2015-06-16 13:35:04 -0700 | [diff] [blame] | 43 | 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 { |
Winson | c088049 | 2015-08-21 11:16:27 -0700 | [diff] [blame] | 54 | public void setDesaturation(float); |
| 55 | public float getDesaturation(); |
| 56 | public void setBrightness(float); |
| 57 | public float getBrightness(); |
Amith Yamasani | 2dc162f | 2010-11-19 10:22:19 -0800 | [diff] [blame] | 58 | } |
Daniel Sandler | a127b7a | 2013-06-17 14:25:46 -0400 | [diff] [blame] | 59 | |
| 60 | -keep class com.android.launcher3.MemoryDumpActivity { |
| 61 | *; |
| 62 | } |
Sunny Goyal | 3484638 | 2014-07-09 00:09:28 -0700 | [diff] [blame] | 63 | |
| 64 | -keep class com.android.launcher3.PreloadIconDrawable { |
| 65 | public float getAnimationProgress(); |
| 66 | public void setAnimationProgress(float); |
| 67 | } |
Sunny Goyal | be7939c | 2014-11-10 16:01:44 -0800 | [diff] [blame] | 68 | |
Hyunyoung Song | 7ccc462 | 2016-07-27 12:48:09 -0700 | [diff] [blame] | 69 | -keep class com.android.launcher3.pageindicators.CaretDrawable { |
| 70 | public float getCaretProgress(); |
| 71 | public void setCaretProgress(float); |
| 72 | } |
| 73 | |
Winson Chung | b177744 | 2015-06-16 13:35:04 -0700 | [diff] [blame] | 74 | -keep class com.android.launcher3.Workspace { |
| 75 | public float getBackgroundAlpha(); |
| 76 | public void setBackgroundAlpha(float); |
Adam Cohen | ce77f36 | 2015-07-24 15:56:33 -0700 | [diff] [blame] | 77 | } |
Kenny Guy | 44cba69 | 2016-01-21 19:50:02 +0000 | [diff] [blame] | 78 | |
| 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 | |
Hyunyoung Song | 4d11a2a | 2016-11-09 12:08:56 -0800 | [diff] [blame] | 85 | # Proguard will strip methods required for talkback to properly scroll to |
| 86 | # next row when focus is on the last item of last row when using a RecyclerView |
| 87 | # Keep optimized and shrunk proguard to prevent issues like this when using |
| 88 | # support jar. |
Hyunyoung Song | 9117e94 | 2016-11-09 19:30:06 -0800 | [diff] [blame] | 89 | #-keep,allowoptimization,allowshrinking class android.support.** { |
| 90 | # *; |
| 91 | #} |
| 92 | -keep class android.support.v7.widget.RecyclerView { *; } |
Hyunyoung Song | 4d11a2a | 2016-11-09 12:08:56 -0800 | [diff] [blame] | 93 | |
Sunny Goyal | 6c46a6d | 2016-11-23 02:24:32 +0530 | [diff] [blame] | 94 | -keep interface com.android.launcher3.userevent.nano.LauncherLogProto.** { |
| 95 | *; |
| 96 | } |
Hyunyoung Song | 2d4d1c5 | 2017-05-17 13:18:54 -0700 | [diff] [blame^] | 97 | |
| 98 | -keep interface com.android.launcher3.model.nano.LauncherDumpProto.** { |
| 99 | *; |
| 100 | } |