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. |
Chiao Cheng | 217d1ed | 2012-11-13 18:38:34 -0800 | [diff] [blame] | 9 | -keep @com.android.contacts.common.test.NeededForTesting class * |
Chiao Cheng | 4f128ea | 2012-12-06 16:05:14 -0800 | [diff] [blame] | 10 | -keep @com.android.dialer.test.NeededForReflection class * |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 11 | -keepclassmembers class * { |
Chiao Cheng | 217d1ed | 2012-11-13 18:38:34 -0800 | [diff] [blame] | 12 | @com.android.contacts.common.test.NeededForTesting *; |
Chiao Cheng | 4f128ea | 2012-12-06 16:05:14 -0800 | [diff] [blame] | 13 | @com.android.dialer.test.NeededForReflection *; |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 14 | } |
| 15 | |
| 16 | -verbose |