Merge "Enable <uses-library> check for WTS" into main am: bbce78d721

Original change: https://android-review.googlesource.com/c/platform/build/+/3109347

Change-Id: Idef740bdafd2d3d028ee1c3120aea773f234719c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2024-06-01 01:09:45 +00:00
committed by Automerger Merge Worker

View File

@@ -202,6 +202,12 @@ ifneq (,$(filter $(LOCAL_MODULE_TAGS),tests))
endif endif
ifneq (,$(LOCAL_COMPATIBILITY_SUITE)) ifneq (,$(LOCAL_COMPATIBILITY_SUITE))
LOCAL_ENFORCE_USES_LIBRARIES := false LOCAL_ENFORCE_USES_LIBRARIES := false
# Enable the check for WTS
ifneq ($(filter wts,$(LOCAL_COMPATIBILITY_SUITE)),)
LOCAL_ENFORCE_USES_LIBRARIES := true
endif
endif endif
# Disable the check if the app contains no java code. # Disable the check if the app contains no java code.