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