summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2017-03-01 13:21:09 +0000
committerPaul Duffin <paulduffin@google.com>2017-03-01 13:21:09 +0000
commitda92ebf816850d0fd3ffa907d1d65e1c77e5dc0e (patch)
tree614b39a755c336b9b7cd29d47435202f02cab492
parent918190a6475d6adf2b4d76ed20cbc486f6fb2c92 (diff)
downloadlibphonenumber-da92ebf816850d0fd3ffa907d1d65e1c77e5dc0e.tar.gz
Prepare for removal of junit and android.test classes from Android API (step 1)
In preparation for removing junit and android.test classes from the Android API this change adds explicit dependencies on junit and/or legacy-android-test to ensure that modules will compile properly once it is removed. Care was taken to ensure that any targets that depended, directly or indirectly, on android-support-test did not also depend on junit or hamcrest as they conflict with the versions embedded within android-support-test. Bug: 30188076 Test: make checkbuild Change-Id: I25c4e3f63a4fe767b1c7eb1d2c38fcc71682e775
-rw-r--r--Android.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index e0dce9e5..157fbd19 100644
--- a/Android.mk
+++ b/Android.mk
@@ -82,6 +82,6 @@ LOCAL_SRC_FILES := $(libphonenumber_test_files)
LOCAL_JAVA_RESOURCE_DIRS := $(libphonenumber_test_resource_dirs)
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
LOCAL_SDK_VERSION := current
-LOCAL_STATIC_JAVA_LIBRARIES := libphonenumber
+LOCAL_STATIC_JAVA_LIBRARIES := libphonenumber legacy-android-test junit
LOCAL_JAVA_LANGUAGE_VERSION := 1.7
include $(BUILD_STATIC_JAVA_LIBRARY)