Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 1 | # Xml files containing onClick (menus and layouts) require that proguard not |
| 2 | # remove their handlers. |
| 3 | -keepclassmembers class * extends android.app.Activity { |
| 4 | public void *(android.view.View); |
| 5 | public void *(android.view.MenuItem); |
| 6 | } |
| 7 | |
| 8 | # Any class or method annotated with NeededForTesting or NeededForReflection. |
Yorke Lee | 7d20f82 | 2014-06-19 17:09:33 -0700 | [diff] [blame] | 9 | -keep @com.android.contacts.common.testing.NeededForTesting class * |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 10 | -keepclassmembers class * { |
Yorke Lee | 7d20f82 | 2014-06-19 17:09:33 -0700 | [diff] [blame] | 11 | @com.android.contacts.common.testing.NeededForTesting *; |
Yorke Lee | dfb2eee | 2013-06-26 18:24:32 -0700 | [diff] [blame] | 12 | @com.android.dialer.NeededForReflection *; |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 13 | } |
| 14 | |
Nancy Chen | f3d9f82 | 2015-09-11 00:47:31 -0400 | [diff] [blame] | 15 | # For design libraries |
| 16 | -keep public class * extends android.support.design.widget.CoordinatorLayout$Behavior { |
| 17 | public <init>(android.content.Context, android.util.AttributeSet); |
| 18 | } |
| 19 | |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 20 | -verbose |