blob: 48b12aacbc657879dedaf3d3d4bb0c52f4940fdb [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 Erfanian91ce7d22017-06-05 13:35:02 -07007# * b/62417801 removed translation string variant:
Eric Erfanianea7890c2017-06-19 12:40:59 -07008# $ find java/com/android/incallui/res/*mcc262*/strings.xml | xargs rm
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"
13# * b/62787062 / 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 Erfanianea7890c2017-06-19 12:40:59 -070036 $(BASE_DIR)/dialer/calllog/testing/FakeCallLogApplication.java \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070037 $(BASE_DIR)/incallui/calllocation/impl/AuthException.java \
38 $(BASE_DIR)/incallui/calllocation/impl/CallLocationImpl.java \
39 $(BASE_DIR)/incallui/calllocation/impl/CallLocationModule.java \
40 $(BASE_DIR)/incallui/calllocation/impl/DownloadMapImageTask.java \
41 $(BASE_DIR)/incallui/calllocation/impl/GoogleLocationSettingHelper.java \
42 $(BASE_DIR)/incallui/calllocation/impl/HttpFetcher.java \
43 $(BASE_DIR)/incallui/calllocation/impl/LocationFragment.java \
44 $(BASE_DIR)/incallui/calllocation/impl/LocationHelper.java \
45 $(BASE_DIR)/incallui/calllocation/impl/LocationPresenter.java \
46 $(BASE_DIR)/incallui/calllocation/impl/LocationUrlBuilder.java \
47 $(BASE_DIR)/incallui/calllocation/impl/ReverseGeocodeTask.java \
48 $(BASE_DIR)/incallui/calllocation/impl/TrafficStatsTags.java \
49 $(BASE_DIR)/incallui/maps/impl/MapsImpl.java \
50 $(BASE_DIR)/incallui/maps/impl/MapsModule.java \
Eric Erfanian91ce7d22017-06-05 13:35:02 -070051 $(BASE_DIR)/incallui/maps/impl/StaticMapFragment.java \
Chiao Cheng94b10b52012-08-17 16:59:12 -070052
Paul Duffin922b1082017-05-05 15:05:47 +010053# Exclude testing only class, not used anywhere here
54EXCLUDE_FILES += \
55 $(BASE_DIR)/contacts/common/format/testing/SpannedTestUtils.java
56
Eric Erfanianccca3152017-02-22 16:32:36 -080057# All Dialers resources.
58# find . -type d -name "res" | uniq | sort
59RES_DIRS := \
60 assets/product/res \
61 assets/quantum/res \
62 $(BASE_DIR)/contacts/common/res \
Eric Erfanianc857f902017-05-15 14:05:33 -070063 $(BASE_DIR)/dialer/about/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080064 $(BASE_DIR)/dialer/app/res \
65 $(BASE_DIR)/dialer/app/voicemail/error/res \
66 $(BASE_DIR)/dialer/blocking/res \
67 $(BASE_DIR)/dialer/callcomposer/camera/camerafocus/res \
68 $(BASE_DIR)/dialer/callcomposer/cameraui/res \
69 $(BASE_DIR)/dialer/callcomposer/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070070 $(BASE_DIR)/dialer/calldetails/res \
Eric Erfanian8369df02017-05-03 10:27:13 -070071 $(BASE_DIR)/dialer/calllog/ui/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070072 $(BASE_DIR)/dialer/calllogutils/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080073 $(BASE_DIR)/dialer/common/res \
Eric Erfanian91ce7d22017-06-05 13:35:02 -070074 $(BASE_DIR)/dialer/contactactions/res \
Eric Erfanian8369df02017-05-03 10:27:13 -070075 $(BASE_DIR)/dialer/contactsfragment/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080076 $(BASE_DIR)/dialer/dialpadview/res \
77 $(BASE_DIR)/dialer/interactions/res \
Eric Erfanianea7890c2017-06-19 12:40:59 -070078 $(BASE_DIR)/dialer/main/impl/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070079 $(BASE_DIR)/dialer/notification/res \
80 $(BASE_DIR)/dialer/oem/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080081 $(BASE_DIR)/dialer/phonenumberutil/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070082 $(BASE_DIR)/dialer/postcall/res \
Eric Erfanianea7890c2017-06-19 12:40:59 -070083 $(BASE_DIR)/dialer/searchfragment/list/res \
84 $(BASE_DIR)/dialer/searchfragment/nearbyplaces/res \
85 $(BASE_DIR)/dialer/searchfragment/common/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080086 $(BASE_DIR)/dialer/shortcuts/res \
Eric Erfaniand8046e52017-04-06 09:41:50 -070087 $(BASE_DIR)/dialer/speeddial/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080088 $(BASE_DIR)/dialer/theme/res \
89 $(BASE_DIR)/dialer/util/res \
90 $(BASE_DIR)/dialer/voicemailstatus/res \
91 $(BASE_DIR)/dialer/widget/res \
Eric Erfanian91ce7d22017-06-05 13:35:02 -070092 $(BASE_DIR)/dialershared/bubble/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080093 $(BASE_DIR)/incallui/answer/impl/affordance/res \
94 $(BASE_DIR)/incallui/answer/impl/answermethod/res \
95 $(BASE_DIR)/incallui/answer/impl/hint/res \
96 $(BASE_DIR)/incallui/answer/impl/res \
97 $(BASE_DIR)/incallui/audioroute/res \
98 $(BASE_DIR)/incallui/autoresizetext/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070099 $(BASE_DIR)/incallui/calllocation/impl/res \
Eric Erfanianccca3152017-02-22 16:32:36 -0800100 $(BASE_DIR)/incallui/commontheme/res \
101 $(BASE_DIR)/incallui/contactgrid/res \
102 $(BASE_DIR)/incallui/hold/res \
103 $(BASE_DIR)/incallui/incall/impl/res \
104 $(BASE_DIR)/incallui/res \
105 $(BASE_DIR)/incallui/sessiondata/res \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700106 $(BASE_DIR)/incallui/speakerbuttonlogic/res \
Eric Erfanianc857f902017-05-15 14:05:33 -0700107 $(BASE_DIR)/incallui/telecomeventui/res \
Eric Erfanianccca3152017-02-22 16:32:36 -0800108 $(BASE_DIR)/incallui/video/impl/res \
Eric Erfaniand8046e52017-04-06 09:41:50 -0700109 $(BASE_DIR)/incallui/video/protocol/res \
Eric Erfanianccca3152017-02-22 16:32:36 -0800110 $(BASE_DIR)/incallui/wifi/res \
Eric Erfanian8369df02017-05-03 10:27:13 -0700111 $(BASE_DIR)/voicemail/impl/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700112
Ta-wei Yen90a13e92016-01-11 13:00:53 -0800113
Eric Erfanianccca3152017-02-22 16:32:36 -0800114# Dialer manifest files to merge.
115# find . -type f -name "AndroidManifest.xml" | uniq | sort
116DIALER_MANIFEST_FILES += \
117 $(BASE_DIR)/contacts/common/AndroidManifest.xml \
Eric Erfanianc857f902017-05-15 14:05:33 -0700118 $(BASE_DIR)/dialer/about/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800119 $(BASE_DIR)/dialer/app/AndroidManifest.xml \
120 $(BASE_DIR)/dialer/app/manifests/activities/AndroidManifest.xml \
121 $(BASE_DIR)/dialer/app/voicemail/error/AndroidManifest.xml \
122 $(BASE_DIR)/dialer/backup/AndroidManifest.xml \
123 $(BASE_DIR)/dialer/blocking/AndroidManifest.xml \
124 $(BASE_DIR)/dialer/callcomposer/AndroidManifest.xml \
125 $(BASE_DIR)/dialer/callcomposer/camera/AndroidManifest.xml \
126 $(BASE_DIR)/dialer/callcomposer/camera/camerafocus/AndroidManifest.xml \
127 $(BASE_DIR)/dialer/callcomposer/cameraui/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700128 $(BASE_DIR)/dialer/calldetails/AndroidManifest.xml \
Eric Erfanian8369df02017-05-03 10:27:13 -0700129 $(BASE_DIR)/dialer/calllog/ui/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700130 $(BASE_DIR)/dialer/calllogutils/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800131 $(BASE_DIR)/dialer/common/AndroidManifest.xml \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700132 $(BASE_DIR)/dialer/contactactions/AndroidManifest.xml \
Eric Erfanian8369df02017-05-03 10:27:13 -0700133 $(BASE_DIR)/dialer/contactsfragment/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800134 $(BASE_DIR)/dialer/dialpadview/AndroidManifest.xml \
135 $(BASE_DIR)/dialer/interactions/AndroidManifest.xml \
Eric Erfanianea7890c2017-06-19 12:40:59 -0700136 $(BASE_DIR)/dialer/main/impl/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700137 $(BASE_DIR)/dialer/notification/AndroidManifest.xml \
138 $(BASE_DIR)/dialer/oem/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800139 $(BASE_DIR)/dialer/phonenumberutil/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700140 $(BASE_DIR)/dialer/postcall/AndroidManifest.xml \
Eric Erfanianea7890c2017-06-19 12:40:59 -0700141 $(BASE_DIR)/dialer/searchfragment/list/AndroidManifest.xml \
142 $(BASE_DIR)/dialer/searchfragment/nearbyplaces/AndroidManifest.xml \
143 $(BASE_DIR)/dialer/searchfragment/common/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800144 $(BASE_DIR)/dialer/shortcuts/AndroidManifest.xml \
145 $(BASE_DIR)/dialer/simulator/impl/AndroidManifest.xml \
Eric Erfaniand8046e52017-04-06 09:41:50 -0700146 $(BASE_DIR)/dialer/speeddial/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800147 $(BASE_DIR)/dialer/theme/AndroidManifest.xml \
148 $(BASE_DIR)/dialer/util/AndroidManifest.xml \
149 $(BASE_DIR)/dialer/voicemailstatus/AndroidManifest.xml \
150 $(BASE_DIR)/dialer/widget/AndroidManifest.xml \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700151 $(BASE_DIR)/dialershared/bubble/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800152 $(BASE_DIR)/incallui/AndroidManifest.xml \
153 $(BASE_DIR)/incallui/answer/impl/affordance/AndroidManifest.xml \
154 $(BASE_DIR)/incallui/answer/impl/AndroidManifest.xml \
155 $(BASE_DIR)/incallui/answer/impl/answermethod/AndroidManifest.xml \
156 $(BASE_DIR)/incallui/answer/impl/hint/AndroidManifest.xml \
157 $(BASE_DIR)/incallui/audioroute/AndroidManifest.xml \
158 $(BASE_DIR)/incallui/autoresizetext/AndroidManifest.xml \
159 $(BASE_DIR)/incallui/commontheme/AndroidManifest.xml \
160 $(BASE_DIR)/incallui/contactgrid/AndroidManifest.xml \
161 $(BASE_DIR)/incallui/hold/AndroidManifest.xml \
162 $(BASE_DIR)/incallui/incall/impl/AndroidManifest.xml \
163 $(BASE_DIR)/incallui/sessiondata/AndroidManifest.xml \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700164 $(BASE_DIR)/incallui/speakerbuttonlogic/AndroidManifest.xml \
Eric Erfanianc857f902017-05-15 14:05:33 -0700165 $(BASE_DIR)/incallui/telecomeventui/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800166 $(BASE_DIR)/incallui/video/impl/AndroidManifest.xml \
Eric Erfaniand8046e52017-04-06 09:41:50 -0700167 $(BASE_DIR)/incallui/video/protocol/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800168 $(BASE_DIR)/incallui/wifi/AndroidManifest.xml \
Eric Erfanian8369df02017-05-03 10:27:13 -0700169 $(BASE_DIR)/voicemail/impl/AndroidManifest.xml \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700170 $(BASE_DIR)/voicemail/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700171
Chiao Cheng94b10b52012-08-17 16:59:12 -0700172
Eric Erfanianccca3152017-02-22 16:32:36 -0800173# Merge all manifest files.
174LOCAL_FULL_LIBS_MANIFEST_FILES := \
175 $(addprefix $(LOCAL_PATH)/, $(DIALER_MANIFEST_FILES))
176LOCAL_SRC_FILES := $(call all-java-files-under, $(SRC_DIRS))
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700177LOCAL_SRC_FILES := $(filter-out $(EXCLUDE_FILES),$(LOCAL_SRC_FILES))
Eric Erfanian8369df02017-05-03 10:27:13 -0700178LOCAL_SRC_FILES += $(call all-proto-files-under, $(SRC_DIRS))
179LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)
180
Eric Erfanianccca3152017-02-22 16:32:36 -0800181LOCAL_RESOURCE_DIR := \
182 $(addprefix $(LOCAL_PATH)/, $(RES_DIRS)) \
Kirill Grouchnikovfa340972017-05-16 01:32:43 +0000183 $(support_library_root_dir)/design/res \
184 $(support_library_root_dir)/transition/res \
185 $(support_library_root_dir)/v7/appcompat/res \
186 $(support_library_root_dir)/v7/cardview/res \
187 $(support_library_root_dir)/v7/recyclerview/res
Eric Erfanianccca3152017-02-22 16:32:36 -0800188
189# We specify each package explicitly to glob resource files.
Chiao Cheng94b10b52012-08-17 16:59:12 -0700190LOCAL_AAPT_FLAGS := \
Eric Erfanianccca3152017-02-22 16:32:36 -0800191 --auto-add-overlay \
Eric Erfanianccca3152017-02-22 16:32:36 -0800192 --extra-packages com.android.contacts.common \
Eric Erfanianc857f902017-05-15 14:05:33 -0700193 --extra-packages com.android.dialer.about \
Eric Erfanianccca3152017-02-22 16:32:36 -0800194 --extra-packages com.android.dialer.app \
195 --extra-packages com.android.dialer.app.voicemail.error \
196 --extra-packages com.android.dialer.blocking \
197 --extra-packages com.android.dialer.callcomposer \
198 --extra-packages com.android.dialer.callcomposer \
199 --extra-packages com.android.dialer.callcomposer.camera \
200 --extra-packages com.android.dialer.callcomposer.camera.camerafocus \
201 --extra-packages com.android.dialer.callcomposer.cameraui \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700202 --extra-packages com.android.dialer.calldetails \
Eric Erfanian8369df02017-05-03 10:27:13 -0700203 --extra-packages com.android.dialer.calllog.ui \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700204 --extra-packages com.android.dialer.calllogutils \
Eric Erfanianccca3152017-02-22 16:32:36 -0800205 --extra-packages com.android.dialer.common \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700206 --extra-packages com.android.dialer.contactactions \
Eric Erfanian8369df02017-05-03 10:27:13 -0700207 --extra-packages com.android.dialer.contactsfragment \
Eric Erfanianccca3152017-02-22 16:32:36 -0800208 --extra-packages com.android.dialer.dialpadview \
209 --extra-packages com.android.dialer.interactions \
Eric Erfanianea7890c2017-06-19 12:40:59 -0700210 --extra-packages com.android.dialer.main.impl \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700211 --extra-packages com.android.dialer.notification \
212 --extra-packages com.android.dialer.oem \
Eric Erfanianccca3152017-02-22 16:32:36 -0800213 --extra-packages com.android.dialer.phonenumberutil \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700214 --extra-packages com.android.dialer.postcall \
Eric Erfanianea7890c2017-06-19 12:40:59 -0700215 --extra-packages com.android.dialer.searchfragment.list \
216 --extra-packages com.android.dialer.searchfragment.nearbyplaces \
217 --extra-packages com.android.dialer.searchfragment.common \
Eric Erfanianccca3152017-02-22 16:32:36 -0800218 --extra-packages com.android.dialer.shortcuts \
Eric Erfaniand8046e52017-04-06 09:41:50 -0700219 --extra-packages com.android.dialer.speeddial \
Eric Erfanianc857f902017-05-15 14:05:33 -0700220 --extra-packages com.android.dialer.theme \
Eric Erfanianccca3152017-02-22 16:32:36 -0800221 --extra-packages com.android.dialer.util \
222 --extra-packages com.android.dialer.voicemailstatus \
223 --extra-packages com.android.dialer.widget \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700224 --extra-packages com.android.dialershared.bubble \
Eric Erfanianccca3152017-02-22 16:32:36 -0800225 --extra-packages com.android.incallui \
226 --extra-packages com.android.incallui.answer.impl \
227 --extra-packages com.android.incallui.answer.impl.affordance \
228 --extra-packages com.android.incallui.answer.impl.affordance \
229 --extra-packages com.android.incallui.answer.impl.answermethod \
230 --extra-packages com.android.incallui.answer.impl.hint \
231 --extra-packages com.android.incallui.audioroute \
232 --extra-packages com.android.incallui.autoresizetext \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700233 --extra-packages com.android.incallui.calllocation \
234 --extra-packages com.android.incallui.calllocation.impl \
Eric Erfanianccca3152017-02-22 16:32:36 -0800235 --extra-packages com.android.incallui.commontheme \
236 --extra-packages com.android.incallui.contactgrid \
237 --extra-packages com.android.incallui.hold \
238 --extra-packages com.android.incallui.incall.impl \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700239 --extra-packages com.android.incallui.maps.impl \
Eric Erfanianccca3152017-02-22 16:32:36 -0800240 --extra-packages com.android.incallui.sessiondata \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700241 --extra-packages com.android.incallui.speakerbuttonlogic \
Eric Erfanianc857f902017-05-15 14:05:33 -0700242 --extra-packages com.android.incallui.telecomeventui \
Eric Erfanianccca3152017-02-22 16:32:36 -0800243 --extra-packages com.android.incallui.video \
244 --extra-packages com.android.incallui.video.impl \
245 --extra-packages com.android.incallui.wifi \
246 --extra-packages com.android.phone.common \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700247 --extra-packages com.android.voicemail \
248 --extra-packages com.android.voicemail.impl \
249 --extra-packages com.android.voicemail.impl.fetch \
250 --extra-packages com.android.voicemail.impl.settings \
251 --extra-packages com.android.voicemail.settings \
Eric Erfanianccca3152017-02-22 16:32:36 -0800252 --extra-packages me.leolin.shortcutbadger
Chiao Cheng94b10b52012-08-17 16:59:12 -0700253
Chiao Cheng94b10b52012-08-17 16:59:12 -0700254LOCAL_STATIC_JAVA_LIBRARIES := \
Eric Erfanianccca3152017-02-22 16:32:36 -0800255 android-common \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700256 android-support-dynamic-animation \
Eric Erfanianccca3152017-02-22 16:32:36 -0800257 com.android.vcard \
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700258 dialer-commons-io-target \
Eric Erfanian90508232017-03-24 09:31:16 -0700259 dialer-dagger2-target \
260 dialer-disklrucache-target \
261 dialer-gifdecoder-target \
262 dialer-glide-target \
263 dialer-guava-target \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700264 dialer-grpc-all-target \
265 dialer-grpc-core-target \
266 dialer-grpc-okhttp-target \
267 dialer-grpc-protobuf-lite-target \
268 dialer-grpc-stub-target \
Eric Erfanian90508232017-03-24 09:31:16 -0700269 dialer-javax-annotation-api-target \
270 dialer-javax-inject-target \
271 dialer-libshortcutbadger-target \
Eric Erfanian8369df02017-05-03 10:27:13 -0700272 dialer-mime4j-core-target \
273 dialer-mime4j-dom-target \
Eric Erfanianccca3152017-02-22 16:32:36 -0800274 jsr305 \
275 libphonenumber \
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700276 volley \
Chiao Cheng94b10b52012-08-17 16:59:12 -0700277
Alan Viveretteb5870be2017-04-26 11:15:10 -0400278LOCAL_STATIC_ANDROID_LIBRARIES := \
279 android-support-design \
280 android-support-transition \
281 android-support-v13 \
282 android-support-v4 \
283 android-support-v7-appcompat \
284 android-support-v7-cardview \
285 android-support-v7-recyclerview \
286
Eric Erfanianccca3152017-02-22 16:32:36 -0800287LOCAL_JAVA_LIBRARIES := \
Eric Erfanian90508232017-03-24 09:31:16 -0700288 org.apache.http.legacy \
289 dialer-auto-value \
Eric Erfanianccca3152017-02-22 16:32:36 -0800290
291# Libraries needed by the compiler (JACK) to generate code.
292PROCESSOR_LIBRARIES_TARGET := \
Eric Erfanian90508232017-03-24 09:31:16 -0700293 dialer-dagger2-compiler \
Eric Erfanianccca3152017-02-22 16:32:36 -0800294 dialer-dagger2 \
295 dialer-dagger2-producers \
296 dialer-guava \
297 dialer-javax-annotation-api \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700298 dialer-javax-inject \
Eric Erfanian90508232017-03-24 09:31:16 -0700299 dialer-auto-value \
Eric Erfanianccca3152017-02-22 16:32:36 -0800300
301# Resolve the jar paths.
302PROCESSOR_JARS := $(call java-lib-deps, $(PROCESSOR_LIBRARIES_TARGET))
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700303# Necessary for annotation processors to work correctly.
Eric Erfanianccca3152017-02-22 16:32:36 -0800304LOCAL_ADDITIONAL_DEPENDENCIES += $(PROCESSOR_JARS)
305
306LOCAL_JACK_FLAGS += --processorpath $(call normalize-path-list,$(PROCESSOR_JARS))
Eric Erfanian90508232017-03-24 09:31:16 -0700307LOCAL_JAVACFLAGS += -processorpath $(call normalize-path-list,$(PROCESSOR_JARS))
Chiao Cheng94b10b52012-08-17 16:59:12 -0700308
Eric Erfanianea7890c2017-06-19 12:40:59 -0700309
310# Begin Bug: 37077388
311LOCAL_DX_FLAGS := --core-library --multi-dex
312LOCAL_JACK_FLAGS := --multi-dex native
313
314LOCAL_PROGUARD_ENABLED := disabled
315ifdef LOCAL_JACK_ENABLED
Eric Erfanian90508232017-03-24 09:31:16 -0700316# Proguard includes
317LOCAL_PROGUARD_FLAG_FILES := \
318 java/com/android/dialer/common/proguard.flags \
319 java/com/android/dialer/proguard/proguard_base.flags \
320 java/com/android/dialer/proguard/proguard.flags \
321 java/com/android/dialer/proguard/proguard_release.flags \
322 java/com/android/incallui/answer/impl/proguard.flags
Colin Crossf939e092017-04-05 22:13:40 -0700323LOCAL_PROGUARD_ENABLED := custom
324
Colin Crossf939e092017-04-05 22:13:40 -0700325LOCAL_PROGUARD_ENABLED += optimization
326endif
Chiao Cheng94b10b52012-08-17 16:59:12 -0700327
Eric Erfanianea7890c2017-06-19 12:40:59 -0700328# End Bug: 37077388
329
Ta-wei Yen6640e552017-04-21 15:33:24 -0700330LOCAL_SDK_VERSION := system_current
Eric Erfanianccca3152017-02-22 16:32:36 -0800331LOCAL_MODULE_TAGS := optional
332LOCAL_PACKAGE_NAME := Dialer
333LOCAL_CERTIFICATE := shared
334LOCAL_PRIVILEGED_MODULE := true
Eric Erfanian8369df02017-05-03 10:27:13 -0700335LOCAL_USE_AAPT2 := true
336
337# b/37483961 - Jack Not Compiling Dagger Class Properly
338LOCAL_JACK_ENABLED := javac_frontend
339
Chiao Cheng94b10b52012-08-17 16:59:12 -0700340include $(BUILD_PACKAGE)
341
Eric Erfanianccca3152017-02-22 16:32:36 -0800342# Cleanup local state
343BASE_DIR :=
344SRC_DIRS :=
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700345EXCLUDE_FILES :=
Eric Erfanianccca3152017-02-22 16:32:36 -0800346RES_DIRS :=
347DIALER_MANIFEST_FILES :=
348PROCESSOR_LIBRARIES_TARGET :=
349PROCESSOR_JARS :=
350
351# Create references to prebuilt libraries.
352include $(CLEAR_VARS)
353
354LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \
Eric Erfanian8369df02017-05-03 10:27:13 -0700355 dialer-dagger2-compiler:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger-compiler/2.7/dagger-compiler-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) \
Eric Erfanian90508232017-03-24 09:31:16 -0700356 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 Erfanian8369df02017-05-03 10:27:13 -0700357 dialer-dagger2:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.7/dagger-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) \
358 dialer-dagger2-producers:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger-producers/2.7/dagger-producers-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) \
Eric Erfanian90508232017-03-24 09:31:16 -0700359 dialer-guava:../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/20.0/guava-20.0$(COMMON_JAVA_PACKAGE_SUFFIX) \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700360 dialer-grpc-all:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-all/1.0.3/grpc-all-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \
361 dialer-grpc-core:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-core/1.0.3/grpc-core-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \
362 dialer-grpc-okhttp:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-okhttp/1.0.3/grpc-okhttp-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \
363 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) \
364 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 Erfanian90508232017-03-24 09:31:16 -0700365 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) \
366 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 -0800367
368include $(BUILD_MULTI_PREBUILT)
369
Eric Erfanian90508232017-03-24 09:31:16 -0700370# Enumerate target prebuilts to avoid linker warnings like
371# Dialer (java:sdk) should not link to dialer-guava (java:platform)
372include $(CLEAR_VARS)
373
374LOCAL_MODULE_CLASS := JAVA_LIBRARIES
375LOCAL_MODULE := dialer-guava-target
376LOCAL_SDK_VERSION := current
377LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/20.0/guava-20.0$(COMMON_JAVA_PACKAGE_SUFFIX)
378LOCAL_UNINSTALLABLE_MODULE := true
379
380include $(BUILD_PREBUILT)
381
382include $(CLEAR_VARS)
383
384LOCAL_MODULE_CLASS := JAVA_LIBRARIES
385LOCAL_MODULE := dialer-dagger2-target
386LOCAL_SDK_VERSION := current
Eric Erfanian8369df02017-05-03 10:27:13 -0700387LOCAL_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 -0700388LOCAL_UNINSTALLABLE_MODULE := true
389
390include $(BUILD_PREBUILT)
391
392include $(CLEAR_VARS)
393
394LOCAL_MODULE_CLASS := JAVA_LIBRARIES
395LOCAL_MODULE := dialer-disklrucache-target
396LOCAL_SDK_VERSION := current
Lujiang Xuec0f306f2017-05-25 09:10:58 -0700397LOCAL_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 -0700398LOCAL_UNINSTALLABLE_MODULE := true
399
400include $(BUILD_PREBUILT)
401
402include $(CLEAR_VARS)
403
404LOCAL_MODULE_CLASS := JAVA_LIBRARIES
405LOCAL_MODULE := dialer-gifdecoder-target
406LOCAL_SDK_VERSION := current
Lujiang Xuec0f306f2017-05-25 09:10:58 -0700407LOCAL_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 -0700408LOCAL_UNINSTALLABLE_MODULE := true
409
410include $(BUILD_PREBUILT)
411
412include $(CLEAR_VARS)
413
414LOCAL_MODULE_CLASS := JAVA_LIBRARIES
415LOCAL_MODULE := dialer-glide-target
416LOCAL_SDK_VERSION := current
Lujiang Xuec0f306f2017-05-25 09:10:58 -0700417LOCAL_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 -0700418LOCAL_UNINSTALLABLE_MODULE := true
419
420include $(BUILD_PREBUILT)
421
422include $(CLEAR_VARS)
423
424LOCAL_MODULE_CLASS := JAVA_LIBRARIES
425LOCAL_MODULE := dialer-javax-annotation-api-target
426LOCAL_SDK_VERSION := current
427LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2$(COMMON_JAVA_PACKAGE_SUFFIX)
428LOCAL_UNINSTALLABLE_MODULE := true
429
430include $(BUILD_PREBUILT)
431
432include $(CLEAR_VARS)
433
434LOCAL_MODULE_CLASS := JAVA_LIBRARIES
435LOCAL_MODULE := dialer-libshortcutbadger-target
436LOCAL_SDK_VERSION := current
437LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/me/leolin/ShortcutBadger/1.1.13/ShortcutBadger-1.1.13$(COMMON_JAVA_PACKAGE_SUFFIX)
438LOCAL_UNINSTALLABLE_MODULE := true
439
440include $(BUILD_PREBUILT)
441
442include $(CLEAR_VARS)
443
444LOCAL_MODULE_CLASS := JAVA_LIBRARIES
445LOCAL_MODULE := dialer-javax-inject-target
446LOCAL_SDK_VERSION := current
447LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/inject/javax.inject/1/javax.inject-1$(COMMON_JAVA_PACKAGE_SUFFIX)
448LOCAL_UNINSTALLABLE_MODULE := true
449
450include $(BUILD_PREBUILT)
451
Eric Erfanianccca3152017-02-22 16:32:36 -0800452include $(CLEAR_VARS)
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700453
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700454LOCAL_MODULE_CLASS := JAVA_LIBRARIES
455LOCAL_MODULE := dialer-commons-io-target
456LOCAL_SDK_VERSION := current
457LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/commons-io/commons-io/2.4/commons-io-2.4$(COMMON_JAVA_PACKAGE_SUFFIX)
458LOCAL_UNINSTALLABLE_MODULE := true
459
460include $(BUILD_PREBUILT)
461
462include $(CLEAR_VARS)
Eric Erfanian8369df02017-05-03 10:27:13 -0700463
464LOCAL_MODULE_CLASS := JAVA_LIBRARIES
465LOCAL_MODULE := dialer-mime4j-core-target
466LOCAL_SDK_VERSION := current
467LOCAL_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)
468LOCAL_UNINSTALLABLE_MODULE := true
469
470include $(BUILD_PREBUILT)
471
472include $(CLEAR_VARS)
473
474LOCAL_MODULE_CLASS := JAVA_LIBRARIES
475LOCAL_MODULE := dialer-mime4j-dom-target
476LOCAL_SDK_VERSION := current
477LOCAL_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)
478LOCAL_UNINSTALLABLE_MODULE := true
479
480include $(BUILD_PREBUILT)
481
Ta-wei Yen6af9c022017-05-25 14:57:51 -0700482include $(CLEAR_VARS)
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700483
484LOCAL_MODULE_CLASS := JAVA_LIBRARIES
485LOCAL_MODULE := dialer-grpc-core-target
486LOCAL_SDK_VERSION := current
487LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-core/1.0.3/grpc-core-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
488LOCAL_UNINSTALLABLE_MODULE := true
489
490include $(BUILD_PREBUILT)
491
492include $(CLEAR_VARS)
493
494LOCAL_MODULE_CLASS := JAVA_LIBRARIES
495LOCAL_MODULE := dialer-grpc-okhttp-target
496LOCAL_SDK_VERSION := current
497LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-okhttp/1.0.3/grpc-okhttp-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
498LOCAL_UNINSTALLABLE_MODULE := true
499
500include $(BUILD_PREBUILT)
501
502include $(CLEAR_VARS)
503
504LOCAL_MODULE_CLASS := JAVA_LIBRARIES
505LOCAL_MODULE := dialer-grpc-protobuf-lite-target
506LOCAL_SDK_VERSION := current
507LOCAL_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)
508LOCAL_UNINSTALLABLE_MODULE := true
509
510include $(BUILD_PREBUILT)
511
512include $(CLEAR_VARS)
513
514LOCAL_MODULE_CLASS := JAVA_LIBRARIES
515LOCAL_MODULE := dialer-grpc-stub-target
516LOCAL_SDK_VERSION := current
517LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-stub/1.0.3/grpc-stub-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
518LOCAL_UNINSTALLABLE_MODULE := true
519
520include $(BUILD_PREBUILT)
521
522include $(CLEAR_VARS)
523
524LOCAL_MODULE_CLASS := JAVA_LIBRARIES
525LOCAL_MODULE := dialer-grpc-all-target
526LOCAL_SDK_VERSION := current
527LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-all/1.0.3/grpc-all-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
528LOCAL_UNINSTALLABLE_MODULE := true
529
530include $(BUILD_PREBUILT)
531
532include $(CLEAR_VARS)
Eric Erfanianea7890c2017-06-19 12:40:59 -0700533