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 | |
Xiao-Long Chen | a3e67ac | 2014-11-12 17:01:47 -0800 | [diff] [blame] | 15 | # Keep ExtendedLookupDirectories for assets/contacts_extensions.properties |
| 16 | -keep class com.android.dialer.lookup.ExtendedLookupDirectories extends * { |
| 17 | *; |
| 18 | } |
| 19 | |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 20 | -verbose |