blob: 6352f81b4474581b24e4ffd6464a05e3c8e3c506 [file] [log] [blame]
Jared Duke629526d2022-02-08 11:28:34 -08001# Preserve line number information for debugging stack traces.
2-keepattributes SourceFile,LineNumberTable
3
Yohei Yukawa25c61e42022-02-14 22:30:49 +00004-keep class com.android.systemui.recents.OverviewProxyRecentsImpl
5-keep class com.android.systemui.statusbar.car.CarStatusBar
6-keep class com.android.systemui.statusbar.phone.StatusBar
7-keep class com.android.systemui.statusbar.tv.TvStatusBar
Yao Chen634acb92016-04-13 16:17:47 -07008-keep class com.android.systemui.car.CarSystemUIFactory
Xiyuan Xia1b30f792016-01-06 08:50:30 -08009-keep class com.android.systemui.SystemUIFactory
Sergey Nikolaienkov7842bac2019-12-19 16:34:11 +010010-keep class com.android.systemui.tv.TvSystemUIFactory
Yohei Yukawa25c61e42022-02-14 22:30:49 +000011-keep class * extends com.android.systemui.CoreStartable
12-keep class * implements com.android.systemui.CoreStartable$Injector
Winsone6c90732015-09-24 16:06:29 -070013
Jason Monk87ccd552015-12-11 21:39:54 -050014-keepclasseswithmembers class * {
15 public <init>(android.content.Context, android.util.AttributeSet);
16}
17
Aurimas Liutikasfd52c142018-04-17 09:50:46 -070018-keep class ** extends androidx.preference.PreferenceFragment
Yohei Yukawa25c61e42022-02-14 22:30:49 +000019-keep class com.android.systemui.tuner.*
Jason Monk86bc3312016-08-16 13:17:56 -040020-keep class com.android.systemui.plugins.** {
Jason Monke6089af2018-07-31 14:38:11 -040021 *;
Jason Monk86bc3312016-08-16 13:17:56 -040022}
Jason Monk9424af72018-12-19 14:17:26 -050023-keep class com.android.systemui.fragments.FragmentService$FragmentCreator {
24 *;
25}
Aurimas Liutikasfd52c142018-04-17 09:50:46 -070026-keep class androidx.core.app.CoreComponentFactory
Dave Mankoffa5d8a392019-10-10 12:21:09 -040027
Yohei Yukawa25c61e42022-02-14 22:30:49 +000028-keep public class * extends com.android.systemui.CoreStartable {
29 public <init>(android.content.Context);
30}
31
Winson Chungb754f522020-08-03 22:17:08 -070032# Keep the wm shell lib
Dave Mankoff85528072020-08-06 10:32:25 -040033-keep class com.android.wm.shell.*
Winson Chungb754f522020-08-03 22:17:08 -070034# Keep the protolog group methods that are called by the generated code
35-keepclassmembers class com.android.wm.shell.protolog.ShellProtoLogGroup {
36 *;
37}
Dave Mankoff85528072020-08-06 10:32:25 -040038
Yohei Yukawa25c61e42022-02-14 22:30:49 +000039-keep,allowoptimization,allowaccessmodification class com.android.systemui.dagger.GlobalRootComponent { !synthetic *; }
40-keep,allowoptimization,allowaccessmodification class com.android.systemui.dagger.GlobalRootComponent$SysUIComponentImpl { !synthetic *; }
41-keep,allowoptimization,allowaccessmodification class com.android.systemui.dagger.Dagger** { !synthetic *; }
42-keep,allowoptimization,allowaccessmodification class com.android.systemui.tv.Dagger** { !synthetic *; }
43
Jared Duke2fee7402021-10-18 14:35:04 -070044# Allows proguard to make private and protected methods and fields public as
45# part of optimization. This lets proguard inline trivial getter/setter methods.
46-allowaccessmodification
Jared Dukedc1646f2021-11-30 12:35:45 -080047
48# Removes runtime checks added through Kotlin to JVM code genereration to
49# avoid linear growth as more Kotlin code is converted / added to the codebase.
50# These checks are generally applied to Java platform types (values returned
51# from Java code that don't have nullness annotations), but we remove them to
52# avoid code size increases.
53#
54# See also https://kotlinlang.org/docs/reference/java-interop.html
55#
56# TODO(b/199941987): Consider standardizing these rules in a central place as
57# Kotlin gains adoption with other platform targets.
58-assumenosideeffects class kotlin.jvm.internal.Intrinsics {
59 # Remove check for method parameters being null
60 static void checkParameterIsNotNull(java.lang.Object, java.lang.String);
61
62 # When a Java platform type is returned and passed to Kotlin NonNull method,
63 # remove the null check
64 static void checkExpressionValueIsNotNull(java.lang.Object, java.lang.String);
65 static void checkNotNullExpressionValue(java.lang.Object, java.lang.String);
66
67 # Remove check that final value returned from method is null, if passing
68 # back Java platform type.
69 static void checkReturnedValueIsNotNull(java.lang.Object, java.lang.String, java.lang.String);
70 static void checkReturnedValueIsNotNull(java.lang.Object, java.lang.String);
71
72 # Null check for accessing a field from a parent class written in Java.
73 static void checkFieldIsNotNull(java.lang.Object, java.lang.String, java.lang.String);
74 static void checkFieldIsNotNull(java.lang.Object, java.lang.String);
75
76 # Removes code generated from !! operator which converts Nullable type to
77 # NonNull type. These would throw an NPE immediate after on access.
78 static void checkNotNull(java.lang.Object, java.lang.String);
79 static void checkNotNullParameter(java.lang.Object, java.lang.String);
80
81 # Removes lateinit var check being used before being set. Check is applied
82 # on every field access without this.
83 static void throwUninitializedPropertyAccessException(java.lang.String);
84}