Prepare for removal of legacy-test from default targets

In preparation for removing junit classes from the Android API
the legacy-test target will be removed from the
TARGET_DEFAULT_JAVA_LIBRARIES. This change adds explicit
dependencies on junit and/or legacy-android-test to ensure that
modules will compile properly once it is removed.

Bug: 30188076
Test: make checkbuild
Merged-In: I5d2c0685b74ea5ba368c777d9646b9d3ac24dca9
Change-Id: I980111b4b83d16ccd9d3a277ab2587bf638a2c8a
This commit is contained in:
Paul Duffin
2017-01-17 14:49:42 +00:00
parent b057b2da02
commit b67ddbbd25
2 changed files with 4 additions and 2 deletions

View File

@@ -13,7 +13,8 @@ LOCAL_STATIC_JAVA_LIBRARIES := \
espresso-core \
espresso-contrib-nodep \
espresso-intents-nodep \
ub-uiautomator
ub-uiautomator \
legacy-android-test
# Include all test java files.
LOCAL_SRC_FILES := $(call all-java-files-under, src)

View File

@@ -10,7 +10,8 @@ LOCAL_JAVA_LIBRARIES := android.test.runner
LOCAL_STATIC_JAVA_LIBRARIES := \
android-support-test \
mockito-target \
espresso-core
espresso-core \
legacy-android-test
# Include all test java files.
LOCAL_SRC_FILES := $(call all-java-files-under, src)