Doesn't appear to be needed. If it was needed, the right way to depend on this module is to specify LOCAL_SDK_VERSION. This particular module is getting deleted soon. RunSettingsRoboTests hangs with and without this change, so I can't really test the runtime effects of this change, but I don't think there are any (local_java_libraries only affects compilation). Test: Can't test - RunSettingsRoboTests hangs with and without this change. Bug: 77525052 Change-Id: I116cd8e9676823b6670c162aa3bbdafa516001c5 Merged-In: I9df619c3d68f0af2ee2ae944a15998275129f7c2
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
#############################################
|
|
# Settings Robolectric test target. #
|
|
#############################################
|
|
LOCAL_PATH:= $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
|
|
# Include the testing libraries (JUnit4 + Robolectric libs).
|
|
LOCAL_STATIC_JAVA_LIBRARIES := \
|
|
mockito-robolectric-prebuilt \
|
|
truth-prebuilt
|
|
|
|
LOCAL_JAVA_LIBRARIES := \
|
|
junit \
|
|
platform-robolectric-prebuilt \
|
|
telephony-common
|
|
|
|
LOCAL_INSTRUMENTATION_FOR := Settings
|
|
LOCAL_MODULE := SettingsRoboTests
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
include $(BUILD_STATIC_JAVA_LIBRARY)
|
|
|
|
#############################################################
|
|
# Settings runner target to run the previous target. #
|
|
#############################################################
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := RunSettingsRoboTests
|
|
|
|
LOCAL_SDK_VERSION := current
|
|
|
|
LOCAL_STATIC_JAVA_LIBRARIES := \
|
|
SettingsRoboTests
|
|
|
|
LOCAL_TEST_PACKAGE := Settings
|
|
|
|
LOCAL_INSTRUMENT_SOURCE_DIRS := $(dir $(LOCAL_PATH))../src
|
|
|
|
include prebuilts/misc/common/robolectric/run_robotests.mk
|