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 Change-Id: I5d2c0685b74ea5ba368c777d9646b9d3ac24dca9
27 lines
599 B
Makefile
27 lines
599 B
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
# We only want this apk build for tests.
|
|
LOCAL_MODULE_TAGS := tests
|
|
LOCAL_CERTIFICATE := platform
|
|
|
|
LOCAL_JAVA_LIBRARIES := android.test.runner bouncycastle
|
|
|
|
LOCAL_STATIC_JAVA_LIBRARIES := \
|
|
android-support-test \
|
|
mockito-target \
|
|
espresso-core \
|
|
espresso-contrib-nodep \
|
|
espresso-intents-nodep \
|
|
ub-uiautomator \
|
|
legacy-android-test
|
|
|
|
# Include all test java files.
|
|
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
|
|
LOCAL_PACKAGE_NAME := SettingsTests
|
|
|
|
LOCAL_INSTRUMENTATION_FOR := Settings
|
|
|
|
include $(BUILD_PACKAGE)
|