Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit ef1a0032968d514fedc7d2f676a96343edea8c42 1 parent f313e01
Tom Taylor authored
Showing with 5 additions and 0 deletions.
  1. +2 −0  Android.mk
  2. +3 −0  proguard.flags
View
2  Android.mk
@@ -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
3  proguard.flags
@@ -0,0 +1,3 @@
+ -keep class com.android.mms.ui.MmsThumbnailPresenter {
+*;
+}
Please sign in to comment.
Something went wrong with that request. Please try again.