diff options
author | Anton Hansson <hansson@google.com> | 2018-02-22 18:07:01 +0000 |
---|---|---|
committer | Anton Hansson <hansson@google.com> | 2018-02-22 18:07:01 +0000 |
commit | 0f1dc4be36b7fe56fdbee227f85db7d5bc137cb2 (patch) | |
tree | f02d4dd88aa19c3c45580e43489bbe7cea2af4b7 | |
parent | 25aaf23ef6e96694cb451215c1b8e969cc6aecfa (diff) | |
download | android_packages_providers_CalendarProvider-0f1dc4be36b7fe56fdbee227f85db7d5bc137cb2.tar.gz android_packages_providers_CalendarProvider-0f1dc4be36b7fe56fdbee227f85db7d5bc137cb2.tar.bz2 android_packages_providers_CalendarProvider-0f1dc4be36b7fe56fdbee227f85db7d5bc137cb2.zip |
packages/providers/CalendarProvider: 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: I511e394a3b36ca0800180cacd150346408abedb9
-rw-r--r-- | Android.mk | 1 | ||||
-rw-r--r-- | tests/Android.mk | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -27,6 +27,7 @@ LOCAL_SRC_FILES += \ src/com/android/providers/calendar/EventLogTags.logtags LOCAL_PACKAGE_NAME := CalendarProvider +LOCAL_PRIVATE_PLATFORM_APIS := true LOCAL_PRIVILEGED_MODULE := true diff --git a/tests/Android.mk b/tests/Android.mk index 86cac8a..07cf42c 100644 --- a/tests/Android.mk +++ b/tests/Android.mk @@ -8,6 +8,7 @@ LOCAL_MODULE_TAGS := tests LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_PACKAGE_NAME := CalendarProviderTests +LOCAL_PRIVATE_PLATFORM_APIS := true LOCAL_COMPATIBILITY_SUITE := device-tests LOCAL_STATIC_JAVA_LIBRARIES := calendar-common junit legacy-android-test |