aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorAnton Hansson <hansson@google.com>2018-02-21 14:11:44 +0000
committerAnton Hansson <hansson@google.com>2018-02-21 14:11:44 +0000
commit76f3b39382f2415c31c12de0109114a5d515b866 (patch)
tree179e05c9c9c679ca85190dd6558efb5d5b208b47 /apps
parentc4fd38b47eaed75ee7e6af8e601a521abdc68f45 (diff)
downloadsample-76f3b39382f2415c31c12de0109114a5d515b866.tar.gz
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: Ifa7a5500bd1c47e389f5523bdf635e28bc3569dd
Diffstat (limited to 'apps')
-rw-r--r--apps/SampleEmailPolicy/Android.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/SampleEmailPolicy/Android.mk b/apps/SampleEmailPolicy/Android.mk
index 9217018..a8453c1 100644
--- a/apps/SampleEmailPolicy/Android.mk
+++ b/apps/SampleEmailPolicy/Android.mk
@@ -28,6 +28,7 @@ LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := SampleEmailPolicy
+LOCAL_SDK_VERSION := current
LOCAL_CERTIFICATE := platform
LOCAL_PROGUARD_FLAG_FILES := proguard.flags