Home | History | Annotate | Download | only in Contacts
      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 # TODO: Instead of keeping the following two functions we could as well just remove them completely
     13 # as they are only used in test code
     14 
     15 -keep class com.android.contacts.model.EntityDelta {
     16   public com.android.contacts.model.EntityDelta$ValuesDelta getSuperPrimaryEntry(java.lang.String,boolean);
     17 }
     18 
     19 -keep class com.android.contacts.model.EntityDelta$ValuesDelta {
     20   public android.content.ContentValues getAfter();
     21 }
     22 
     23 # Any methods whose name is '*ForTest' are preserved.
     24 -keep class ** {
     25   *** *ForTest(...);
     26 }
     27 
     28 # Any class or method annotated with NeededForTesting.
     29 -keep @com.android.contacts.test.NeededForTesting class *
     30 -keepclassmembers class * {
     31 @com.android.contacts.test.NeededForTesting *;
     32 }
     33