Permalink
Browse files

Add proguard flags

The MmsThumbnailPresenter class was getting stripped by Proguard
because it's only instantiated by passing in a string to the
PresenterFactory. Add a proguard flags file to indicate this class
should not be dead-code-stripped. Bug 2485302.

Change-Id: I0f947f16e8928360447a4287ebb42a1999e4c8a9
  • Loading branch information...
1 parent f313e01 commit ef1a0032968d514fedc7d2f676a96343edea8c42 Tom Taylor committed Mar 3, 2010
Showing with 5 additions and 0 deletions.
  1. +2 −0 Android.mk
  2. +3 −0 proguard.flags
View
@@ -17,6 +17,8 @@ LOCAL_STATIC_JAVA_LIBRARIES += mms-common
LOCAL_REQUIRED_MODULES := SoundRecorder
+LOCAL_PROGUARD_FLAGS := -include $(LOCAL_PATH)/proguard.flags
+
include $(BUILD_PACKAGE)
# This finds and builds the test apk as well, so a single make does both.
View
@@ -0,0 +1,3 @@
+ -keep class com.android.mms.ui.MmsThumbnailPresenter {
+*;
+}

0 comments on commit ef1a003

Please sign in to comment.