blob: beccd865af2113f2ad4c6aa108f4d841277066d4 [file] [log] [blame]
Eric Erfanianccca3152017-02-22 16:32:36 -08001# Local modifications:
Eric Erfanian9a090c82017-03-16 19:22:24 -07002# * 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/
Eric Erfanian842a9772017-06-22 09:39:08 -07007# * b/62417801 modify translation string naming convention:
8# $ find . -type d | grep 262 | rename 's/(values)\-([a-zA-Z\+\-]+)\-(mcc262-mnc01)/$1-$3-$2/'
Eric Erfanian91ce7d22017-06-05 13:35:02 -07009# * b/62343966 include manually generated GRPC service class:
10# $ protoc --plugin=protoc-gen-grpc-java=prebuilts/tools/common/m2/repository/io/grpc/protoc-gen-grpc-java/1.0.3/protoc-gen-grpc-java-1.0.3-linux-x86_64.exe \
11# --grpc-java_out=lite:"packages/apps/Dialer/java/com/android/voicemail/impl/" \
Eric Erfanianea7890c2017-06-19 12:40:59 -070012# --proto_path="packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/grpc/" "packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/grpc/voicemail_transcription.proto"
Eric Erfanian842a9772017-06-22 09:39:08 -070013# * b/37077388 temporarily disable proguard with javac
Chiao Cheng94b10b52012-08-17 16:59:12 -070014LOCAL_PATH:= $(call my-dir)
15include $(CLEAR_VARS)
16
Kirill Grouchnikovfa340972017-05-16 01:32:43 +000017ifeq ($(TARGET_BUILD_APPS),)
18support_library_root_dir := frameworks/support
19else
20support_library_root_dir := prebuilts/sdk/current/support
21endif
22
Eric Erfanianccca3152017-02-22 16:32:36 -080023# The base directory for Dialer sources.
24BASE_DIR := java/com/android
Jay Shrauner0f68a712014-07-16 16:13:57 -070025
Eric Erfanianccca3152017-02-22 16:32:36 -080026# Primary dialer module sources.
27SRC_DIRS := \
28 $(BASE_DIR)/contacts/common \
29 $(BASE_DIR)/dialer \
Eric Erfanian91ce7d22017-06-05 13:35:02 -070030 $(BASE_DIR)/dialershared \
Eric Erfanianccca3152017-02-22 16:32:36 -080031 $(BASE_DIR)/incallui \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070032 $(BASE_DIR)/voicemail
33
34# Exclude files incompatible with AOSP.
35EXCLUDE_FILES := \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070036 $(BASE_DIR)/incallui/calllocation/impl/AuthException.java \
37 $(BASE_DIR)/incallui/calllocation/impl/CallLocationImpl.java \
38 $(BASE_DIR)/incallui/calllocation/impl/CallLocationModule.java \
39 $(BASE_DIR)/incallui/calllocation/impl/DownloadMapImageTask.java \
40 $(BASE_DIR)/incallui/calllocation/impl/GoogleLocationSettingHelper.java \
41 $(BASE_DIR)/incallui/calllocation/impl/HttpFetcher.java \
42 $(BASE_DIR)/incallui/calllocation/impl/LocationFragment.java \
43 $(BASE_DIR)/incallui/calllocation/impl/LocationHelper.java \
44 $(BASE_DIR)/incallui/calllocation/impl/LocationPresenter.java \
45 $(BASE_DIR)/incallui/calllocation/impl/LocationUrlBuilder.java \
46 $(BASE_DIR)/incallui/calllocation/impl/ReverseGeocodeTask.java \
47 $(BASE_DIR)/incallui/calllocation/impl/TrafficStatsTags.java \
48 $(BASE_DIR)/incallui/maps/impl/MapsImpl.java \
49 $(BASE_DIR)/incallui/maps/impl/MapsModule.java \
Eric Erfanian91ce7d22017-06-05 13:35:02 -070050 $(BASE_DIR)/incallui/maps/impl/StaticMapFragment.java \
Chiao Cheng94b10b52012-08-17 16:59:12 -070051
Paul Duffin922b1082017-05-05 15:05:47 +010052# Exclude testing only class, not used anywhere here
53EXCLUDE_FILES += \
54 $(BASE_DIR)/contacts/common/format/testing/SpannedTestUtils.java
55
Eric Erfanian842a9772017-06-22 09:39:08 -070056# Exclude build variants for now
57EXCLUDE_FILES += \
58 $(BASE_DIR)/dialer/buildtype/bugfood/BuildTypeAccessorImpl.java \
59 $(BASE_DIR)/dialer/buildtype/dogfood/BuildTypeAccessorImpl.java \
60 $(BASE_DIR)/dialer/buildtype/fishfood/BuildTypeAccessorImpl.java \
61 $(BASE_DIR)/dialer/buildtype/test/BuildTypeAccessorImpl.java \
62 $(BASE_DIR)/dialer/constants/googledialer/ConstantsImpl.java \
63 $(BASE_DIR)/dialer/binary/google/GoogleStubDialerRootComponent.java \
64 $(BASE_DIR)/dialer/binary/google/GoogleStubDialerApplication.java
65
Eric Erfanianccca3152017-02-22 16:32:36 -080066# All Dialers resources.
67# find . -type d -name "res" | uniq | sort
68RES_DIRS := \
69 assets/product/res \
70 assets/quantum/res \
71 $(BASE_DIR)/contacts/common/res \
Eric Erfanianc857f902017-05-15 14:05:33 -070072 $(BASE_DIR)/dialer/about/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080073 $(BASE_DIR)/dialer/app/res \
74 $(BASE_DIR)/dialer/app/voicemail/error/res \
75 $(BASE_DIR)/dialer/blocking/res \
76 $(BASE_DIR)/dialer/callcomposer/camera/camerafocus/res \
77 $(BASE_DIR)/dialer/callcomposer/cameraui/res \
78 $(BASE_DIR)/dialer/callcomposer/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070079 $(BASE_DIR)/dialer/calldetails/res \
Eric Erfanian8369df02017-05-03 10:27:13 -070080 $(BASE_DIR)/dialer/calllog/ui/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070081 $(BASE_DIR)/dialer/calllogutils/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080082 $(BASE_DIR)/dialer/common/res \
Eric Erfanian91ce7d22017-06-05 13:35:02 -070083 $(BASE_DIR)/dialer/contactactions/res \
Eric Erfanian8369df02017-05-03 10:27:13 -070084 $(BASE_DIR)/dialer/contactsfragment/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080085 $(BASE_DIR)/dialer/dialpadview/res \
Eric Erfanian842a9772017-06-22 09:39:08 -070086 $(BASE_DIR)/dialer/enrichedcall/simulator/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080087 $(BASE_DIR)/dialer/interactions/res \
Eric Erfanianea7890c2017-06-19 12:40:59 -070088 $(BASE_DIR)/dialer/main/impl/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070089 $(BASE_DIR)/dialer/notification/res \
90 $(BASE_DIR)/dialer/oem/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080091 $(BASE_DIR)/dialer/phonenumberutil/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070092 $(BASE_DIR)/dialer/postcall/res \
Eric Erfanian842a9772017-06-22 09:39:08 -070093 $(BASE_DIR)/dialer/searchfragment/common/res \
Eric Erfanianea7890c2017-06-19 12:40:59 -070094 $(BASE_DIR)/dialer/searchfragment/list/res \
95 $(BASE_DIR)/dialer/searchfragment/nearbyplaces/res \
Eric Erfanian842a9772017-06-22 09:39:08 -070096 $(BASE_DIR)/dialershared/bubble/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080097 $(BASE_DIR)/dialer/shortcuts/res \
Eric Erfaniand8046e52017-04-06 09:41:50 -070098 $(BASE_DIR)/dialer/speeddial/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080099 $(BASE_DIR)/dialer/theme/res \
100 $(BASE_DIR)/dialer/util/res \
101 $(BASE_DIR)/dialer/voicemailstatus/res \
102 $(BASE_DIR)/dialer/widget/res \
103 $(BASE_DIR)/incallui/answer/impl/affordance/res \
104 $(BASE_DIR)/incallui/answer/impl/answermethod/res \
105 $(BASE_DIR)/incallui/answer/impl/hint/res \
106 $(BASE_DIR)/incallui/answer/impl/res \
107 $(BASE_DIR)/incallui/audioroute/res \
108 $(BASE_DIR)/incallui/autoresizetext/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700109 $(BASE_DIR)/incallui/calllocation/impl/res \
Eric Erfanianccca3152017-02-22 16:32:36 -0800110 $(BASE_DIR)/incallui/commontheme/res \
111 $(BASE_DIR)/incallui/contactgrid/res \
Eric Erfaniand538e0b2017-06-30 15:26:17 -0700112 $(BASE_DIR)/incallui/disconnectdialog/res \
Eric Erfanianccca3152017-02-22 16:32:36 -0800113 $(BASE_DIR)/incallui/hold/res \
114 $(BASE_DIR)/incallui/incall/impl/res \
115 $(BASE_DIR)/incallui/res \
116 $(BASE_DIR)/incallui/sessiondata/res \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700117 $(BASE_DIR)/incallui/speakerbuttonlogic/res \
Eric Erfanianc857f902017-05-15 14:05:33 -0700118 $(BASE_DIR)/incallui/telecomeventui/res \
Eric Erfanianccca3152017-02-22 16:32:36 -0800119 $(BASE_DIR)/incallui/video/impl/res \
Eric Erfaniand8046e52017-04-06 09:41:50 -0700120 $(BASE_DIR)/incallui/video/protocol/res \
Eric Erfanianff2ad7f2017-07-27 10:45:54 -0700121 $(BASE_DIR)/voicemail/impl/configui/res \
Eric Erfanian8369df02017-05-03 10:27:13 -0700122 $(BASE_DIR)/voicemail/impl/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700123
Ta-wei Yen90a13e92016-01-11 13:00:53 -0800124
Eric Erfanianccca3152017-02-22 16:32:36 -0800125# Dialer manifest files to merge.
126# find . -type f -name "AndroidManifest.xml" | uniq | sort
127DIALER_MANIFEST_FILES += \
128 $(BASE_DIR)/contacts/common/AndroidManifest.xml \
Eric Erfanianc857f902017-05-15 14:05:33 -0700129 $(BASE_DIR)/dialer/about/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800130 $(BASE_DIR)/dialer/app/AndroidManifest.xml \
131 $(BASE_DIR)/dialer/app/manifests/activities/AndroidManifest.xml \
132 $(BASE_DIR)/dialer/app/voicemail/error/AndroidManifest.xml \
133 $(BASE_DIR)/dialer/backup/AndroidManifest.xml \
134 $(BASE_DIR)/dialer/blocking/AndroidManifest.xml \
135 $(BASE_DIR)/dialer/callcomposer/AndroidManifest.xml \
136 $(BASE_DIR)/dialer/callcomposer/camera/AndroidManifest.xml \
137 $(BASE_DIR)/dialer/callcomposer/camera/camerafocus/AndroidManifest.xml \
138 $(BASE_DIR)/dialer/callcomposer/cameraui/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700139 $(BASE_DIR)/dialer/calldetails/AndroidManifest.xml \
Eric Erfanian8369df02017-05-03 10:27:13 -0700140 $(BASE_DIR)/dialer/calllog/ui/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700141 $(BASE_DIR)/dialer/calllogutils/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800142 $(BASE_DIR)/dialer/common/AndroidManifest.xml \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700143 $(BASE_DIR)/dialer/contactactions/AndroidManifest.xml \
Eric Erfanian8369df02017-05-03 10:27:13 -0700144 $(BASE_DIR)/dialer/contactsfragment/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800145 $(BASE_DIR)/dialer/dialpadview/AndroidManifest.xml \
Eric Erfanian842a9772017-06-22 09:39:08 -0700146 $(BASE_DIR)/dialer/enrichedcall/simulator/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800147 $(BASE_DIR)/dialer/interactions/AndroidManifest.xml \
Eric Erfanianea7890c2017-06-19 12:40:59 -0700148 $(BASE_DIR)/dialer/main/impl/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700149 $(BASE_DIR)/dialer/notification/AndroidManifest.xml \
150 $(BASE_DIR)/dialer/oem/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800151 $(BASE_DIR)/dialer/phonenumberutil/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700152 $(BASE_DIR)/dialer/postcall/AndroidManifest.xml \
Eric Erfanian842a9772017-06-22 09:39:08 -0700153 $(BASE_DIR)/dialer/searchfragment/common/AndroidManifest.xml \
Eric Erfanianea7890c2017-06-19 12:40:59 -0700154 $(BASE_DIR)/dialer/searchfragment/list/AndroidManifest.xml \
155 $(BASE_DIR)/dialer/searchfragment/nearbyplaces/AndroidManifest.xml \
Eric Erfanian842a9772017-06-22 09:39:08 -0700156 $(BASE_DIR)/dialershared/bubble/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800157 $(BASE_DIR)/dialer/shortcuts/AndroidManifest.xml \
158 $(BASE_DIR)/dialer/simulator/impl/AndroidManifest.xml \
Eric Erfaniand8046e52017-04-06 09:41:50 -0700159 $(BASE_DIR)/dialer/speeddial/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800160 $(BASE_DIR)/dialer/theme/AndroidManifest.xml \
161 $(BASE_DIR)/dialer/util/AndroidManifest.xml \
162 $(BASE_DIR)/dialer/voicemailstatus/AndroidManifest.xml \
163 $(BASE_DIR)/dialer/widget/AndroidManifest.xml \
164 $(BASE_DIR)/incallui/AndroidManifest.xml \
165 $(BASE_DIR)/incallui/answer/impl/affordance/AndroidManifest.xml \
166 $(BASE_DIR)/incallui/answer/impl/AndroidManifest.xml \
167 $(BASE_DIR)/incallui/answer/impl/answermethod/AndroidManifest.xml \
168 $(BASE_DIR)/incallui/answer/impl/hint/AndroidManifest.xml \
169 $(BASE_DIR)/incallui/audioroute/AndroidManifest.xml \
170 $(BASE_DIR)/incallui/autoresizetext/AndroidManifest.xml \
171 $(BASE_DIR)/incallui/commontheme/AndroidManifest.xml \
172 $(BASE_DIR)/incallui/contactgrid/AndroidManifest.xml \
Eric Erfaniand538e0b2017-06-30 15:26:17 -0700173 $(BASE_DIR)/incallui/disconnectdialog/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800174 $(BASE_DIR)/incallui/hold/AndroidManifest.xml \
175 $(BASE_DIR)/incallui/incall/impl/AndroidManifest.xml \
176 $(BASE_DIR)/incallui/sessiondata/AndroidManifest.xml \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700177 $(BASE_DIR)/incallui/speakerbuttonlogic/AndroidManifest.xml \
Eric Erfanianc857f902017-05-15 14:05:33 -0700178 $(BASE_DIR)/incallui/telecomeventui/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800179 $(BASE_DIR)/incallui/video/impl/AndroidManifest.xml \
Eric Erfaniand8046e52017-04-06 09:41:50 -0700180 $(BASE_DIR)/incallui/video/protocol/AndroidManifest.xml \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700181 $(BASE_DIR)/voicemail/AndroidManifest.xml \
Eric Erfanianff2ad7f2017-07-27 10:45:54 -0700182 $(BASE_DIR)/voicemail/impl/configui/AndroidManifest.xml \
Eric Erfanian842a9772017-06-22 09:39:08 -0700183 $(BASE_DIR)/voicemail/impl/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700184
Chiao Cheng94b10b52012-08-17 16:59:12 -0700185
Eric Erfanianccca3152017-02-22 16:32:36 -0800186# Merge all manifest files.
187LOCAL_FULL_LIBS_MANIFEST_FILES := \
188 $(addprefix $(LOCAL_PATH)/, $(DIALER_MANIFEST_FILES))
189LOCAL_SRC_FILES := $(call all-java-files-under, $(SRC_DIRS))
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700190LOCAL_SRC_FILES := $(filter-out $(EXCLUDE_FILES),$(LOCAL_SRC_FILES))
Eric Erfanian8369df02017-05-03 10:27:13 -0700191LOCAL_SRC_FILES += $(call all-proto-files-under, $(SRC_DIRS))
192LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)
193
Eric Erfanianccca3152017-02-22 16:32:36 -0800194LOCAL_RESOURCE_DIR := \
195 $(addprefix $(LOCAL_PATH)/, $(RES_DIRS)) \
Kirill Grouchnikovfa340972017-05-16 01:32:43 +0000196 $(support_library_root_dir)/design/res \
197 $(support_library_root_dir)/transition/res \
198 $(support_library_root_dir)/v7/appcompat/res \
199 $(support_library_root_dir)/v7/cardview/res \
200 $(support_library_root_dir)/v7/recyclerview/res
Eric Erfanianccca3152017-02-22 16:32:36 -0800201
202# We specify each package explicitly to glob resource files.
Chiao Cheng94b10b52012-08-17 16:59:12 -0700203LOCAL_AAPT_FLAGS := \
Eric Erfanianccca3152017-02-22 16:32:36 -0800204 --auto-add-overlay \
Eric Erfanianccca3152017-02-22 16:32:36 -0800205 --extra-packages com.android.contacts.common \
Eric Erfanianc857f902017-05-15 14:05:33 -0700206 --extra-packages com.android.dialer.about \
Eric Erfanianccca3152017-02-22 16:32:36 -0800207 --extra-packages com.android.dialer.app \
208 --extra-packages com.android.dialer.app.voicemail.error \
209 --extra-packages com.android.dialer.blocking \
210 --extra-packages com.android.dialer.callcomposer \
211 --extra-packages com.android.dialer.callcomposer \
212 --extra-packages com.android.dialer.callcomposer.camera \
213 --extra-packages com.android.dialer.callcomposer.camera.camerafocus \
214 --extra-packages com.android.dialer.callcomposer.cameraui \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700215 --extra-packages com.android.dialer.calldetails \
Eric Erfanian8369df02017-05-03 10:27:13 -0700216 --extra-packages com.android.dialer.calllog.ui \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700217 --extra-packages com.android.dialer.calllogutils \
Eric Erfanianccca3152017-02-22 16:32:36 -0800218 --extra-packages com.android.dialer.common \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700219 --extra-packages com.android.dialer.contactactions \
Eric Erfanian8369df02017-05-03 10:27:13 -0700220 --extra-packages com.android.dialer.contactsfragment \
Eric Erfanianccca3152017-02-22 16:32:36 -0800221 --extra-packages com.android.dialer.dialpadview \
Eric Erfanian842a9772017-06-22 09:39:08 -0700222 --extra-packages com.android.dialer.enrichedcall.simulator \
Eric Erfanianccca3152017-02-22 16:32:36 -0800223 --extra-packages com.android.dialer.interactions \
Eric Erfanianea7890c2017-06-19 12:40:59 -0700224 --extra-packages com.android.dialer.main.impl \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700225 --extra-packages com.android.dialer.notification \
226 --extra-packages com.android.dialer.oem \
Eric Erfanianccca3152017-02-22 16:32:36 -0800227 --extra-packages com.android.dialer.phonenumberutil \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700228 --extra-packages com.android.dialer.postcall \
Eric Erfanian842a9772017-06-22 09:39:08 -0700229 --extra-packages com.android.dialer.searchfragment.common \
Eric Erfanianea7890c2017-06-19 12:40:59 -0700230 --extra-packages com.android.dialer.searchfragment.list \
231 --extra-packages com.android.dialer.searchfragment.nearbyplaces \
Eric Erfanian842a9772017-06-22 09:39:08 -0700232 --extra-packages com.android.dialershared.bubble \
Eric Erfanianccca3152017-02-22 16:32:36 -0800233 --extra-packages com.android.dialer.shortcuts \
Eric Erfaniand8046e52017-04-06 09:41:50 -0700234 --extra-packages com.android.dialer.speeddial \
Eric Erfanianc857f902017-05-15 14:05:33 -0700235 --extra-packages com.android.dialer.theme \
Eric Erfanianccca3152017-02-22 16:32:36 -0800236 --extra-packages com.android.dialer.util \
237 --extra-packages com.android.dialer.voicemailstatus \
238 --extra-packages com.android.dialer.widget \
239 --extra-packages com.android.incallui \
240 --extra-packages com.android.incallui.answer.impl \
241 --extra-packages com.android.incallui.answer.impl.affordance \
242 --extra-packages com.android.incallui.answer.impl.affordance \
243 --extra-packages com.android.incallui.answer.impl.answermethod \
244 --extra-packages com.android.incallui.answer.impl.hint \
245 --extra-packages com.android.incallui.audioroute \
246 --extra-packages com.android.incallui.autoresizetext \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700247 --extra-packages com.android.incallui.calllocation \
248 --extra-packages com.android.incallui.calllocation.impl \
Eric Erfanianccca3152017-02-22 16:32:36 -0800249 --extra-packages com.android.incallui.commontheme \
250 --extra-packages com.android.incallui.contactgrid \
Eric Erfaniand538e0b2017-06-30 15:26:17 -0700251 --extra-packages com.android.incallui.disconnectdialog \
Eric Erfanianccca3152017-02-22 16:32:36 -0800252 --extra-packages com.android.incallui.hold \
253 --extra-packages com.android.incallui.incall.impl \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700254 --extra-packages com.android.incallui.maps.impl \
Eric Erfanianccca3152017-02-22 16:32:36 -0800255 --extra-packages com.android.incallui.sessiondata \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700256 --extra-packages com.android.incallui.speakerbuttonlogic \
Eric Erfanianc857f902017-05-15 14:05:33 -0700257 --extra-packages com.android.incallui.telecomeventui \
Eric Erfanianccca3152017-02-22 16:32:36 -0800258 --extra-packages com.android.incallui.video \
259 --extra-packages com.android.incallui.video.impl \
Eric Erfanianccca3152017-02-22 16:32:36 -0800260 --extra-packages com.android.phone.common \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700261 --extra-packages com.android.voicemail \
Eric Erfanianff2ad7f2017-07-27 10:45:54 -0700262 --extra-packages com.android.voicemail.impl.configui \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700263 --extra-packages com.android.voicemail.impl \
264 --extra-packages com.android.voicemail.impl.fetch \
265 --extra-packages com.android.voicemail.impl.settings \
266 --extra-packages com.android.voicemail.settings \
Eric Erfanian842a9772017-06-22 09:39:08 -0700267 --extra-packages me.leolin.shortcutbadger \
268
Chiao Cheng94b10b52012-08-17 16:59:12 -0700269
Chiao Cheng94b10b52012-08-17 16:59:12 -0700270LOCAL_STATIC_JAVA_LIBRARIES := \
Eric Erfanianccca3152017-02-22 16:32:36 -0800271 android-common \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700272 android-support-dynamic-animation \
Eric Erfanianccca3152017-02-22 16:32:36 -0800273 com.android.vcard \
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700274 dialer-commons-io-target \
Eric Erfanian90508232017-03-24 09:31:16 -0700275 dialer-dagger2-target \
276 dialer-disklrucache-target \
277 dialer-gifdecoder-target \
278 dialer-glide-target \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700279 dialer-grpc-all-target \
Eric Erfanian842a9772017-06-22 09:39:08 -0700280 dialer-grpc-context-target \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700281 dialer-grpc-core-target \
282 dialer-grpc-okhttp-target \
283 dialer-grpc-protobuf-lite-target \
284 dialer-grpc-stub-target \
Eric Erfanian842a9772017-06-22 09:39:08 -0700285 dialer-guava-target \
Eric Erfanian90508232017-03-24 09:31:16 -0700286 dialer-javax-annotation-api-target \
287 dialer-javax-inject-target \
288 dialer-libshortcutbadger-target \
Eric Erfanian8369df02017-05-03 10:27:13 -0700289 dialer-mime4j-core-target \
290 dialer-mime4j-dom-target \
Eric Erfanianccca3152017-02-22 16:32:36 -0800291 jsr305 \
292 libphonenumber \
Eric Erfanian842a9772017-06-22 09:39:08 -0700293 okhttp \
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700294 volley \
Chiao Cheng94b10b52012-08-17 16:59:12 -0700295
Alan Viveretteb5870be2017-04-26 11:15:10 -0400296LOCAL_STATIC_ANDROID_LIBRARIES := \
297 android-support-design \
298 android-support-transition \
299 android-support-v13 \
300 android-support-v4 \
301 android-support-v7-appcompat \
302 android-support-v7-cardview \
303 android-support-v7-recyclerview \
304
Eric Erfanianccca3152017-02-22 16:32:36 -0800305LOCAL_JAVA_LIBRARIES := \
Eric Erfanian90508232017-03-24 09:31:16 -0700306 dialer-auto-value \
Eric Erfanian842a9772017-06-22 09:39:08 -0700307 org.apache.http.legacy \
Eric Erfanianccca3152017-02-22 16:32:36 -0800308
309# Libraries needed by the compiler (JACK) to generate code.
310PROCESSOR_LIBRARIES_TARGET := \
Eric Erfanian842a9772017-06-22 09:39:08 -0700311 dialer-auto-value \
Eric Erfanianccca3152017-02-22 16:32:36 -0800312 dialer-dagger2 \
Eric Erfanian842a9772017-06-22 09:39:08 -0700313 dialer-dagger2-compiler \
Eric Erfanianccca3152017-02-22 16:32:36 -0800314 dialer-dagger2-producers \
315 dialer-guava \
316 dialer-javax-annotation-api \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700317 dialer-javax-inject \
Eric Erfanianccca3152017-02-22 16:32:36 -0800318
319# Resolve the jar paths.
320PROCESSOR_JARS := $(call java-lib-deps, $(PROCESSOR_LIBRARIES_TARGET))
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700321# Necessary for annotation processors to work correctly.
Eric Erfanianccca3152017-02-22 16:32:36 -0800322LOCAL_ADDITIONAL_DEPENDENCIES += $(PROCESSOR_JARS)
323
324LOCAL_JACK_FLAGS += --processorpath $(call normalize-path-list,$(PROCESSOR_JARS))
Eric Erfanian90508232017-03-24 09:31:16 -0700325LOCAL_JAVACFLAGS += -processorpath $(call normalize-path-list,$(PROCESSOR_JARS))
Chiao Cheng94b10b52012-08-17 16:59:12 -0700326
Eric Erfanianea7890c2017-06-19 12:40:59 -0700327
328# Begin Bug: 37077388
Eric Erfanian842a9772017-06-22 09:39:08 -0700329LOCAL_DX_FLAGS := --multi-dex
Eric Erfanianea7890c2017-06-19 12:40:59 -0700330LOCAL_JACK_FLAGS := --multi-dex native
331
332LOCAL_PROGUARD_ENABLED := disabled
333ifdef LOCAL_JACK_ENABLED
Eric Erfanian90508232017-03-24 09:31:16 -0700334# Proguard includes
335LOCAL_PROGUARD_FLAG_FILES := \
336 java/com/android/dialer/common/proguard.flags \
337 java/com/android/dialer/proguard/proguard_base.flags \
338 java/com/android/dialer/proguard/proguard.flags \
339 java/com/android/dialer/proguard/proguard_release.flags \
340 java/com/android/incallui/answer/impl/proguard.flags
Colin Crossf939e092017-04-05 22:13:40 -0700341LOCAL_PROGUARD_ENABLED := custom
342
Colin Crossf939e092017-04-05 22:13:40 -0700343LOCAL_PROGUARD_ENABLED += optimization
344endif
Chiao Cheng94b10b52012-08-17 16:59:12 -0700345
Eric Erfanianea7890c2017-06-19 12:40:59 -0700346# End Bug: 37077388
347
Ta-wei Yen6640e552017-04-21 15:33:24 -0700348LOCAL_SDK_VERSION := system_current
Eric Erfanianccca3152017-02-22 16:32:36 -0800349LOCAL_MODULE_TAGS := optional
350LOCAL_PACKAGE_NAME := Dialer
351LOCAL_CERTIFICATE := shared
352LOCAL_PRIVILEGED_MODULE := true
Eric Erfanian8369df02017-05-03 10:27:13 -0700353LOCAL_USE_AAPT2 := true
354
355# b/37483961 - Jack Not Compiling Dagger Class Properly
356LOCAL_JACK_ENABLED := javac_frontend
357
Chiao Cheng94b10b52012-08-17 16:59:12 -0700358include $(BUILD_PACKAGE)
359
Eric Erfanianccca3152017-02-22 16:32:36 -0800360# Cleanup local state
361BASE_DIR :=
362SRC_DIRS :=
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700363EXCLUDE_FILES :=
Eric Erfanianccca3152017-02-22 16:32:36 -0800364RES_DIRS :=
365DIALER_MANIFEST_FILES :=
366PROCESSOR_LIBRARIES_TARGET :=
367PROCESSOR_JARS :=
368
369# Create references to prebuilt libraries.
370include $(CLEAR_VARS)
371
372LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \
Eric Erfanian90508232017-03-24 09:31:16 -0700373 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 Erfanian842a9772017-06-22 09:39:08 -0700374 dialer-dagger2-compiler:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger-compiler/2.7/dagger-compiler-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) \
Eric Erfanian8369df02017-05-03 10:27:13 -0700375 dialer-dagger2:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.7/dagger-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) \
376 dialer-dagger2-producers:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger-producers/2.7/dagger-producers-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700377 dialer-grpc-all:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-all/1.0.3/grpc-all-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \
378 dialer-grpc-core:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-core/1.0.3/grpc-core-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \
379 dialer-grpc-okhttp:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-okhttp/1.0.3/grpc-okhttp-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \
380 dialer-grpc-protobuf-lite:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-protobuf-lite/1.0.3/grpc-protobuf-lite-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \
381 dialer-grpc-stub:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-stub/1.0.3/grpc-stub-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \
Eric Erfanian842a9772017-06-22 09:39:08 -0700382 dialer-guava:../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/20.0/guava-20.0$(COMMON_JAVA_PACKAGE_SUFFIX) \
Eric Erfanian90508232017-03-24 09:31:16 -0700383 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) \
384 dialer-javax-inject:../../../prebuilts/tools/common/m2/repository/javax/inject/javax.inject/1/javax.inject-1$(COMMON_JAVA_PACKAGE_SUFFIX)
Eric Erfanianccca3152017-02-22 16:32:36 -0800385
386include $(BUILD_MULTI_PREBUILT)
387
Eric Erfanian90508232017-03-24 09:31:16 -0700388# Enumerate target prebuilts to avoid linker warnings like
389# Dialer (java:sdk) should not link to dialer-guava (java:platform)
390include $(CLEAR_VARS)
391
392LOCAL_MODULE_CLASS := JAVA_LIBRARIES
393LOCAL_MODULE := dialer-guava-target
394LOCAL_SDK_VERSION := current
395LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/20.0/guava-20.0$(COMMON_JAVA_PACKAGE_SUFFIX)
396LOCAL_UNINSTALLABLE_MODULE := true
397
398include $(BUILD_PREBUILT)
399
400include $(CLEAR_VARS)
401
402LOCAL_MODULE_CLASS := JAVA_LIBRARIES
403LOCAL_MODULE := dialer-dagger2-target
404LOCAL_SDK_VERSION := current
Eric Erfanian8369df02017-05-03 10:27:13 -0700405LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.7/dagger-2.7$(COMMON_JAVA_PACKAGE_SUFFIX)
Eric Erfanian90508232017-03-24 09:31:16 -0700406LOCAL_UNINSTALLABLE_MODULE := true
407
408include $(BUILD_PREBUILT)
409
410include $(CLEAR_VARS)
411
412LOCAL_MODULE_CLASS := JAVA_LIBRARIES
413LOCAL_MODULE := dialer-disklrucache-target
414LOCAL_SDK_VERSION := current
Lujiang Xuec0f306f2017-05-25 09:10:58 -0700415LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/disklrucache/SNAPSHOT/disklrucache-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX)
Eric Erfanian90508232017-03-24 09:31:16 -0700416LOCAL_UNINSTALLABLE_MODULE := true
417
418include $(BUILD_PREBUILT)
419
420include $(CLEAR_VARS)
421
422LOCAL_MODULE_CLASS := JAVA_LIBRARIES
423LOCAL_MODULE := dialer-gifdecoder-target
424LOCAL_SDK_VERSION := current
Lujiang Xuec0f306f2017-05-25 09:10:58 -0700425LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/gifdecoder/SNAPSHOT/gifdecoder-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX)
Eric Erfanian90508232017-03-24 09:31:16 -0700426LOCAL_UNINSTALLABLE_MODULE := true
427
428include $(BUILD_PREBUILT)
429
430include $(CLEAR_VARS)
431
432LOCAL_MODULE_CLASS := JAVA_LIBRARIES
433LOCAL_MODULE := dialer-glide-target
434LOCAL_SDK_VERSION := current
Lujiang Xuec0f306f2017-05-25 09:10:58 -0700435LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/glide/SNAPSHOT/glide-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX)
Eric Erfanian90508232017-03-24 09:31:16 -0700436LOCAL_UNINSTALLABLE_MODULE := true
437
438include $(BUILD_PREBUILT)
439
440include $(CLEAR_VARS)
441
442LOCAL_MODULE_CLASS := JAVA_LIBRARIES
443LOCAL_MODULE := dialer-javax-annotation-api-target
444LOCAL_SDK_VERSION := current
445LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2$(COMMON_JAVA_PACKAGE_SUFFIX)
446LOCAL_UNINSTALLABLE_MODULE := true
447
448include $(BUILD_PREBUILT)
449
450include $(CLEAR_VARS)
451
452LOCAL_MODULE_CLASS := JAVA_LIBRARIES
453LOCAL_MODULE := dialer-libshortcutbadger-target
454LOCAL_SDK_VERSION := current
455LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/me/leolin/ShortcutBadger/1.1.13/ShortcutBadger-1.1.13$(COMMON_JAVA_PACKAGE_SUFFIX)
456LOCAL_UNINSTALLABLE_MODULE := true
457
458include $(BUILD_PREBUILT)
459
460include $(CLEAR_VARS)
461
462LOCAL_MODULE_CLASS := JAVA_LIBRARIES
463LOCAL_MODULE := dialer-javax-inject-target
464LOCAL_SDK_VERSION := current
465LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/inject/javax.inject/1/javax.inject-1$(COMMON_JAVA_PACKAGE_SUFFIX)
466LOCAL_UNINSTALLABLE_MODULE := true
467
468include $(BUILD_PREBUILT)
469
Eric Erfanianccca3152017-02-22 16:32:36 -0800470include $(CLEAR_VARS)
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700471
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700472LOCAL_MODULE_CLASS := JAVA_LIBRARIES
473LOCAL_MODULE := dialer-commons-io-target
474LOCAL_SDK_VERSION := current
475LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/commons-io/commons-io/2.4/commons-io-2.4$(COMMON_JAVA_PACKAGE_SUFFIX)
476LOCAL_UNINSTALLABLE_MODULE := true
477
478include $(BUILD_PREBUILT)
479
480include $(CLEAR_VARS)
Eric Erfanian8369df02017-05-03 10:27:13 -0700481
482LOCAL_MODULE_CLASS := JAVA_LIBRARIES
483LOCAL_MODULE := dialer-mime4j-core-target
484LOCAL_SDK_VERSION := current
485LOCAL_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)
486LOCAL_UNINSTALLABLE_MODULE := true
487
488include $(BUILD_PREBUILT)
489
490include $(CLEAR_VARS)
491
492LOCAL_MODULE_CLASS := JAVA_LIBRARIES
493LOCAL_MODULE := dialer-mime4j-dom-target
494LOCAL_SDK_VERSION := current
495LOCAL_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)
496LOCAL_UNINSTALLABLE_MODULE := true
497
498include $(BUILD_PREBUILT)
499
Ta-wei Yen6af9c022017-05-25 14:57:51 -0700500include $(CLEAR_VARS)
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700501
502LOCAL_MODULE_CLASS := JAVA_LIBRARIES
503LOCAL_MODULE := dialer-grpc-core-target
504LOCAL_SDK_VERSION := current
505LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-core/1.0.3/grpc-core-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
506LOCAL_UNINSTALLABLE_MODULE := true
507
508include $(BUILD_PREBUILT)
509
510include $(CLEAR_VARS)
511
512LOCAL_MODULE_CLASS := JAVA_LIBRARIES
513LOCAL_MODULE := dialer-grpc-okhttp-target
514LOCAL_SDK_VERSION := current
515LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-okhttp/1.0.3/grpc-okhttp-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
516LOCAL_UNINSTALLABLE_MODULE := true
517
518include $(BUILD_PREBUILT)
519
520include $(CLEAR_VARS)
521
522LOCAL_MODULE_CLASS := JAVA_LIBRARIES
523LOCAL_MODULE := dialer-grpc-protobuf-lite-target
524LOCAL_SDK_VERSION := current
525LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-protobuf-lite/1.0.3/grpc-protobuf-lite-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
526LOCAL_UNINSTALLABLE_MODULE := true
527
528include $(BUILD_PREBUILT)
529
530include $(CLEAR_VARS)
531
532LOCAL_MODULE_CLASS := JAVA_LIBRARIES
533LOCAL_MODULE := dialer-grpc-stub-target
534LOCAL_SDK_VERSION := current
535LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-stub/1.0.3/grpc-stub-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
536LOCAL_UNINSTALLABLE_MODULE := true
537
538include $(BUILD_PREBUILT)
539
540include $(CLEAR_VARS)
541
542LOCAL_MODULE_CLASS := JAVA_LIBRARIES
543LOCAL_MODULE := dialer-grpc-all-target
544LOCAL_SDK_VERSION := current
545LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-all/1.0.3/grpc-all-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
546LOCAL_UNINSTALLABLE_MODULE := true
547
548include $(BUILD_PREBUILT)
549
550include $(CLEAR_VARS)
Eric Erfanianea7890c2017-06-19 12:40:59 -0700551
Eric Erfanian842a9772017-06-22 09:39:08 -0700552LOCAL_MODULE_CLASS := JAVA_LIBRARIES
553LOCAL_MODULE := dialer-grpc-context-target
554LOCAL_SDK_VERSION := current
555LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-context/1.0.3/grpc-context-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
556LOCAL_UNINSTALLABLE_MODULE := true
557
558include $(BUILD_PREBUILT)
559
560include $(CLEAR_VARS)