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 package Bug: 73535841 Change-Id: I5196e8c7277ff86280782e7b479a499add2e8f9f
33 lines
805 B
Makefile
33 lines
805 B
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
|
|
LOCAL_PACKAGE_NAME := MotoActions
|
|
LOCAL_PRIVATE_PLATFORM_APIS := true
|
|
LOCAL_CERTIFICATE := platform
|
|
LOCAL_PROPRIETARY_MODULE := true
|
|
LOCAL_USE_AAPT2 := true
|
|
|
|
LOCAL_STATIC_ANDROID_LIBRARIES := \
|
|
android-support-v7-appcompat \
|
|
android-support-v7-preference \
|
|
android-support-v7-recyclerview \
|
|
android-support-v14-preference
|
|
|
|
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
|
|
|
|
LOCAL_RESOURCE_DIR := \
|
|
$(LOCAL_PATH)/res \
|
|
$(LOCAL_PATH)/../../../../packages/resources/devicesettings/res
|
|
|
|
LOCAL_PROGUARD_ENABLED := disabled
|
|
|
|
include frameworks/base/packages/SettingsLib/common.mk
|
|
|
|
include $(BUILD_PACKAGE)
|
|
|
|
include $(call all-makefiles-under,$(LOCAL_PATH))
|