Adam Cohen | ce77f36 | 2015-07-24 15:56:33 -0700 | [diff] [blame] | 1 | -keep,allowshrinking,allowoptimization class com.android.launcher3.** { |
| 2 | *; |
| 3 | } |
| 4 | |
Kenny Guy | 44cba69 | 2016-01-21 19:50:02 +0000 | [diff] [blame] | 5 | # 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 | |
Diogo Ferreira | 3bb97e0 | 2018-09-14 10:51:15 +0200 | [diff] [blame] | 11 | -keep class com.android.launcher3.graphics.FixedScaleDrawable { |
| 12 | public <init>(...); |
| 13 | } |
| 14 | |
Sunny Goyal | da1dfa3 | 2017-04-26 22:34:49 -0700 | [diff] [blame] | 15 | -keep class com.android.launcher3.graphics.ShadowDrawable { |
| 16 | public <init>(...); |
| 17 | } |
| 18 | |
Edward Cross | 502e9a9 | 2018-12-26 22:18:30 +0100 | [diff] [blame] | 19 | # QSB |
| 20 | -keep class com.android.launcher3.qsb.QsbContainerView$QsbFragment { |
| 21 | public <init>(...); |
| 22 | } |
| 23 | |
Sunny Goyal | 6316d98 | 2017-09-27 12:34:47 -0700 | [diff] [blame] | 24 | # The support library contains references to newer platform versions. |
| 25 | # Don't warn about those in case this app is linking against an older |
| 26 | # platform version. We know about them, and they are safe. |
| 27 | -dontwarn android.support.** |
| 28 | |
Hyunyoung Song | 4d11a2a | 2016-11-09 12:08:56 -0800 | [diff] [blame] | 29 | # Proguard will strip methods required for talkback to properly scroll to |
| 30 | # next row when focus is on the last item of last row when using a RecyclerView |
| 31 | # Keep optimized and shrunk proguard to prevent issues like this when using |
| 32 | # support jar. |
Sunny Goyal | d230307 | 2018-08-14 15:21:45 -0700 | [diff] [blame] | 33 | -keep class androidx.recyclerview.widget.RecyclerView { *; } |
Hyunyoung Song | 4d11a2a | 2016-11-09 12:08:56 -0800 | [diff] [blame] | 34 | |
Sunny Goyal | 7f920b8 | 2018-06-27 15:47:49 -0700 | [diff] [blame] | 35 | # Preference fragments |
Sunny Goyal | 65ce2cc | 2018-11-07 10:08:24 -0800 | [diff] [blame] | 36 | -keep class ** extends android.app.Fragment { |
Jon Miranda | 54441f5 | 2018-01-24 15:38:25 -0800 | [diff] [blame] | 37 | public <init>(...); |
| 38 | } |
| 39 | |
Sunny Goyal | 7f920b8 | 2018-06-27 15:47:49 -0700 | [diff] [blame] | 40 | ## Prevent obfuscating various overridable objects |
| 41 | -keep class ** implements com.android.launcher3.util.ResourceBasedOverride { |
Sunny Goyal | d0f43ce | 2018-05-30 17:35:24 -0700 | [diff] [blame] | 42 | public <init>(...); |
| 43 | } |
| 44 | |
Sunny Goyal | 6c46a6d | 2016-11-23 02:24:32 +0530 | [diff] [blame] | 45 | -keep interface com.android.launcher3.userevent.nano.LauncherLogProto.** { |
| 46 | *; |
| 47 | } |
Hyunyoung Song | 2d4d1c5 | 2017-05-17 13:18:54 -0700 | [diff] [blame] | 48 | -keep interface com.android.launcher3.model.nano.LauncherDumpProto.** { |
| 49 | *; |
| 50 | } |
Søren Gjesse | 45e89c7 | 2017-12-19 22:17:57 +0100 | [diff] [blame] | 51 | |
Sunny Goyal | 0bd0244 | 2018-05-22 11:20:16 -0700 | [diff] [blame] | 52 | # Discovery bounce animation |
| 53 | -keep class com.android.launcher3.allapps.DiscoveryBounce$VerticalProgressWrapper { |
| 54 | public void setProgress(float); |
| 55 | public float getProgress(); |
| 56 | } |
| 57 | |
Søren Gjesse | 45e89c7 | 2017-12-19 22:17:57 +0100 | [diff] [blame] | 58 | # BUG(70852369): Surpress additional warnings after changing from Proguard to R8 |
| 59 | -dontwarn android.app.** |
| 60 | -dontwarn android.view.** |
| 61 | -dontwarn android.os.** |
Diogo Ferreira | 3bb97e0 | 2018-09-14 10:51:15 +0200 | [diff] [blame] | 62 | -dontwarn android.graphics.** |