Keep the emma classes if emma is enabled.

Change-Id: Ie551d48532c61bf610b12875dc33cfe476625c5e
This commit is contained in:
Ying Wang 2012-08-27 16:01:38 -07:00
parent cb616cf736
commit 245592908c
2 changed files with 7 additions and 0 deletions

View file

@ -322,6 +322,9 @@ proguard_flags := $(addprefix -libraryjars ,$(proguard_full_java_libs)) \
-include $(BUILD_SYSTEM)/proguard.flags \
-forceprocessing \
-printmapping $(proguard_dictionary)
ifeq ($(LOCAL_EMMA_INSTRUMENT),true)
proguard_flags += -include $(BUILD_SYSTEM)/proguard.emma.flags
endif
# If this is a test package, add proguard keep flags for tests.
ifneq ($(strip $(LOCAL_INSTRUMENTATION_FOR)$(filter tests,$(LOCAL_MODULE_TAGS))$(filter android.test.runner,$(LOCAL_JAVA_LIBRARIES))),)
proguard_flags := $(proguard_flags) -include $(BUILD_SYSTEM)/proguard_tests.flags

4
core/proguard.emma.flags Normal file
View file

@ -0,0 +1,4 @@
# Keep everything for the emma classes
-keep class com.vladium.** {
*;
}