From e477616485f138ff6cb8e753f13722f043947bc5 Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Thu, 22 Feb 2018 16:09:06 +0000 Subject: packages/apps/BasicSmsReceiver: 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: I2b3321134f1500438513e9fec104f239cf067b0b --- Android.mk | 3 +-- tests/Android.mk | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Android.mk b/Android.mk index 50d2f1c..4463e3f 100755 --- a/Android.mk +++ b/Android.mk @@ -10,8 +10,7 @@ LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_PACKAGE_NAME := BasicSmsReceiver -# Builds against the public SDK -#LOCAL_SDK_VERSION := current +LOCAL_PRIVATE_PLATFORM_APIS := true LOCAL_PROGUARD_FLAG_FILES := proguard.flags diff --git a/tests/Android.mk b/tests/Android.mk index e6eb52d..912b8cf 100644 --- a/tests/Android.mk +++ b/tests/Android.mk @@ -29,6 +29,7 @@ LOCAL_SRC_FILES := $(call all-java-files-under, src) # automatically get all of its classes loaded into our environment. LOCAL_PACKAGE_NAME := BasicSmsReceiverTests +LOCAL_PRIVATE_PLATFORM_APIS := true LOCAL_INSTRUMENTATION_FOR := BasicSmsReceiver -- cgit v1.2.3