diff options
author | Anton Hansson <hansson@google.com> | 2018-02-22 16:09:06 +0000 |
---|---|---|
committer | Anton Hansson <hansson@google.com> | 2018-02-23 16:29:24 +0000 |
commit | e477616485f138ff6cb8e753f13722f043947bc5 (patch) | |
tree | a33ffe4f614e51a25aa7bfcd605103108b3171f0 | |
parent | 112fa57f2c771de070d67bfd9119f09575d1b2d5 (diff) | |
download | BasicSmsReceiver-e477616485f138ff6cb8e753f13722f043947bc5.tar.gz |
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
-rwxr-xr-x | Android.mk | 3 | ||||
-rw-r--r-- | tests/Android.mk | 1 |
2 files changed, 2 insertions, 2 deletions
@@ -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 |