blob: 2a3a4857bf75f31908467e1411c6850f85944403 [file] [log] [blame]
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -08001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
Jean-Baptiste Queruac600532010-01-05 16:27:23 -08004LOCAL_MODULE_TAGS := optional
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -08005
Sai Cheemalapati974e1702014-06-20 14:52:03 -07006phone_common_dir := ../PhoneCommon
Chiao Cheng3a8df862012-09-04 16:30:17 -07007
Walter Janga6fb6d22016-08-10 09:37:52 -07008src_dirs := src src-bind $(phone_common_dir)/src
Arthur Wang3f6a2442016-12-05 14:51:59 -08009res_dirs := res $(phone_common_dir)/res
Walter Janga6fb6d22016-08-10 09:37:52 -070010asset_dirs := assets
Chiao Cheng3a8df862012-09-04 16:30:17 -070011
12LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs))
Aurimas Liutikasff267462017-11-15 12:14:33 -080013LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs))
Tingting Wang96101f62015-11-05 15:15:08 -080014LOCAL_ASSET_DIR := $(addprefix $(LOCAL_PATH)/, $(asset_dirs))
Chiao Cheng3a8df862012-09-04 16:30:17 -070015
Aurimas Liutikasff267462017-11-15 12:14:33 -080016LOCAL_STATIC_ANDROID_LIBRARIES := \
Aurimas Liutikas1f8811c2019-01-30 21:39:48 -080017 com.google.android.material_material \
Aravind Sreekumar71212852018-04-06 15:47:45 -070018 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 Liutikasff267462017-11-15 12:14:33 -080025
26LOCAL_STATIC_JAVA_LIBRARIES := \
27 android-common \
Tingting Wangdce1e682016-07-28 10:06:29 -070028 com.android.vcard \
29 guava \
Paul Duffinf9768052017-11-03 12:37:43 +000030 libphonenumber
Hugo Hudsonb002f512011-07-15 17:41:12 +010031
Aurimas Liutikasff267462017-11-15 12:14:33 -080032LOCAL_USE_AAPT2 := true
33
34LOCAL_AAPT_FLAGS := \
35 --auto-add-overlay \
36 --extra-packages com.android.phone.common
37
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -080038LOCAL_PACKAGE_NAME := Contacts
39LOCAL_CERTIFICATE := shared
Anton Hansson89840982019-01-11 14:49:42 +000040LOCAL_PRODUCT_MODULE := true
Christopher Tate8d0a1042013-05-10 14:09:52 -070041LOCAL_PRIVILEGED_MODULE := true
Anton Hansson89840982019-01-11 14:49:42 +000042LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.contacts
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -080043
Dan Willemsen476d2cb2017-11-17 13:30:57 -080044LOCAL_PROGUARD_FLAG_FILES := proguard.flags
Daniel Lehmann69bfe082010-03-04 21:25:03 -080045
Brian Attwell3c4d0412015-05-29 11:21:32 -070046LOCAL_SDK_VERSION := current
Walter Jangfdd3e582016-04-15 11:08:09 -070047LOCAL_MIN_SDK_VERSION := 21
Brian Attwell3c4d0412015-05-29 11:21:32 -070048
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -080049include $(BUILD_PACKAGE)
50
Walter Janga6fb6d22016-08-10 09:37:52 -070051# Use the following include to make our test apk.
The Android Open Source Project7aa0e4c2009-03-03 19:32:21 -080052include $(call all-makefiles-under,$(LOCAL_PATH))