blob: e4b2c95889e088cac0fbfb8cf12f47e401dd9107 [file] [log] [blame]
Wang Han3617af62021-08-06 13:51:52 +00001-keepattributes AnnotationDefault,
2 RuntimeVisibleAnnotations,
3 RuntimeVisibleParameterAnnotations,
4 RuntimeVisibleTypeAnnotations
Yigit Boyarb96cceaa2016-10-31 17:51:15 -07005
Alan Viverettebdc4c862018-03-08 18:02:39 -05006-keepclassmembers enum androidx.lifecycle.Lifecycle$Event {
Sergey Vasilinets189ec9f2017-05-22 18:54:37 -07007 <fields>;
8}
Yigit Boyarb96cceaa2016-10-31 17:51:15 -07009
Jake Wharton5acbafd2018-06-07 14:40:45 -040010-keep !interface * implements androidx.lifecycle.LifecycleObserver {
Sergey Vasilinets189ec9f2017-05-22 18:54:37 -070011}
12
Alan Viverettebdc4c862018-03-08 18:02:39 -050013-keep class * implements androidx.lifecycle.GeneratedAdapter {
Sergey Vasilinets189ec9f2017-05-22 18:54:37 -070014 <init>(...);
15}
16
17-keepclassmembers class ** {
Alan Viverettebdc4c862018-03-08 18:02:39 -050018 @androidx.lifecycle.OnLifecycleEvent *;
Sergey Vasilinets714063a2019-10-21 11:32:58 +010019}
20
21# this rule is need to work properly when app is compiled with api 28, see b/142778206
Sergey Vasilinetsec4a0522020-04-09 00:25:29 +010022# Also this rule prevents registerIn from being inlined.
Sergey Vasilinets714063a2019-10-21 11:32:58 +010023-keepclassmembers class androidx.lifecycle.ReportFragment$LifecycleCallbacks { *; }