aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hansson <hansson@google.com>2018-02-22 17:46:54 +0000
committerAnton Hansson <hansson@google.com>2018-02-22 17:47:19 +0000
commita4baee7fe55f82ec0576aa173e5e6555fe8552ea (patch)
tree90f66e2ac2376074c9e13b5140c9ce9c0d46b195
parent5151af823c9c03bedd30b41caaa01e53e3324c76 (diff)
downloadcalendar-a4baee7fe55f82ec0576aa173e5e6555fe8552ea.tar.gz
frameworks/opt/calendar: Set LOCAL_SDK_VERSION where possible.
This change sets LOCAL_SDK_VERSION for all packages where this is possible without breaking the build, and LOCAL_PRIVATE_PLATFORM_APIS := true otherwise. Setting one of these two will be made required soon, and this is a change in preparation for that. Not setting LOCAL_SDK_VERSION makes the app implicitly depend on the bootclasspath, which is often not required. This change effectively makes depending on private apis opt-in rather than opt-out. Test: make relevant packages Bug: 73535841 Change-Id: I6b6411cb008ddaf9f1aac419bf7432b3215f100a
-rw-r--r--tests/Android.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/Android.mk b/tests/Android.mk
index f35756f..d766463 100644
--- a/tests/Android.mk
+++ b/tests/Android.mk
@@ -17,8 +17,9 @@ include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := tests
LOCAL_PACKAGE_NAME := CalendarCommonTests
+LOCAL_SDK_VERSION := current
LOCAL_SRC_FILES := $(call all-java-files-under, src)
-LOCAL_JAVA_LIBRARIES := android.test.runner android.test.base
+LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs
LOCAL_STATIC_JAVA_LIBRARIES := calendar-common junit
include $(BUILD_PACKAGE)