Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 1 | # Local modifications: |
Eric Erfanian | 9a090c8 | 2017-03-16 19:22:24 -0700 | [diff] [blame] | 2 | # * removed com.google.android.backup.api_key. This should be added to |
| 3 | # the manifest in the top level directory. |
| 4 | # * removed com.google.android.geo.API_KEY key. This should be added to |
| 5 | # the manifest files in java/com/android/incallui/calllocation/impl/ |
| 6 | # and /java/com/android/incallui/maps/impl/ |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 7 | LOCAL_PATH:= $(call my-dir) |
| 8 | include $(CLEAR_VARS) |
| 9 | |
Kirill Grouchnikov | fa34097 | 2017-05-16 01:32:43 +0000 | [diff] [blame] | 10 | ifeq ($(TARGET_BUILD_APPS),) |
| 11 | support_library_root_dir := frameworks/support |
| 12 | else |
| 13 | support_library_root_dir := prebuilts/sdk/current/support |
| 14 | endif |
| 15 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 16 | # The base directory for Dialer sources. |
| 17 | BASE_DIR := java/com/android |
Jay Shrauner | 0f68a71 | 2014-07-16 16:13:57 -0700 | [diff] [blame] | 18 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 19 | # Primary dialer module sources. |
| 20 | SRC_DIRS := \ |
| 21 | $(BASE_DIR)/contacts/common \ |
| 22 | $(BASE_DIR)/dialer \ |
| 23 | $(BASE_DIR)/incallui \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 24 | $(BASE_DIR)/voicemail |
| 25 | |
| 26 | # Exclude files incompatible with AOSP. |
| 27 | EXCLUDE_FILES := \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 28 | $(BASE_DIR)/incallui/calllocation/impl/AuthException.java \ |
| 29 | $(BASE_DIR)/incallui/calllocation/impl/CallLocationImpl.java \ |
| 30 | $(BASE_DIR)/incallui/calllocation/impl/CallLocationModule.java \ |
| 31 | $(BASE_DIR)/incallui/calllocation/impl/DownloadMapImageTask.java \ |
| 32 | $(BASE_DIR)/incallui/calllocation/impl/GoogleLocationSettingHelper.java \ |
| 33 | $(BASE_DIR)/incallui/calllocation/impl/HttpFetcher.java \ |
| 34 | $(BASE_DIR)/incallui/calllocation/impl/LocationFragment.java \ |
| 35 | $(BASE_DIR)/incallui/calllocation/impl/LocationHelper.java \ |
| 36 | $(BASE_DIR)/incallui/calllocation/impl/LocationPresenter.java \ |
| 37 | $(BASE_DIR)/incallui/calllocation/impl/LocationUrlBuilder.java \ |
| 38 | $(BASE_DIR)/incallui/calllocation/impl/ReverseGeocodeTask.java \ |
| 39 | $(BASE_DIR)/incallui/calllocation/impl/TrafficStatsTags.java \ |
| 40 | $(BASE_DIR)/incallui/maps/impl/MapsImpl.java \ |
| 41 | $(BASE_DIR)/incallui/maps/impl/MapsModule.java \ |
| 42 | $(BASE_DIR)/incallui/maps/impl/StaticMapFragment.java |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 43 | |
Paul Duffin | 922b108 | 2017-05-05 15:05:47 +0100 | [diff] [blame] | 44 | # Exclude testing only class, not used anywhere here |
| 45 | EXCLUDE_FILES += \ |
| 46 | $(BASE_DIR)/contacts/common/format/testing/SpannedTestUtils.java |
| 47 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 48 | # All Dialers resources. |
| 49 | # find . -type d -name "res" | uniq | sort |
| 50 | RES_DIRS := \ |
| 51 | assets/product/res \ |
| 52 | assets/quantum/res \ |
| 53 | $(BASE_DIR)/contacts/common/res \ |
Eric Erfanian | c857f90 | 2017-05-15 14:05:33 -0700 | [diff] [blame] | 54 | $(BASE_DIR)/dialer/about/res \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 55 | $(BASE_DIR)/dialer/app/res \ |
| 56 | $(BASE_DIR)/dialer/app/voicemail/error/res \ |
| 57 | $(BASE_DIR)/dialer/blocking/res \ |
| 58 | $(BASE_DIR)/dialer/callcomposer/camera/camerafocus/res \ |
| 59 | $(BASE_DIR)/dialer/callcomposer/cameraui/res \ |
| 60 | $(BASE_DIR)/dialer/callcomposer/res \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 61 | $(BASE_DIR)/dialer/calldetails/res \ |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 62 | $(BASE_DIR)/dialer/calllog/ui/res \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 63 | $(BASE_DIR)/dialer/calllogutils/res \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 64 | $(BASE_DIR)/dialer/common/res \ |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 65 | $(BASE_DIR)/dialer/contactsfragment/res \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 66 | $(BASE_DIR)/dialer/dialpadview/res \ |
| 67 | $(BASE_DIR)/dialer/interactions/res \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 68 | $(BASE_DIR)/dialer/notification/res \ |
| 69 | $(BASE_DIR)/dialer/oem/res \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 70 | $(BASE_DIR)/dialer/phonenumberutil/res \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 71 | $(BASE_DIR)/dialer/postcall/res \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 72 | $(BASE_DIR)/dialer/shortcuts/res \ |
Eric Erfanian | d8046e5 | 2017-04-06 09:41:50 -0700 | [diff] [blame] | 73 | $(BASE_DIR)/dialer/speeddial/res \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 74 | $(BASE_DIR)/dialer/theme/res \ |
| 75 | $(BASE_DIR)/dialer/util/res \ |
| 76 | $(BASE_DIR)/dialer/voicemailstatus/res \ |
| 77 | $(BASE_DIR)/dialer/widget/res \ |
| 78 | $(BASE_DIR)/incallui/answer/impl/affordance/res \ |
| 79 | $(BASE_DIR)/incallui/answer/impl/answermethod/res \ |
| 80 | $(BASE_DIR)/incallui/answer/impl/hint/res \ |
| 81 | $(BASE_DIR)/incallui/answer/impl/res \ |
| 82 | $(BASE_DIR)/incallui/audioroute/res \ |
| 83 | $(BASE_DIR)/incallui/autoresizetext/res \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 84 | $(BASE_DIR)/incallui/calllocation/impl/res \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 85 | $(BASE_DIR)/incallui/commontheme/res \ |
| 86 | $(BASE_DIR)/incallui/contactgrid/res \ |
| 87 | $(BASE_DIR)/incallui/hold/res \ |
| 88 | $(BASE_DIR)/incallui/incall/impl/res \ |
| 89 | $(BASE_DIR)/incallui/res \ |
| 90 | $(BASE_DIR)/incallui/sessiondata/res \ |
Eric Erfanian | c857f90 | 2017-05-15 14:05:33 -0700 | [diff] [blame] | 91 | $(BASE_DIR)/incallui/telecomeventui/res \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 92 | $(BASE_DIR)/incallui/video/impl/res \ |
Eric Erfanian | d8046e5 | 2017-04-06 09:41:50 -0700 | [diff] [blame] | 93 | $(BASE_DIR)/incallui/video/protocol/res \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 94 | $(BASE_DIR)/incallui/wifi/res \ |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 95 | $(BASE_DIR)/voicemail/impl/res \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 96 | |
Ta-wei Yen | 90a13e9 | 2016-01-11 13:00:53 -0800 | [diff] [blame] | 97 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 98 | # Dialer manifest files to merge. |
| 99 | # find . -type f -name "AndroidManifest.xml" | uniq | sort |
| 100 | DIALER_MANIFEST_FILES += \ |
| 101 | $(BASE_DIR)/contacts/common/AndroidManifest.xml \ |
Eric Erfanian | c857f90 | 2017-05-15 14:05:33 -0700 | [diff] [blame] | 102 | $(BASE_DIR)/dialer/about/AndroidManifest.xml \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 103 | $(BASE_DIR)/dialer/app/AndroidManifest.xml \ |
| 104 | $(BASE_DIR)/dialer/app/manifests/activities/AndroidManifest.xml \ |
| 105 | $(BASE_DIR)/dialer/app/voicemail/error/AndroidManifest.xml \ |
| 106 | $(BASE_DIR)/dialer/backup/AndroidManifest.xml \ |
| 107 | $(BASE_DIR)/dialer/blocking/AndroidManifest.xml \ |
| 108 | $(BASE_DIR)/dialer/callcomposer/AndroidManifest.xml \ |
| 109 | $(BASE_DIR)/dialer/callcomposer/camera/AndroidManifest.xml \ |
| 110 | $(BASE_DIR)/dialer/callcomposer/camera/camerafocus/AndroidManifest.xml \ |
| 111 | $(BASE_DIR)/dialer/callcomposer/cameraui/AndroidManifest.xml \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 112 | $(BASE_DIR)/dialer/calldetails/AndroidManifest.xml \ |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 113 | $(BASE_DIR)/dialer/calllog/ui/AndroidManifest.xml \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 114 | $(BASE_DIR)/dialer/calllogutils/AndroidManifest.xml \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 115 | $(BASE_DIR)/dialer/common/AndroidManifest.xml \ |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 116 | $(BASE_DIR)/dialer/contactsfragment/AndroidManifest.xml \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 117 | $(BASE_DIR)/dialer/dialpadview/AndroidManifest.xml \ |
| 118 | $(BASE_DIR)/dialer/interactions/AndroidManifest.xml \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 119 | $(BASE_DIR)/dialer/notification/AndroidManifest.xml \ |
| 120 | $(BASE_DIR)/dialer/oem/AndroidManifest.xml \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 121 | $(BASE_DIR)/dialer/phonenumberutil/AndroidManifest.xml \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 122 | $(BASE_DIR)/dialer/postcall/AndroidManifest.xml \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 123 | $(BASE_DIR)/dialer/shortcuts/AndroidManifest.xml \ |
| 124 | $(BASE_DIR)/dialer/simulator/impl/AndroidManifest.xml \ |
Eric Erfanian | d8046e5 | 2017-04-06 09:41:50 -0700 | [diff] [blame] | 125 | $(BASE_DIR)/dialer/speeddial/AndroidManifest.xml \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 126 | $(BASE_DIR)/dialer/theme/AndroidManifest.xml \ |
| 127 | $(BASE_DIR)/dialer/util/AndroidManifest.xml \ |
| 128 | $(BASE_DIR)/dialer/voicemailstatus/AndroidManifest.xml \ |
| 129 | $(BASE_DIR)/dialer/widget/AndroidManifest.xml \ |
| 130 | $(BASE_DIR)/incallui/AndroidManifest.xml \ |
| 131 | $(BASE_DIR)/incallui/answer/impl/affordance/AndroidManifest.xml \ |
| 132 | $(BASE_DIR)/incallui/answer/impl/AndroidManifest.xml \ |
| 133 | $(BASE_DIR)/incallui/answer/impl/answermethod/AndroidManifest.xml \ |
| 134 | $(BASE_DIR)/incallui/answer/impl/hint/AndroidManifest.xml \ |
| 135 | $(BASE_DIR)/incallui/audioroute/AndroidManifest.xml \ |
| 136 | $(BASE_DIR)/incallui/autoresizetext/AndroidManifest.xml \ |
| 137 | $(BASE_DIR)/incallui/commontheme/AndroidManifest.xml \ |
| 138 | $(BASE_DIR)/incallui/contactgrid/AndroidManifest.xml \ |
| 139 | $(BASE_DIR)/incallui/hold/AndroidManifest.xml \ |
| 140 | $(BASE_DIR)/incallui/incall/impl/AndroidManifest.xml \ |
| 141 | $(BASE_DIR)/incallui/sessiondata/AndroidManifest.xml \ |
Eric Erfanian | c857f90 | 2017-05-15 14:05:33 -0700 | [diff] [blame] | 142 | $(BASE_DIR)/incallui/telecomeventui/AndroidManifest.xml \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 143 | $(BASE_DIR)/incallui/video/impl/AndroidManifest.xml \ |
Eric Erfanian | d8046e5 | 2017-04-06 09:41:50 -0700 | [diff] [blame] | 144 | $(BASE_DIR)/incallui/video/protocol/AndroidManifest.xml \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 145 | $(BASE_DIR)/incallui/wifi/AndroidManifest.xml \ |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 146 | $(BASE_DIR)/voicemail/impl/AndroidManifest.xml \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 147 | |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 148 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 149 | # Merge all manifest files. |
| 150 | LOCAL_FULL_LIBS_MANIFEST_FILES := \ |
| 151 | $(addprefix $(LOCAL_PATH)/, $(DIALER_MANIFEST_FILES)) |
| 152 | LOCAL_SRC_FILES := $(call all-java-files-under, $(SRC_DIRS)) |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 153 | LOCAL_SRC_FILES := $(filter-out $(EXCLUDE_FILES),$(LOCAL_SRC_FILES)) |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 154 | LOCAL_SRC_FILES += $(call all-proto-files-under, $(SRC_DIRS)) |
| 155 | LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH) |
| 156 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 157 | LOCAL_RESOURCE_DIR := \ |
| 158 | $(addprefix $(LOCAL_PATH)/, $(RES_DIRS)) \ |
Kirill Grouchnikov | fa34097 | 2017-05-16 01:32:43 +0000 | [diff] [blame] | 159 | $(support_library_root_dir)/design/res \ |
| 160 | $(support_library_root_dir)/transition/res \ |
| 161 | $(support_library_root_dir)/v7/appcompat/res \ |
| 162 | $(support_library_root_dir)/v7/cardview/res \ |
| 163 | $(support_library_root_dir)/v7/recyclerview/res |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 164 | |
| 165 | # We specify each package explicitly to glob resource files. |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 166 | LOCAL_AAPT_FLAGS := \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 167 | --auto-add-overlay \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 168 | --extra-packages com.android.contacts.common \ |
Eric Erfanian | c857f90 | 2017-05-15 14:05:33 -0700 | [diff] [blame] | 169 | --extra-packages com.android.dialer.about \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 170 | --extra-packages com.android.dialer.app \ |
| 171 | --extra-packages com.android.dialer.app.voicemail.error \ |
| 172 | --extra-packages com.android.dialer.blocking \ |
| 173 | --extra-packages com.android.dialer.callcomposer \ |
| 174 | --extra-packages com.android.dialer.callcomposer \ |
| 175 | --extra-packages com.android.dialer.callcomposer.camera \ |
| 176 | --extra-packages com.android.dialer.callcomposer.camera.camerafocus \ |
| 177 | --extra-packages com.android.dialer.callcomposer.cameraui \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 178 | --extra-packages com.android.dialer.calldetails \ |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 179 | --extra-packages com.android.dialer.calllog.ui \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 180 | --extra-packages com.android.dialer.calllogutils \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 181 | --extra-packages com.android.dialer.common \ |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 182 | --extra-packages com.android.dialer.contactsfragment \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 183 | --extra-packages com.android.dialer.dialpadview \ |
| 184 | --extra-packages com.android.dialer.interactions \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 185 | --extra-packages com.android.dialer.notification \ |
| 186 | --extra-packages com.android.dialer.oem \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 187 | --extra-packages com.android.dialer.phonenumberutil \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 188 | --extra-packages com.android.dialer.postcall \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 189 | --extra-packages com.android.dialer.shortcuts \ |
Eric Erfanian | d8046e5 | 2017-04-06 09:41:50 -0700 | [diff] [blame] | 190 | --extra-packages com.android.dialer.speeddial \ |
Eric Erfanian | c857f90 | 2017-05-15 14:05:33 -0700 | [diff] [blame] | 191 | --extra-packages com.android.dialer.theme \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 192 | --extra-packages com.android.dialer.util \ |
| 193 | --extra-packages com.android.dialer.voicemailstatus \ |
| 194 | --extra-packages com.android.dialer.widget \ |
| 195 | --extra-packages com.android.incallui \ |
| 196 | --extra-packages com.android.incallui.answer.impl \ |
| 197 | --extra-packages com.android.incallui.answer.impl.affordance \ |
| 198 | --extra-packages com.android.incallui.answer.impl.affordance \ |
| 199 | --extra-packages com.android.incallui.answer.impl.answermethod \ |
| 200 | --extra-packages com.android.incallui.answer.impl.hint \ |
| 201 | --extra-packages com.android.incallui.audioroute \ |
| 202 | --extra-packages com.android.incallui.autoresizetext \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 203 | --extra-packages com.android.incallui.calllocation \ |
| 204 | --extra-packages com.android.incallui.calllocation.impl \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 205 | --extra-packages com.android.incallui.commontheme \ |
| 206 | --extra-packages com.android.incallui.contactgrid \ |
| 207 | --extra-packages com.android.incallui.hold \ |
| 208 | --extra-packages com.android.incallui.incall.impl \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 209 | --extra-packages com.android.incallui.maps.impl \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 210 | --extra-packages com.android.incallui.sessiondata \ |
Eric Erfanian | c857f90 | 2017-05-15 14:05:33 -0700 | [diff] [blame] | 211 | --extra-packages com.android.incallui.telecomeventui \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 212 | --extra-packages com.android.incallui.video \ |
| 213 | --extra-packages com.android.incallui.video.impl \ |
| 214 | --extra-packages com.android.incallui.wifi \ |
| 215 | --extra-packages com.android.phone.common \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 216 | --extra-packages com.android.voicemail \ |
| 217 | --extra-packages com.android.voicemail.impl \ |
| 218 | --extra-packages com.android.voicemail.impl.fetch \ |
| 219 | --extra-packages com.android.voicemail.impl.settings \ |
| 220 | --extra-packages com.android.voicemail.settings \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 221 | --extra-packages me.leolin.shortcutbadger |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 222 | |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 223 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 224 | android-common \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 225 | com.android.vcard \ |
Eric Erfanian | cdb1edf | 2017-03-29 10:20:40 -0700 | [diff] [blame] | 226 | dialer-commons-io-target \ |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 227 | dialer-dagger2-target \ |
| 228 | dialer-disklrucache-target \ |
| 229 | dialer-gifdecoder-target \ |
| 230 | dialer-glide-target \ |
| 231 | dialer-guava-target \ |
| 232 | dialer-javax-annotation-api-target \ |
| 233 | dialer-javax-inject-target \ |
| 234 | dialer-libshortcutbadger-target \ |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 235 | dialer-mime4j-core-target \ |
| 236 | dialer-mime4j-dom-target \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 237 | jsr305 \ |
| 238 | libphonenumber \ |
Eric Erfanian | cdb1edf | 2017-03-29 10:20:40 -0700 | [diff] [blame] | 239 | volley \ |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 240 | |
Alan Viverette | b5870be | 2017-04-26 11:15:10 -0400 | [diff] [blame] | 241 | LOCAL_STATIC_ANDROID_LIBRARIES := \ |
| 242 | android-support-design \ |
| 243 | android-support-transition \ |
| 244 | android-support-v13 \ |
| 245 | android-support-v4 \ |
| 246 | android-support-v7-appcompat \ |
| 247 | android-support-v7-cardview \ |
| 248 | android-support-v7-recyclerview \ |
| 249 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 250 | LOCAL_JAVA_LIBRARIES := \ |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 251 | org.apache.http.legacy \ |
| 252 | dialer-auto-value \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 253 | |
| 254 | # Libraries needed by the compiler (JACK) to generate code. |
| 255 | PROCESSOR_LIBRARIES_TARGET := \ |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 256 | dialer-dagger2-compiler \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 257 | dialer-dagger2 \ |
| 258 | dialer-dagger2-producers \ |
| 259 | dialer-guava \ |
| 260 | dialer-javax-annotation-api \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 261 | dialer-javax-inject \ |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 262 | dialer-auto-value \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 263 | |
| 264 | # Resolve the jar paths. |
| 265 | PROCESSOR_JARS := $(call java-lib-deps, $(PROCESSOR_LIBRARIES_TARGET)) |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 266 | # Necessary for annotation processors to work correctly. |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 267 | LOCAL_ADDITIONAL_DEPENDENCIES += $(PROCESSOR_JARS) |
| 268 | |
| 269 | LOCAL_JACK_FLAGS += --processorpath $(call normalize-path-list,$(PROCESSOR_JARS)) |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 270 | LOCAL_JAVACFLAGS += -processorpath $(call normalize-path-list,$(PROCESSOR_JARS)) |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 271 | |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 272 | # Proguard includes |
| 273 | LOCAL_PROGUARD_FLAG_FILES := \ |
| 274 | java/com/android/dialer/common/proguard.flags \ |
| 275 | java/com/android/dialer/proguard/proguard_base.flags \ |
| 276 | java/com/android/dialer/proguard/proguard.flags \ |
| 277 | java/com/android/dialer/proguard/proguard_release.flags \ |
| 278 | java/com/android/incallui/answer/impl/proguard.flags |
Colin Cross | f939e09 | 2017-04-05 22:13:40 -0700 | [diff] [blame] | 279 | LOCAL_PROGUARD_ENABLED := custom |
| 280 | |
| 281 | ifdef LOCAL_JACK_ENABLED |
| 282 | # Bug: 37077388 |
| 283 | LOCAL_PROGUARD_ENABLED += optimization |
| 284 | endif |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 285 | |
Ta-wei Yen | 6640e55 | 2017-04-21 15:33:24 -0700 | [diff] [blame] | 286 | LOCAL_SDK_VERSION := system_current |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 287 | LOCAL_MODULE_TAGS := optional |
| 288 | LOCAL_PACKAGE_NAME := Dialer |
| 289 | LOCAL_CERTIFICATE := shared |
| 290 | LOCAL_PRIVILEGED_MODULE := true |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 291 | LOCAL_USE_AAPT2 := true |
| 292 | |
| 293 | # b/37483961 - Jack Not Compiling Dagger Class Properly |
| 294 | LOCAL_JACK_ENABLED := javac_frontend |
| 295 | |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 296 | include $(BUILD_PACKAGE) |
| 297 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 298 | # Cleanup local state |
| 299 | BASE_DIR := |
| 300 | SRC_DIRS := |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 301 | EXCLUDE_FILES := |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 302 | RES_DIRS := |
| 303 | DIALER_MANIFEST_FILES := |
| 304 | PROCESSOR_LIBRARIES_TARGET := |
| 305 | PROCESSOR_JARS := |
| 306 | |
| 307 | # Create references to prebuilt libraries. |
| 308 | include $(CLEAR_VARS) |
| 309 | |
| 310 | LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \ |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 311 | dialer-dagger2-compiler:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger-compiler/2.7/dagger-compiler-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 312 | dialer-auto-value:../../../prebuilts/tools/common/m2/repository/com/google/auto/value/auto-value/1.3/auto-value-1.3$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 313 | dialer-dagger2:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.7/dagger-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 314 | dialer-dagger2-producers:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger-producers/2.7/dagger-producers-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 315 | dialer-guava:../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/20.0/guava-20.0$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 316 | dialer-javax-annotation-api:../../../prebuilts/tools/common/m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 317 | dialer-javax-inject:../../../prebuilts/tools/common/m2/repository/javax/inject/javax.inject/1/javax.inject-1$(COMMON_JAVA_PACKAGE_SUFFIX) |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 318 | |
| 319 | include $(BUILD_MULTI_PREBUILT) |
| 320 | |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 321 | # Enumerate target prebuilts to avoid linker warnings like |
| 322 | # Dialer (java:sdk) should not link to dialer-guava (java:platform) |
| 323 | include $(CLEAR_VARS) |
| 324 | |
| 325 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 326 | LOCAL_MODULE := dialer-guava-target |
| 327 | LOCAL_SDK_VERSION := current |
| 328 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/20.0/guava-20.0$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 329 | LOCAL_UNINSTALLABLE_MODULE := true |
| 330 | |
| 331 | include $(BUILD_PREBUILT) |
| 332 | |
| 333 | include $(CLEAR_VARS) |
| 334 | |
| 335 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 336 | LOCAL_MODULE := dialer-dagger2-target |
| 337 | LOCAL_SDK_VERSION := current |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 338 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.7/dagger-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 339 | LOCAL_UNINSTALLABLE_MODULE := true |
| 340 | |
| 341 | include $(BUILD_PREBUILT) |
| 342 | |
| 343 | include $(CLEAR_VARS) |
| 344 | |
| 345 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 346 | LOCAL_MODULE := dialer-disklrucache-target |
| 347 | LOCAL_SDK_VERSION := current |
| 348 | LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/disklrucache/1.0.0-SNAPSHOT/disklrucache-1.0.0-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 349 | LOCAL_UNINSTALLABLE_MODULE := true |
| 350 | |
| 351 | include $(BUILD_PREBUILT) |
| 352 | |
| 353 | include $(CLEAR_VARS) |
| 354 | |
| 355 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 356 | LOCAL_MODULE := dialer-gifdecoder-target |
| 357 | LOCAL_SDK_VERSION := current |
| 358 | LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/gifdecoder/1.0.0-SNAPSHOT/gifdecoder-1.0.0-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 359 | LOCAL_UNINSTALLABLE_MODULE := true |
| 360 | |
| 361 | include $(BUILD_PREBUILT) |
| 362 | |
| 363 | include $(CLEAR_VARS) |
| 364 | |
| 365 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 366 | LOCAL_MODULE := dialer-glide-target |
| 367 | LOCAL_SDK_VERSION := current |
| 368 | LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/glide/4.0.0-SNAPSHOT/glide-4.0.0-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 369 | LOCAL_UNINSTALLABLE_MODULE := true |
| 370 | |
| 371 | include $(BUILD_PREBUILT) |
| 372 | |
| 373 | include $(CLEAR_VARS) |
| 374 | |
| 375 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 376 | LOCAL_MODULE := dialer-javax-annotation-api-target |
| 377 | LOCAL_SDK_VERSION := current |
| 378 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 379 | LOCAL_UNINSTALLABLE_MODULE := true |
| 380 | |
| 381 | include $(BUILD_PREBUILT) |
| 382 | |
| 383 | include $(CLEAR_VARS) |
| 384 | |
| 385 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 386 | LOCAL_MODULE := dialer-libshortcutbadger-target |
| 387 | LOCAL_SDK_VERSION := current |
| 388 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/me/leolin/ShortcutBadger/1.1.13/ShortcutBadger-1.1.13$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 389 | LOCAL_UNINSTALLABLE_MODULE := true |
| 390 | |
| 391 | include $(BUILD_PREBUILT) |
| 392 | |
| 393 | include $(CLEAR_VARS) |
| 394 | |
| 395 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 396 | LOCAL_MODULE := dialer-javax-inject-target |
| 397 | LOCAL_SDK_VERSION := current |
| 398 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/inject/javax.inject/1/javax.inject-1$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 399 | LOCAL_UNINSTALLABLE_MODULE := true |
| 400 | |
| 401 | include $(BUILD_PREBUILT) |
| 402 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 403 | include $(CLEAR_VARS) |
Eric Erfanian | cdb1edf | 2017-03-29 10:20:40 -0700 | [diff] [blame] | 404 | |
Eric Erfanian | cdb1edf | 2017-03-29 10:20:40 -0700 | [diff] [blame] | 405 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 406 | LOCAL_MODULE := dialer-commons-io-target |
| 407 | LOCAL_SDK_VERSION := current |
| 408 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/commons-io/commons-io/2.4/commons-io-2.4$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 409 | LOCAL_UNINSTALLABLE_MODULE := true |
| 410 | |
| 411 | include $(BUILD_PREBUILT) |
| 412 | |
| 413 | include $(CLEAR_VARS) |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 414 | |
| 415 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 416 | LOCAL_MODULE := dialer-mime4j-core-target |
| 417 | LOCAL_SDK_VERSION := current |
| 418 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/org/apache/james/apache-mime4j-core/0.7.2/apache-mime4j-core-0.7.2$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 419 | LOCAL_UNINSTALLABLE_MODULE := true |
| 420 | |
| 421 | include $(BUILD_PREBUILT) |
| 422 | |
| 423 | include $(CLEAR_VARS) |
| 424 | |
| 425 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 426 | LOCAL_MODULE := dialer-mime4j-dom-target |
| 427 | LOCAL_SDK_VERSION := current |
| 428 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/org/apache/james/apache-mime4j-dom/0.7.2/apache-mime4j-dom-0.7.2$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 429 | LOCAL_UNINSTALLABLE_MODULE := true |
| 430 | |
| 431 | include $(BUILD_PREBUILT) |
| 432 | |
| 433 | include $(CLEAR_VARS) |