Add LOCAL_OPTIONAL_USES_LIBRARIES to fix #36

This commit is contained in:
Pete Fotheringham 2024-12-26 08:26:59 +00:00 committed by GitHub
parent 5738e0fb05
commit 39fbb15566
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,5 +23,10 @@ LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_CERTIFICATE := PRESIGNED
LOCAL_REQUIRED_MODULES := privapp-permissions-com.android.vending.xml default-permissions-com.android.vending.xml
LOCAL_PRODUCT_MODULE := true
# this line will break builds before 19.1 so make them conditional
ifneq ($(call math_gt_or_eq, $(PLATFORM_SDK_VERSION), 31),)
LOCAL_OPTIONAL_USES_LIBRARIES := androidx.window.extensions androidx.window.sidecar
endif
include $(BUILD_PREBUILT)