summaryrefslogtreecommitdiff
path: root/tests/RemoteDisplayProvider
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2018-02-22 16:21:14 +0900
committerJiyong Park <jiyong@google.com>2018-02-28 09:45:40 +0900
commitbc697b6abf61f6940f37661ec58aa1288edcc51e (patch)
tree4ba7ce0d33099a2eaf97dc2aa153161701fb69f7 /tests/RemoteDisplayProvider
parent2016c0f4f6de20411257ed84d4fc1aa3d6226d41 (diff)
Fix link-type check warning on com.android.media.remotedisplay
The library has been built without SDK, and is used by an app RemoteDisplayProviderTest that is built with SDK. Such this SDK -> non-SDK dependency has been causing link-type check warnings, which will turn into errors soon. This change fixes the warning by making a stub library com.android.media.remotedisplay.stubs from the runtime library and let the app to link against the stub library. Since the stubs library does not use any private APIs, it is built with SDK. Bug: 69899800 Test: m -j RemoteDisplayProviderTest is successful and does not show any link-type check warning. Change-Id: I7ee297a9d1aa4f01136b9a026a4939df2d483b8c
Diffstat (limited to 'tests/RemoteDisplayProvider')
-rw-r--r--tests/RemoteDisplayProvider/Android.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/RemoteDisplayProvider/Android.mk b/tests/RemoteDisplayProvider/Android.mk
index 2f4b34324c31..e827ec20ae3e 100644
--- a/tests/RemoteDisplayProvider/Android.mk
+++ b/tests/RemoteDisplayProvider/Android.mk
@@ -21,6 +21,6 @@ LOCAL_MODULE_TAGS := tests
LOCAL_SDK_VERSION := current
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_RESOURCE_DIR = $(LOCAL_PATH)/res
-LOCAL_JAVA_LIBRARIES := com.android.media.remotedisplay
+LOCAL_JAVA_LIBRARIES := com.android.media.remotedisplay.stubs
LOCAL_CERTIFICATE := platform
include $(BUILD_PACKAGE)