From 62c7de3792d77dbb6df2a999d37a5e9307a72367 Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Wed, 7 Mar 2018 10:20:53 +0000 Subject: [PATCH] Enforce specifying sdk/private for apps. DO NOT MERGE All apps in master comply with this now, but new offenders are being added daily. This will ensure compliance going forward. Test: build/soong/build_test.bash Bug: 73535841 Change-Id: If28049750a9787bf455f72402e624dbddf842253 --- core/sdk_check.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/sdk_check.mk b/core/sdk_check.mk index 49ea2a8c9..c09fc7cae 100644 --- a/core/sdk_check.mk +++ b/core/sdk_check.mk @@ -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),)