aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2017-03-01 12:41:15 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-03-01 12:41:15 +0000
commitbc1c89a8bf21b91dd52036f6ef63489fc3bc779a (patch)
tree27bbc22a588ff927aebaafda553bd719061eb3ba
parent15f2bcf5c5207dffe9cfccf153cdff85afce8447 (diff)
parent2baece252fc77206c0f894ea3ca060166292ca7e (diff)
downloadokhttp-oreo-vts-release.tar.gz
am: 2baece252f Change-Id: I4e8dd05272e1bcef6032c89f022856ad70ed36e9
-rw-r--r--Android.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 2312391..cea6eb5 100644
--- a/Android.mk
+++ b/Android.mk
@@ -52,6 +52,20 @@ LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
LOCAL_JAVA_LANGUAGE_VERSION := 1.7
include $(BUILD_JAVA_LIBRARY)
+# A guaranteed unstripped version of okhttp.
+# The build system may or may not strip the okhttp jar, but this one will
+# not be stripped. See b/24535627.
+include $(CLEAR_VARS)
+LOCAL_MODULE := okhttp-testdex
+LOCAL_MODULE_TAGS := optional
+LOCAL_SRC_FILES := $(okhttp_system_src_files)
+LOCAL_JARJAR_RULES := $(LOCAL_PATH)/jarjar-rules.txt
+LOCAL_JAVA_LIBRARIES := core-oj core-libart
+LOCAL_NO_STANDARD_LIBRARIES := true
+LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
+LOCAL_JAVA_LANGUAGE_VERSION := 1.7
+include $(BUILD_JAVA_LIBRARY)
+
# non-jarjar'd version of okhttp to compile the tests against
include $(CLEAR_VARS)
LOCAL_MODULE := okhttp-nojarjar