Fix link-type check warning on libSharedSystemUI

There has been a link-type check warning on libSharedSystemUI
the prebuilt lib is built without SDK but the app using it
(Launcher3QuickStep) is built with SDK. Since this effectively prevents
the app from being unbundled, such warning will turn into errors soon.

However, the lib isn't ready to be built with SDK yet. So, in order to
suppress the link-type check warning until then, the prebuilt lib is
added with LOCAL_SDK_VERSION := current.

Bug: 69899800
Bug: 73327733
Test: m -j Launcher3QuickStep is successful and does not show any
link-type check warning

Change-Id: Ifd74bfee8c608e099737bd46569b05f007c1e86b
This commit is contained in:
Jiyong Park 2018-02-23 18:02:11 +09:00 committed by Sunny Goyal
parent a12bd507d1
commit 1bb730c5e9
1 changed files with 7 additions and 3 deletions

View File

@ -20,9 +20,13 @@ LOCAL_PATH := $(call my-dir)
# Prebuilt Java Libraries
#
include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \
libSharedSystemUI:quickstep/libs/sysui_shared.jar
include $(BUILD_MULTI_PREBUILT)
LOCAL_MODULE := libSharedSystemUI
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := JAVA_LIBRARIES
LOCAL_SRC_FILES := quickstep/libs/sysui_shared.jar
LOCAL_UNINSTALLABLE_MODULE := true
LOCAL_SDK_VERSION := current
include $(BUILD_PREBUILT)
#
# Build rule for Launcher3 app.