samsung: doze: Build with AAPT2
authorBruno Martins <bgcngm@gmail.com>
Mon, 16 Oct 2017 00:33:15 +0000 (02:33 +0200)
committerJan Altensen <info@stricted.net>
Fri, 20 Mar 2020 13:56:42 +0000 (14:56 +0100)
Change-Id: Id0a60b490a504010dc8b3f16aa495044719a4062

doze/Android.mk

index a153362476b77f205bf3a1884eb5519eb9e5c665..18fd4c46fcf80b06b7ab755398985a76d93dc308 100644 (file)
@@ -9,25 +9,22 @@ LOCAL_PACKAGE_NAME := SamsungDoze
 LOCAL_CERTIFICATE := platform
 LOCAL_PRIVILEGED_MODULE := true
 
-LOCAL_STATIC_JAVA_LIBRARIES := \
+LOCAL_USE_AAPT2 := true
+
+LOCAL_STATIC_ANDROID_LIBRARIES := \
     android-support-v14-preference \
     android-support-v7-appcompat \
     android-support-v7-preference \
-    android-support-v7-recyclerview \
+    android-support-v7-recyclerview
+
+LOCAL_STATIC_JAVA_LIBRARIES := \
     org.lineageos.platform.internal
 
 LOCAL_PROGUARD_FLAG_FILES := proguard.flags
 
 LOCAL_RESOURCE_DIR := \
     $(LOCAL_PATH)/res \
-    $(LOCAL_PATH)/../../../../packages/resources/devicesettings/res \
-    frameworks/support/v14/preference/res \
-    frameworks/support/v7/appcompat/res \
-    frameworks/support/v7/preference/res \
-    frameworks/support/v7/recyclerview/res
-
-LOCAL_AAPT_FLAGS := --auto-add-overlay \
-    --extra-packages android.support.v14.preference:android.support.v7.appcompat:android.support.v7.preference:android.support.v7.recyclerview
+    $(TOP)/packages/resources/devicesettings/res
 
 ifneq ($(INCREMENTAL_BUILDS),)
     LOCAL_PROGUARD_ENABLED := disabled