diff options
author | Paul Westbrook <pwestbro@google.com> | 2014-08-01 10:53:36 -0700 |
---|---|---|
committer | Paul Westbrook <pwestbro@google.com> | 2014-08-01 11:08:18 -0700 |
commit | 2fb24a2e4a82ccf5a9932bd633c8c7a97fcbfe8b (patch) | |
tree | d12326f13f6e027917f1b23e1ed594c1279eae06 /Android.mk | |
parent | 347c5117e4c4bce2007467bd63b433d10be2cd4a (diff) | |
download | android_packages_apps_Email-2fb24a2e4a82ccf5a9932bd633c8c7a97fcbfe8b.tar.gz android_packages_apps_Email-2fb24a2e4a82ccf5a9932bd633c8c7a97fcbfe8b.tar.bz2 android_packages_apps_Email-2fb24a2e4a82ccf5a9932bd633c8c7a97fcbfe8b.zip |
Use test proguard config for eng builds
Since unit tests only run on eng builds, modify the proguard config to
only keep the methods/classes needed for unit tests in eng builds
The test proguard config probably is keeping too many methods. We should
also evaluate whether it is valid for unit test to use methods that are not
used in user builds
The resulting apk size is 8714188 bytes, from 9866129
According to the proguard output, the final number of program classes is
4409, from the previous count of 10932
Change-Id: Ie7065a454e1ff80a4b3f953684940d88b17f6db7
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk index dfdd97712..7dcbb4d34 100644 --- a/Android.mk +++ b/Android.mk @@ -55,6 +55,9 @@ LOCAL_STATIC_JAVA_LIBRARIES += owasp-html-sanitizer LOCAL_PACKAGE_NAME := Email LOCAL_PROGUARD_FLAG_FILES := proguard.flags $(unified_email_dir)/proguard.flags +ifeq (eng,$(TARGET_BUILD_VARIANT)) + LOCAL_PROGUARD_FLAG_FILES += proguard-test.flags +endif LOCAL_SDK_VERSION := current |