From ece9aa8f6491f2324b7e31c5159251520cc9cb4c Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Thu, 22 Feb 2018 16:12:23 +0000 Subject: packages/apps/PhoneCommon: 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: Ia9e1d667d51225b4ef03c8946f34c55e97757109 --- Android.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/Android.mk b/Android.mk index c12b37d..11b2d04 100644 --- a/Android.mk +++ b/Android.mk @@ -21,6 +21,7 @@ LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_RESOURCE_FILES := $(addprefix $(LOCAL_PATH)/, res) LOCAL_PACKAGE_NAME := com.android.phone.common +LOCAL_SDK_VERSION := current include $(BUILD_PACKAGE) include $(CLEAR_VARS) -- cgit v1.2.3