msm8937-common: Doze: Build with AAPT2

Change-Id: Iab14804817e6b90bf4d773d9359a04f1e119264a
This commit is contained in:
Bruno Martins 2017-10-08 10:33:36 +01:00 committed by Isaac Chen
parent e2ae78bbd7
commit f601f8c507

View file

@ -8,25 +8,23 @@ LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := XiaomiDoze LOCAL_PACKAGE_NAME := XiaomiDoze
LOCAL_CERTIFICATE := platform LOCAL_CERTIFICATE := platform
LOCAL_PRIVILEGED_MODULE := true LOCAL_PRIVILEGED_MODULE := true
LOCAL_STATIC_JAVA_LIBRARIES := \
LOCAL_USE_AAPT2 := true
LOCAL_STATIC_ANDROID_LIBRARIES := \
android-support-v4 \ android-support-v4 \
android-support-v13 \ android-support-v13 \
android-support-v7-recyclerview \ android-support-v7-recyclerview \
android-support-v7-preference \ android-support-v7-preference \
android-support-v7-appcompat \ android-support-v7-appcompat \
android-support-v14-preference \ android-support-v14-preference \
LOCAL_STATIC_JAVA_LIBRARIES := \
org.lineageos.platform.internal org.lineageos.platform.internal
LOCAL_RESOURCE_DIR := \ LOCAL_RESOURCE_DIR := \
$(LOCAL_PATH)/res \ $(LOCAL_PATH)/res \
$(LOCAL_PATH)/../../../../packages/resources/devicesettings/res \ $(TOP)/packages/resources/devicesettings/res
frameworks/support/v7/preference/res \
frameworks/support/v14/preference/res \
frameworks/support/v7/appcompat/res \
frameworks/support/v7/recyclerview/res
LOCAL_AAPT_FLAGS := --auto-add-overlay \
--extra-packages android.support.v7.preference:android.support.v14.preference:android.support.v17.preference:android.support.v7.appcompat:android.support.v7.recyclerview
LOCAL_PROGUARD_FLAG_FILES := proguard.flags LOCAL_PROGUARD_FLAG_FILES := proguard.flags