Keep the emma classes if emma is enabled.
Change-Id: Ie551d48532c61bf610b12875dc33cfe476625c5e
This commit is contained in:
parent
cb616cf736
commit
245592908c
|
@ -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
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
# Keep everything for the emma classes
|
||||
-keep class com.vladium.** {
|
||||
*;
|
||||
}
|
Loading…
Reference in New Issue