The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
Jean-Baptiste Queru | ac60053 | 2010-01-05 16:27:23 -0800 | [diff] [blame] | 4 | LOCAL_MODULE_TAGS := optional |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 5 | |
Sai Cheemalapati | 974e170 | 2014-06-20 14:52:03 -0700 | [diff] [blame] | 6 | phone_common_dir := ../PhoneCommon |
Chiao Cheng | 3a8df86 | 2012-09-04 16:30:17 -0700 | [diff] [blame] | 7 | |
Walter Jang | a6fb6d2 | 2016-08-10 09:37:52 -0700 | [diff] [blame] | 8 | src_dirs := src src-bind $(phone_common_dir)/src |
Arthur Wang | 3f6a244 | 2016-12-05 14:51:59 -0800 | [diff] [blame] | 9 | res_dirs := res $(phone_common_dir)/res |
Walter Jang | a6fb6d2 | 2016-08-10 09:37:52 -0700 | [diff] [blame] | 10 | asset_dirs := assets |
Chiao Cheng | 3a8df86 | 2012-09-04 16:30:17 -0700 | [diff] [blame] | 11 | |
| 12 | LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs)) |
Aurimas Liutikas | ff26746 | 2017-11-15 12:14:33 -0800 | [diff] [blame] | 13 | LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs)) |
Tingting Wang | 96101f6 | 2015-11-05 15:15:08 -0800 | [diff] [blame] | 14 | LOCAL_ASSET_DIR := $(addprefix $(LOCAL_PATH)/, $(asset_dirs)) |
Chiao Cheng | 3a8df86 | 2012-09-04 16:30:17 -0700 | [diff] [blame] | 15 | |
Aurimas Liutikas | ff26746 | 2017-11-15 12:14:33 -0800 | [diff] [blame] | 16 | LOCAL_STATIC_ANDROID_LIBRARIES := \ |
Aurimas Liutikas | 1f8811c | 2019-01-30 21:39:48 -0800 | [diff] [blame] | 17 | com.google.android.material_material \ |
Aravind Sreekumar | 7121285 | 2018-04-06 15:47:45 -0700 | [diff] [blame] | 18 | androidx.transition_transition \ |
| 19 | androidx.legacy_legacy-support-v13 \ |
| 20 | androidx.appcompat_appcompat \ |
| 21 | androidx.cardview_cardview \ |
| 22 | androidx.recyclerview_recyclerview \ |
| 23 | androidx.palette_palette \ |
| 24 | androidx.legacy_legacy-support-v4 |
Aurimas Liutikas | ff26746 | 2017-11-15 12:14:33 -0800 | [diff] [blame] | 25 | |
| 26 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
| 27 | android-common \ |
Tingting Wang | dce1e68 | 2016-07-28 10:06:29 -0700 | [diff] [blame] | 28 | com.android.vcard \ |
| 29 | guava \ |
Paul Duffin | f976805 | 2017-11-03 12:37:43 +0000 | [diff] [blame] | 30 | libphonenumber |
Hugo Hudson | b002f51 | 2011-07-15 17:41:12 +0100 | [diff] [blame] | 31 | |
Aurimas Liutikas | ff26746 | 2017-11-15 12:14:33 -0800 | [diff] [blame] | 32 | LOCAL_USE_AAPT2 := true |
| 33 | |
| 34 | LOCAL_AAPT_FLAGS := \ |
| 35 | --auto-add-overlay \ |
| 36 | --extra-packages com.android.phone.common |
| 37 | |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 38 | LOCAL_PACKAGE_NAME := Contacts |
| 39 | LOCAL_CERTIFICATE := shared |
Anton Hansson | 8984098 | 2019-01-11 14:49:42 +0000 | [diff] [blame] | 40 | LOCAL_PRODUCT_MODULE := true |
Christopher Tate | 8d0a104 | 2013-05-10 14:09:52 -0700 | [diff] [blame] | 41 | LOCAL_PRIVILEGED_MODULE := true |
Anton Hansson | 8984098 | 2019-01-11 14:49:42 +0000 | [diff] [blame] | 42 | LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.contacts |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 43 | |
Dan Willemsen | 476d2cb | 2017-11-17 13:30:57 -0800 | [diff] [blame] | 44 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags |
Daniel Lehmann | 69bfe08 | 2010-03-04 21:25:03 -0800 | [diff] [blame] | 45 | |
Brian Attwell | 3c4d041 | 2015-05-29 11:21:32 -0700 | [diff] [blame] | 46 | LOCAL_SDK_VERSION := current |
Walter Jang | fdd3e58 | 2016-04-15 11:08:09 -0700 | [diff] [blame] | 47 | LOCAL_MIN_SDK_VERSION := 21 |
Brian Attwell | 3c4d041 | 2015-05-29 11:21:32 -0700 | [diff] [blame] | 48 | |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 49 | include $(BUILD_PACKAGE) |
| 50 | |
Walter Jang | a6fb6d2 | 2016-08-10 09:37:52 -0700 | [diff] [blame] | 51 | # Use the following include to make our test apk. |
The Android Open Source Project | 7aa0e4c | 2009-03-03 19:32:21 -0800 | [diff] [blame] | 52 | include $(call all-makefiles-under,$(LOCAL_PATH)) |