aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorAnton Hansson <hansson@google.com>2018-02-21 17:01:46 +0000
committerAnton Hansson <hansson@google.com>2018-02-21 17:01:46 +0000
commitf7653e8bd48c0582c57ad93955b675ee27e5e269 (patch)
treee119f667caf15d597162ee4e63bea6f460e1d070 /apps
parent084eae75de6ad242bbeb477b35938a42db80fab5 (diff)
downloadpdk-f7653e8bd48c0582c57ad93955b675ee27e5e269.tar.gz
pdk: 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: Idd87516c71d2d0f90484b1fbf1ae424a535912e8
Diffstat (limited to 'apps')
-rw-r--r--apps/HelloPDK/Android.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/HelloPDK/Android.mk b/apps/HelloPDK/Android.mk
index fc3b139..1174bd2 100644
--- a/apps/HelloPDK/Android.mk
+++ b/apps/HelloPDK/Android.mk
@@ -25,6 +25,7 @@ LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := HelloPDK
+LOCAL_SDK_VERSION := current
LOCAL_JNI_SHARED_LIBRARIES := libhellojni_jni