Joey | ebb5f5f | 2019-04-23 22:37:58 +0200 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2017-2018 The LineageOS Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| 17 | LOCAL_PATH := $(call my-dir) |
| 18 | include $(CLEAR_VARS) |
| 19 | |
| 20 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res |
| 21 | |
| 22 | ifeq ($(shell test $(TARGET_SCREEN_WIDTH) -gt 1080; echo $$?),0) |
| 23 | LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res_1440p |
| 24 | else |
| 25 | LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res_1080p |
| 26 | endif |
| 27 | |
| 28 | LOCAL_SRC_FILES := \ |
Joey | 4e0c7f4 | 2019-04-30 11:33:20 +0200 | [diff] [blame^] | 29 | $(call all-java-files-under, java) |
Joey | ebb5f5f | 2019-04-23 22:37:58 +0200 | [diff] [blame] | 30 | |
| 31 | LOCAL_USE_AAPT2 := true |
| 32 | |
| 33 | LOCAL_STATIC_ANDROID_LIBRARIES := \ |
| 34 | androidx.annotation_annotation \ |
| 35 | androidx.appcompat_appcompat \ |
| 36 | androidx.palette_palette \ |
| 37 | androidx.recyclerview_recyclerview \ |
Joey | d95d371 | 2019-04-25 14:31:44 +0200 | [diff] [blame] | 38 | androidx.transition_transition \ |
| 39 | com.google.android.material_material |
Joey | ebb5f5f | 2019-04-23 22:37:58 +0200 | [diff] [blame] | 40 | |
| 41 | LOCAL_PACKAGE_NAME := Backgrounds |
| 42 | |
| 43 | LOCAL_PROGUARD_FLAG_FILES := ../../proguard-rules.pro |
| 44 | |
| 45 | LOCAL_AAPT_FLAGS := --auto-add-overlay |
| 46 | |
| 47 | LOCAL_SDK_VERSION := current |
| 48 | |
| 49 | include $(BUILD_PACKAGE) |