1-keep class com.android.contacts.model.Sources { 2 public <init>(...); 3} 4 5# Xml files containing onClick (menus and layouts) require that proguard not 6# remove their handlers. 7-keepclassmembers class * extends android.app.Activity { 8 public void *(android.view.View); 9 public void *(android.view.MenuItem); 10} 11 12-keep class com.android.contacts.common.** { *;} 13# For test: 14-keep class com.android.contacts.commonbind.analytics.AnalyticsUtil { *;} 15-keep class com.android.contacts.interactions.** { *;} 16-keep class com.google.common.base.Objects { *;} 17-keep class com.google.common.base.Preconditions { *;} 18-keep class com.google.common.collect.Lists { *;} 19-keep class com.google.common.collect.Maps { *;} 20-keep class com.google.common.collect.Sets { *;} 21 22# Any class or method annotated with NeededForTesting or NeededForReflection. 23-keep @com.android.contacts.common.testing.NeededForTesting class * 24-keep @com.android.contacts.test.NeededForReflection class * 25-keepclassmembers class * { 26@com.android.contacts.common.testing.NeededForTesting *; 27@com.android.contacts.test.NeededForReflection *; 28} 29# Keep classes and methods that have the guava @VisibleForTesting annotation 30-keep @com.google.common.annotations.VisibleForTesting class * 31-keepclassmembers class * { 32 @com.google.common.annotations.VisibleForTesting *; 33} 34 35-verbose 36