summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hansson <hansson@google.com>2018-02-21 14:11:44 +0000
committerAdrian DC <radian.dc@gmail.com>2018-08-11 12:21:58 +0200
commitf46ec38bf484e80a858a201097359a333057093c (patch)
treeeb271541cbf935fe115506ce07694716b5944047
parent08e04504cb6d1b02091846f2978d7471d994c47e (diff)
FMRadio: Set LOCAL_PRIVATE_PLATFORM_APIS
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: Ib244e0b7de264191a94d8b0e6512be2a580ec59f
-rw-r--r--Android.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 1fc1a34..a04ca4f 100644
--- a/Android.mk
+++ b/Android.mk
@@ -28,6 +28,9 @@ LOCAL_CERTIFICATE := platform
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := FMRadio
+
+LOCAL_PRIVATE_PLATFORM_APIS := true
+
LOCAL_JNI_SHARED_LIBRARIES := libfmjni
LOCAL_PROGUARD_ENABLED := disabled