From 5bfee7faac8b6cce4b8dce56c701fdc4eabd173b Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Wed, 21 Feb 2018 14:13:16 +0000 Subject: 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: Iccca8c1115b3169fa5847e4513adfdfb44915637 --- Android.bp | 1 + 1 file changed, 1 insertion(+) (limited to 'Android.bp') diff --git a/Android.bp b/Android.bp index c2909e7..10f4ba2 100644 --- a/Android.bp +++ b/Android.bp @@ -35,6 +35,7 @@ java_library_host { java_library_static { name: "objenesis-tck", no_framework_libs: true, + sdk_version: "current", static_libs: ["objenesis"], srcs: ["tck/src/main/java/**/*.java"], -- cgit v1.2.3