Enforce specifying sdk/private for apps.

am: 49b67af95e

Change-Id: I0ee4ac79d751cba874e5f5810991d8f59645d441
This commit is contained in:
Anton Hansson 2018-03-08 15:37:26 +00:00 committed by android-build-merger
commit 8ece80aeb3
1 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,11 @@
whitelisted_modules := framework-res__auto_generated_rro
ifeq (,$(JAVA_SDK_ENFORCEMENT_ERROR))
JAVA_SDK_ENFORCEMENT_ERROR := APPS
endif
ifeq ($(LOCAL_SDK_VERSION)$(LOCAL_PRIVATE_PLATFORM_APIS),)
ifeq (,$(filter $(LOCAL_MODULE),$(whitelisted_modules)))
ifneq ($(JAVA_SDK_ENFORCEMENT_WARNING)$(JAVA_SDK_ENFORCEMENT_ERROR),)