| Wang Han | 3617af6 | 2021-08-06 13:51:52 +0000 | [diff] [blame] | 1 | -keepattributes AnnotationDefault, |
| 2 | RuntimeVisibleAnnotations, |
| 3 | RuntimeVisibleParameterAnnotations, |
| 4 | RuntimeVisibleTypeAnnotations |
| Yigit Boyar | b96cceaa | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 5 | |
| Alan Viverette | bdc4c86 | 2018-03-08 18:02:39 -0500 | [diff] [blame] | 6 | -keepclassmembers enum androidx.lifecycle.Lifecycle$Event { |
| Sergey Vasilinets | 189ec9f | 2017-05-22 18:54:37 -0700 | [diff] [blame] | 7 | <fields>; |
| 8 | } |
| Yigit Boyar | b96cceaa | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 9 | |
| Jake Wharton | 5acbafd | 2018-06-07 14:40:45 -0400 | [diff] [blame] | 10 | -keep !interface * implements androidx.lifecycle.LifecycleObserver { |
| Sergey Vasilinets | 189ec9f | 2017-05-22 18:54:37 -0700 | [diff] [blame] | 11 | } |
| 12 | |
| Alan Viverette | bdc4c86 | 2018-03-08 18:02:39 -0500 | [diff] [blame] | 13 | -keep class * implements androidx.lifecycle.GeneratedAdapter { |
| Sergey Vasilinets | 189ec9f | 2017-05-22 18:54:37 -0700 | [diff] [blame] | 14 | <init>(...); |
| 15 | } |
| 16 | |
| 17 | -keepclassmembers class ** { |
| Alan Viverette | bdc4c86 | 2018-03-08 18:02:39 -0500 | [diff] [blame] | 18 | @androidx.lifecycle.OnLifecycleEvent *; |
| Sergey Vasilinets | 714063a | 2019-10-21 11:32:58 +0100 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | # this rule is need to work properly when app is compiled with api 28, see b/142778206 |
| Sergey Vasilinets | ec4a052 | 2020-04-09 00:25:29 +0100 | [diff] [blame] | 22 | # Also this rule prevents registerIn from being inlined. |
| Sergey Vasilinets | 714063a | 2019-10-21 11:32:58 +0100 | [diff] [blame] | 23 | -keepclassmembers class androidx.lifecycle.ReportFragment$LifecycleCallbacks { *; } |