cmsdk: Strip unused cmsdk members for codecoverage.

Change-Id: Id5437b11168d0dfd222cfc4abef2fc03629a17ca
TICKET: CYNGNOS-2189
This commit is contained in:
Adnan Begovic 2016-03-03 10:51:57 -08:00 committed by Gerrit Code Review
parent b3ea2859fd
commit ba01275cb4
2 changed files with 17 additions and 1 deletions

View File

@ -22,11 +22,14 @@ LOCAL_STATIC_JAVA_LIBRARIES := \
org.cyanogenmod.platform.sdk \
android-support-test
LOCAL_DEX_PREOPT := false
LOCAL_SRC_FILES := $(call all-subdir-java-files, src/)
LOCAL_PACKAGE_NAME := CMPlatformTests
LOCAL_CERTIFICATE := platform
LOCAL_JAVA_LIBRARIES := android.test.runner
LOCAL_PROGUARD_ENABLED := disabled
LOCAL_PROGUARD_ENABLED := optimization shrinktests
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
include $(BUILD_PACKAGE)

13
tests/proguard.flags Normal file
View File

@ -0,0 +1,13 @@
-injars ../../../out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes.jack
-dontskipnonpubliclibraryclasses
-dontskipnonpubliclibraryclassmembers
-dontwarn android.hardware.Sensor
-dontwarn android.test.AndroidTestRunner
-dontwarn java.util.concurrent.ConcurrentLinkedDeque
-dontwarn android.cts.util.**
-dontwarn junit.**
-forceprocessing
-dontobfuscate
-whyareyoukeeping class cyanogenmod.util.ColorUtils
-verbose
-dump fuck.txt