1-keepattributes AnnotationDefault,
2                RuntimeVisibleAnnotations,
3                RuntimeVisibleParameterAnnotations,
4                RuntimeVisibleTypeAnnotations
5
6-keepclassmembers enum androidx.lifecycle.Lifecycle$Event {
7    <fields>;
8}
9
10-keep class * implements androidx.lifecycle.GeneratedAdapter {
11    <init>(...);
12}
13
14-keepclassmembers class ** {
15    @androidx.lifecycle.OnLifecycleEvent *;
16}
17
18# The deprecated `android.app.Fragment` creates `Fragment` instances using reflection.
19# See: b/338958225, b/341537875
20-keepclasseswithmembers,allowobfuscation public class androidx.lifecycle.ReportFragment {
21    public <init>();
22}
23
24# this rule is need to work properly when app is compiled with api 28, see b/142778206
25# Also this rule prevents registerIn from being inlined.
26-keepclassmembers class androidx.lifecycle.ReportFragment$LifecycleCallbacks { *; }
27