Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c8e893d authored by Anton Hansson's avatar Anton Hansson
Browse files

frameworks/av: 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: I616c59eede8627f73ed79c77b3a45c52eec1cd80
parent 91b22e5c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ LOCAL_CERTIFICATE := platform

# TODO: Use System SDK once public APIs are approved
# LOCAL_SDK_VERSION := system_current
LOCAL_PRIVATE_PLATFORM_APIS := true

LOCAL_SRC_FILES := \
    $(call all-java-files-under, src) \
+1 −0
Original line number Diff line number Diff line
@@ -25,4 +25,5 @@ LOCAL_STATIC_JAVA_LIBRARIES := \
    compatibility-device-util

LOCAL_PACKAGE_NAME := MediaComponentsTest
LOCAL_PRIVATE_PLATFORM_APIS := true
include $(BUILD_PACKAGE)