diff --git a/core/java.mk b/core/java.mk index 1648fb1b1..c74a0a561 100644 --- a/core/java.mk +++ b/core/java.mk @@ -593,7 +593,7 @@ $(eval $(call copy-one-file,$(full_classes_pre_proguard_jar),$(intermediates.COM # Run proguard if necessary ifdef LOCAL_PROGUARD_ENABLED -ifneq ($(filter-out full custom nosystem obfuscation optimization shrinktests,$(LOCAL_PROGUARD_ENABLED)),) +ifneq ($(filter-out full custom nosystem obfuscation optimization,$(LOCAL_PROGUARD_ENABLED)),) $(warning while processing: $(LOCAL_MODULE)) $(error invalid value for LOCAL_PROGUARD_ENABLED: $(LOCAL_PROGUARD_ENABLED)) endif @@ -634,15 +634,8 @@ common_proguard_flags := -forceprocessing common_proguard_flag_files := ifeq ($(filter nosystem,$(LOCAL_PROGUARD_ENABLED)),) common_proguard_flag_files += $(BUILD_SYSTEM)/proguard.flags -ifeq ($(LOCAL_EMMA_INSTRUMENT),true) -common_proguard_flags += -include $(BUILD_SYSTEM)/proguard.emma.flags -endif -# If this is a test package, add proguard keep flags for tests. ifneq ($(LOCAL_INSTRUMENTATION_FOR)$(filter tests,$(LOCAL_MODULE_TAGS)),) -common_proguard_flag_files += $(BUILD_SYSTEM)/proguard_tests.flags -ifeq ($(filter shrinktests,$(LOCAL_PROGUARD_ENABLED)),) common_proguard_flags += -dontshrink # don't shrink tests by default -endif # shrinktests endif # test package ifneq ($(LOCAL_PROGUARD_ENABLED),custom) ifdef LOCAL_USE_AAPT2 diff --git a/core/proguard.emma.flags b/core/proguard.emma.flags deleted file mode 100644 index bf9408621..000000000 --- a/core/proguard.emma.flags +++ /dev/null @@ -1,4 +0,0 @@ -# Keep everything for the emma classes --keep class com.vladium.** { - *; -} diff --git a/core/proguard_tests.flags b/core/proguard_tests.flags deleted file mode 100644 index 1f840bc21..000000000 --- a/core/proguard_tests.flags +++ /dev/null @@ -1,26 +0,0 @@ -# Keep everything for tests -# This flag has been moved to the makefiles and is set for tests by default. -#-dontshrink - -# But we may want to obfuscate if the main app gets obfuscated. -# This flag has been moved to the makefiles. -#-dontobfuscate - -#-keep class * extends junit.framework.TestCase { -# public void test*(); -#} - -#-keepclasseswithmembers class * { -# public static void run(); -# public static junit.framework.Test suite(); -#} - -# some AllTests don't include run(). -#-keepclasseswithmembers class * { -# public static junit.framework.Test suite(); -#} - -#-keep class * extends junit.framework.TestSuite -#-keep class * extends android.app.Instrumentation -#-keep class * extends android.test.TestSuiteProvider -