From da3c80b3382e5f9051a0519c41139b51e65917b4 Mon Sep 17 00:00:00 2001 From: Todd Kennedy Date: Wed, 16 Feb 2011 15:07:43 -0800 Subject: [PATCH] Fix NoSuchMethodError for unit tests With all the code movement, some tests were found to break. Update the proguard config so the appropriate methods can be referenced. bug 3460695 Change-Id: I2fc9786cc54182ba8571d87947241dcd7b2e9995 --- proguard.flags | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/proguard.flags b/proguard.flags index 45fbeed1c..260fa125c 100644 --- a/proguard.flags +++ b/proguard.flags @@ -20,6 +20,11 @@ *** apply(); } +-keepclasseswithmembers class com.android.emailcommon.utility.Utility$CloseTraceCursorWrapper { + *** getTraceIfAvailable(android.database.Cursor); + *** log(android.database.Cursor); +} + -keep class * extends org.apache.james.mime4j.util.TempStorage # Keep names that are used only by unit tests or by animators @@ -28,6 +33,10 @@ *** *Anim(...); } +-keepclasseswithmembers class com.android.email.activity.setup.AccountSetupAccountType { + *** checkAccountInstanceLimit(com.android.email.mail.Store$StoreInfo); +} + -keepclasseswithmembers class com.android.email.GroupMessagingListener { *** removeListener(com.android.email.MessagingListener); } @@ -165,6 +174,12 @@ *** getShortcutSafeUri(); } +-keepclasseswithmembers class com.android.exchange.CalendarSyncEnabler { + (android.content.Context); + *** enableEasCalendarSyncInternal(); + *** showNotification(java.lang.String); +} + -keepclasseswithmembers class com.android.exchange.adapter.Parser { *** resetInput(java.io.InputStream); }