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