Merge "Enforce specifying sdk/private for apps." into stage-aosp-master

This commit is contained in:
Anton Hansson 2018-04-05 10:45:18 +00:00 committed by Android (Google) Code Review
commit 16f8f3c4a7
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),)