blob: 009e878e2b61387444221e392119881d75208655 [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 \
112 $(BASE_DIR)/incallui/hold/res \
113 $(BASE_DIR)/incallui/incall/impl/res \
114 $(BASE_DIR)/incallui/res \
115 $(BASE_DIR)/incallui/sessiondata/res \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700116 $(BASE_DIR)/incallui/speakerbuttonlogic/res \
Eric Erfanianc857f902017-05-15 14:05:33 -0700117 $(BASE_DIR)/incallui/telecomeventui/res \
Eric Erfanianccca3152017-02-22 16:32:36 -0800118 $(BASE_DIR)/incallui/video/impl/res \
Eric Erfaniand8046e52017-04-06 09:41:50 -0700119 $(BASE_DIR)/incallui/video/protocol/res \
Eric Erfanianccca3152017-02-22 16:32:36 -0800120 $(BASE_DIR)/incallui/wifi/res \
Eric Erfanian8369df02017-05-03 10:27:13 -0700121 $(BASE_DIR)/voicemail/impl/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700122
Ta-wei Yen90a13e92016-01-11 13:00:53 -0800123
Eric Erfanianccca3152017-02-22 16:32:36 -0800124# Dialer manifest files to merge.
125# find . -type f -name "AndroidManifest.xml" | uniq | sort
126DIALER_MANIFEST_FILES += \
127 $(BASE_DIR)/contacts/common/AndroidManifest.xml \
Eric Erfanianc857f902017-05-15 14:05:33 -0700128 $(BASE_DIR)/dialer/about/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800129 $(BASE_DIR)/dialer/app/AndroidManifest.xml \
130 $(BASE_DIR)/dialer/app/manifests/activities/AndroidManifest.xml \
131 $(BASE_DIR)/dialer/app/voicemail/error/AndroidManifest.xml \
132 $(BASE_DIR)/dialer/backup/AndroidManifest.xml \
133 $(BASE_DIR)/dialer/blocking/AndroidManifest.xml \
134 $(BASE_DIR)/dialer/callcomposer/AndroidManifest.xml \
135 $(BASE_DIR)/dialer/callcomposer/camera/AndroidManifest.xml \
136 $(BASE_DIR)/dialer/callcomposer/camera/camerafocus/AndroidManifest.xml \
137 $(BASE_DIR)/dialer/callcomposer/cameraui/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700138 $(BASE_DIR)/dialer/calldetails/AndroidManifest.xml \
Eric Erfanian8369df02017-05-03 10:27:13 -0700139 $(BASE_DIR)/dialer/calllog/ui/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700140 $(BASE_DIR)/dialer/calllogutils/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800141 $(BASE_DIR)/dialer/common/AndroidManifest.xml \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700142 $(BASE_DIR)/dialer/contactactions/AndroidManifest.xml \
Eric Erfanian8369df02017-05-03 10:27:13 -0700143 $(BASE_DIR)/dialer/contactsfragment/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800144 $(BASE_DIR)/dialer/dialpadview/AndroidManifest.xml \
Eric Erfanian842a9772017-06-22 09:39:08 -0700145 $(BASE_DIR)/dialer/enrichedcall/simulator/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800146 $(BASE_DIR)/dialer/interactions/AndroidManifest.xml \
Eric Erfanianea7890c2017-06-19 12:40:59 -0700147 $(BASE_DIR)/dialer/main/impl/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700148 $(BASE_DIR)/dialer/notification/AndroidManifest.xml \
149 $(BASE_DIR)/dialer/oem/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800150 $(BASE_DIR)/dialer/phonenumberutil/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700151 $(BASE_DIR)/dialer/postcall/AndroidManifest.xml \
Eric Erfanian842a9772017-06-22 09:39:08 -0700152 $(BASE_DIR)/dialer/searchfragment/common/AndroidManifest.xml \
Eric Erfanianea7890c2017-06-19 12:40:59 -0700153 $(BASE_DIR)/dialer/searchfragment/list/AndroidManifest.xml \
154 $(BASE_DIR)/dialer/searchfragment/nearbyplaces/AndroidManifest.xml \
Eric Erfanian842a9772017-06-22 09:39:08 -0700155 $(BASE_DIR)/dialershared/bubble/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800156 $(BASE_DIR)/dialer/shortcuts/AndroidManifest.xml \
157 $(BASE_DIR)/dialer/simulator/impl/AndroidManifest.xml \
Eric Erfaniand8046e52017-04-06 09:41:50 -0700158 $(BASE_DIR)/dialer/speeddial/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800159 $(BASE_DIR)/dialer/theme/AndroidManifest.xml \
160 $(BASE_DIR)/dialer/util/AndroidManifest.xml \
161 $(BASE_DIR)/dialer/voicemailstatus/AndroidManifest.xml \
162 $(BASE_DIR)/dialer/widget/AndroidManifest.xml \
163 $(BASE_DIR)/incallui/AndroidManifest.xml \
164 $(BASE_DIR)/incallui/answer/impl/affordance/AndroidManifest.xml \
165 $(BASE_DIR)/incallui/answer/impl/AndroidManifest.xml \
166 $(BASE_DIR)/incallui/answer/impl/answermethod/AndroidManifest.xml \
167 $(BASE_DIR)/incallui/answer/impl/hint/AndroidManifest.xml \
168 $(BASE_DIR)/incallui/audioroute/AndroidManifest.xml \
169 $(BASE_DIR)/incallui/autoresizetext/AndroidManifest.xml \
170 $(BASE_DIR)/incallui/commontheme/AndroidManifest.xml \
171 $(BASE_DIR)/incallui/contactgrid/AndroidManifest.xml \
172 $(BASE_DIR)/incallui/hold/AndroidManifest.xml \
173 $(BASE_DIR)/incallui/incall/impl/AndroidManifest.xml \
174 $(BASE_DIR)/incallui/sessiondata/AndroidManifest.xml \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700175 $(BASE_DIR)/incallui/speakerbuttonlogic/AndroidManifest.xml \
Eric Erfanianc857f902017-05-15 14:05:33 -0700176 $(BASE_DIR)/incallui/telecomeventui/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800177 $(BASE_DIR)/incallui/video/impl/AndroidManifest.xml \
Eric Erfaniand8046e52017-04-06 09:41:50 -0700178 $(BASE_DIR)/incallui/video/protocol/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800179 $(BASE_DIR)/incallui/wifi/AndroidManifest.xml \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700180 $(BASE_DIR)/voicemail/AndroidManifest.xml \
Eric Erfanian842a9772017-06-22 09:39:08 -0700181 $(BASE_DIR)/voicemail/impl/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700182
Chiao Cheng94b10b52012-08-17 16:59:12 -0700183
Eric Erfanianccca3152017-02-22 16:32:36 -0800184# Merge all manifest files.
185LOCAL_FULL_LIBS_MANIFEST_FILES := \
186 $(addprefix $(LOCAL_PATH)/, $(DIALER_MANIFEST_FILES))
187LOCAL_SRC_FILES := $(call all-java-files-under, $(SRC_DIRS))
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700188LOCAL_SRC_FILES := $(filter-out $(EXCLUDE_FILES),$(LOCAL_SRC_FILES))
Eric Erfanian8369df02017-05-03 10:27:13 -0700189LOCAL_SRC_FILES += $(call all-proto-files-under, $(SRC_DIRS))
190LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)
191
Eric Erfanianccca3152017-02-22 16:32:36 -0800192LOCAL_RESOURCE_DIR := \
193 $(addprefix $(LOCAL_PATH)/, $(RES_DIRS)) \
Kirill Grouchnikovfa340972017-05-16 01:32:43 +0000194 $(support_library_root_dir)/design/res \
195 $(support_library_root_dir)/transition/res \
196 $(support_library_root_dir)/v7/appcompat/res \
197 $(support_library_root_dir)/v7/cardview/res \
198 $(support_library_root_dir)/v7/recyclerview/res
Eric Erfanianccca3152017-02-22 16:32:36 -0800199
200# We specify each package explicitly to glob resource files.
Chiao Cheng94b10b52012-08-17 16:59:12 -0700201LOCAL_AAPT_FLAGS := \
Eric Erfanianccca3152017-02-22 16:32:36 -0800202 --auto-add-overlay \
Eric Erfanianccca3152017-02-22 16:32:36 -0800203 --extra-packages com.android.contacts.common \
Eric Erfanianc857f902017-05-15 14:05:33 -0700204 --extra-packages com.android.dialer.about \
Eric Erfanianccca3152017-02-22 16:32:36 -0800205 --extra-packages com.android.dialer.app \
206 --extra-packages com.android.dialer.app.voicemail.error \
207 --extra-packages com.android.dialer.blocking \
208 --extra-packages com.android.dialer.callcomposer \
209 --extra-packages com.android.dialer.callcomposer \
210 --extra-packages com.android.dialer.callcomposer.camera \
211 --extra-packages com.android.dialer.callcomposer.camera.camerafocus \
212 --extra-packages com.android.dialer.callcomposer.cameraui \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700213 --extra-packages com.android.dialer.calldetails \
Eric Erfanian8369df02017-05-03 10:27:13 -0700214 --extra-packages com.android.dialer.calllog.ui \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700215 --extra-packages com.android.dialer.calllogutils \
Eric Erfanianccca3152017-02-22 16:32:36 -0800216 --extra-packages com.android.dialer.common \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700217 --extra-packages com.android.dialer.contactactions \
Eric Erfanian8369df02017-05-03 10:27:13 -0700218 --extra-packages com.android.dialer.contactsfragment \
Eric Erfanianccca3152017-02-22 16:32:36 -0800219 --extra-packages com.android.dialer.dialpadview \
Eric Erfanian842a9772017-06-22 09:39:08 -0700220 --extra-packages com.android.dialer.enrichedcall.simulator \
Eric Erfanianccca3152017-02-22 16:32:36 -0800221 --extra-packages com.android.dialer.interactions \
Eric Erfanianea7890c2017-06-19 12:40:59 -0700222 --extra-packages com.android.dialer.main.impl \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700223 --extra-packages com.android.dialer.notification \
224 --extra-packages com.android.dialer.oem \
Eric Erfanianccca3152017-02-22 16:32:36 -0800225 --extra-packages com.android.dialer.phonenumberutil \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700226 --extra-packages com.android.dialer.postcall \
Eric Erfanian842a9772017-06-22 09:39:08 -0700227 --extra-packages com.android.dialer.searchfragment.common \
Eric Erfanianea7890c2017-06-19 12:40:59 -0700228 --extra-packages com.android.dialer.searchfragment.list \
229 --extra-packages com.android.dialer.searchfragment.nearbyplaces \
Eric Erfanian842a9772017-06-22 09:39:08 -0700230 --extra-packages com.android.dialershared.bubble \
Eric Erfanianccca3152017-02-22 16:32:36 -0800231 --extra-packages com.android.dialer.shortcuts \
Eric Erfaniand8046e52017-04-06 09:41:50 -0700232 --extra-packages com.android.dialer.speeddial \
Eric Erfanianc857f902017-05-15 14:05:33 -0700233 --extra-packages com.android.dialer.theme \
Eric Erfanianccca3152017-02-22 16:32:36 -0800234 --extra-packages com.android.dialer.util \
235 --extra-packages com.android.dialer.voicemailstatus \
236 --extra-packages com.android.dialer.widget \
237 --extra-packages com.android.incallui \
238 --extra-packages com.android.incallui.answer.impl \
239 --extra-packages com.android.incallui.answer.impl.affordance \
240 --extra-packages com.android.incallui.answer.impl.affordance \
241 --extra-packages com.android.incallui.answer.impl.answermethod \
242 --extra-packages com.android.incallui.answer.impl.hint \
243 --extra-packages com.android.incallui.audioroute \
244 --extra-packages com.android.incallui.autoresizetext \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700245 --extra-packages com.android.incallui.calllocation \
246 --extra-packages com.android.incallui.calllocation.impl \
Eric Erfanianccca3152017-02-22 16:32:36 -0800247 --extra-packages com.android.incallui.commontheme \
248 --extra-packages com.android.incallui.contactgrid \
249 --extra-packages com.android.incallui.hold \
250 --extra-packages com.android.incallui.incall.impl \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700251 --extra-packages com.android.incallui.maps.impl \
Eric Erfanianccca3152017-02-22 16:32:36 -0800252 --extra-packages com.android.incallui.sessiondata \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700253 --extra-packages com.android.incallui.speakerbuttonlogic \
Eric Erfanianc857f902017-05-15 14:05:33 -0700254 --extra-packages com.android.incallui.telecomeventui \
Eric Erfanianccca3152017-02-22 16:32:36 -0800255 --extra-packages com.android.incallui.video \
256 --extra-packages com.android.incallui.video.impl \
257 --extra-packages com.android.incallui.wifi \
258 --extra-packages com.android.phone.common \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700259 --extra-packages com.android.voicemail \
260 --extra-packages com.android.voicemail.impl \
261 --extra-packages com.android.voicemail.impl.fetch \
262 --extra-packages com.android.voicemail.impl.settings \
263 --extra-packages com.android.voicemail.settings \
Eric Erfanian842a9772017-06-22 09:39:08 -0700264 --extra-packages me.leolin.shortcutbadger \
265
Chiao Cheng94b10b52012-08-17 16:59:12 -0700266
Chiao Cheng94b10b52012-08-17 16:59:12 -0700267LOCAL_STATIC_JAVA_LIBRARIES := \
Eric Erfanianccca3152017-02-22 16:32:36 -0800268 android-common \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700269 android-support-dynamic-animation \
Eric Erfanianccca3152017-02-22 16:32:36 -0800270 com.android.vcard \
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700271 dialer-commons-io-target \
Eric Erfanian90508232017-03-24 09:31:16 -0700272 dialer-dagger2-target \
273 dialer-disklrucache-target \
274 dialer-gifdecoder-target \
275 dialer-glide-target \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700276 dialer-grpc-all-target \
Eric Erfanian842a9772017-06-22 09:39:08 -0700277 dialer-grpc-context-target \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700278 dialer-grpc-core-target \
279 dialer-grpc-okhttp-target \
280 dialer-grpc-protobuf-lite-target \
281 dialer-grpc-stub-target \
Eric Erfanian842a9772017-06-22 09:39:08 -0700282 dialer-guava-target \
Eric Erfanian90508232017-03-24 09:31:16 -0700283 dialer-javax-annotation-api-target \
284 dialer-javax-inject-target \
285 dialer-libshortcutbadger-target \
Eric Erfanian8369df02017-05-03 10:27:13 -0700286 dialer-mime4j-core-target \
287 dialer-mime4j-dom-target \
Eric Erfanianccca3152017-02-22 16:32:36 -0800288 jsr305 \
289 libphonenumber \
Eric Erfanian842a9772017-06-22 09:39:08 -0700290 okhttp \
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700291 volley \
Chiao Cheng94b10b52012-08-17 16:59:12 -0700292
Alan Viveretteb5870be2017-04-26 11:15:10 -0400293LOCAL_STATIC_ANDROID_LIBRARIES := \
294 android-support-design \
295 android-support-transition \
296 android-support-v13 \
297 android-support-v4 \
298 android-support-v7-appcompat \
299 android-support-v7-cardview \
300 android-support-v7-recyclerview \
301
Eric Erfanianccca3152017-02-22 16:32:36 -0800302LOCAL_JAVA_LIBRARIES := \
Eric Erfanian90508232017-03-24 09:31:16 -0700303 dialer-auto-value \
Eric Erfanian842a9772017-06-22 09:39:08 -0700304 org.apache.http.legacy \
Eric Erfanianccca3152017-02-22 16:32:36 -0800305
306# Libraries needed by the compiler (JACK) to generate code.
307PROCESSOR_LIBRARIES_TARGET := \
Eric Erfanian842a9772017-06-22 09:39:08 -0700308 dialer-auto-value \
Eric Erfanianccca3152017-02-22 16:32:36 -0800309 dialer-dagger2 \
Eric Erfanian842a9772017-06-22 09:39:08 -0700310 dialer-dagger2-compiler \
Eric Erfanianccca3152017-02-22 16:32:36 -0800311 dialer-dagger2-producers \
312 dialer-guava \
313 dialer-javax-annotation-api \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700314 dialer-javax-inject \
Eric Erfanianccca3152017-02-22 16:32:36 -0800315
316# Resolve the jar paths.
317PROCESSOR_JARS := $(call java-lib-deps, $(PROCESSOR_LIBRARIES_TARGET))
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700318# Necessary for annotation processors to work correctly.
Eric Erfanianccca3152017-02-22 16:32:36 -0800319LOCAL_ADDITIONAL_DEPENDENCIES += $(PROCESSOR_JARS)
320
321LOCAL_JACK_FLAGS += --processorpath $(call normalize-path-list,$(PROCESSOR_JARS))
Eric Erfanian90508232017-03-24 09:31:16 -0700322LOCAL_JAVACFLAGS += -processorpath $(call normalize-path-list,$(PROCESSOR_JARS))
Chiao Cheng94b10b52012-08-17 16:59:12 -0700323
Eric Erfanianea7890c2017-06-19 12:40:59 -0700324
325# Begin Bug: 37077388
Eric Erfanian842a9772017-06-22 09:39:08 -0700326LOCAL_DX_FLAGS := --multi-dex
Eric Erfanianea7890c2017-06-19 12:40:59 -0700327LOCAL_JACK_FLAGS := --multi-dex native
328
329LOCAL_PROGUARD_ENABLED := disabled
330ifdef LOCAL_JACK_ENABLED
Eric Erfanian90508232017-03-24 09:31:16 -0700331# Proguard includes
332LOCAL_PROGUARD_FLAG_FILES := \
333 java/com/android/dialer/common/proguard.flags \
334 java/com/android/dialer/proguard/proguard_base.flags \
335 java/com/android/dialer/proguard/proguard.flags \
336 java/com/android/dialer/proguard/proguard_release.flags \
337 java/com/android/incallui/answer/impl/proguard.flags
Colin Crossf939e092017-04-05 22:13:40 -0700338LOCAL_PROGUARD_ENABLED := custom
339
Colin Crossf939e092017-04-05 22:13:40 -0700340LOCAL_PROGUARD_ENABLED += optimization
341endif
Chiao Cheng94b10b52012-08-17 16:59:12 -0700342
Eric Erfanianea7890c2017-06-19 12:40:59 -0700343# End Bug: 37077388
344
Ta-wei Yen6640e552017-04-21 15:33:24 -0700345LOCAL_SDK_VERSION := system_current
Eric Erfanianccca3152017-02-22 16:32:36 -0800346LOCAL_MODULE_TAGS := optional
347LOCAL_PACKAGE_NAME := Dialer
348LOCAL_CERTIFICATE := shared
349LOCAL_PRIVILEGED_MODULE := true
Eric Erfanian8369df02017-05-03 10:27:13 -0700350LOCAL_USE_AAPT2 := true
351
352# b/37483961 - Jack Not Compiling Dagger Class Properly
353LOCAL_JACK_ENABLED := javac_frontend
354
Chiao Cheng94b10b52012-08-17 16:59:12 -0700355include $(BUILD_PACKAGE)
356
Eric Erfanianccca3152017-02-22 16:32:36 -0800357# Cleanup local state
358BASE_DIR :=
359SRC_DIRS :=
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700360EXCLUDE_FILES :=
Eric Erfanianccca3152017-02-22 16:32:36 -0800361RES_DIRS :=
362DIALER_MANIFEST_FILES :=
363PROCESSOR_LIBRARIES_TARGET :=
364PROCESSOR_JARS :=
365
366# Create references to prebuilt libraries.
367include $(CLEAR_VARS)
368
369LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \
Eric Erfanian90508232017-03-24 09:31:16 -0700370 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 -0700371 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 -0700372 dialer-dagger2:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.7/dagger-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) \
373 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 -0700374 dialer-grpc-all:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-all/1.0.3/grpc-all-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \
375 dialer-grpc-core:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-core/1.0.3/grpc-core-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \
376 dialer-grpc-okhttp:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-okhttp/1.0.3/grpc-okhttp-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \
377 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) \
378 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 -0700379 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 -0700380 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) \
381 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 -0800382
383include $(BUILD_MULTI_PREBUILT)
384
Eric Erfanian90508232017-03-24 09:31:16 -0700385# Enumerate target prebuilts to avoid linker warnings like
386# Dialer (java:sdk) should not link to dialer-guava (java:platform)
387include $(CLEAR_VARS)
388
389LOCAL_MODULE_CLASS := JAVA_LIBRARIES
390LOCAL_MODULE := dialer-guava-target
391LOCAL_SDK_VERSION := current
392LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/20.0/guava-20.0$(COMMON_JAVA_PACKAGE_SUFFIX)
393LOCAL_UNINSTALLABLE_MODULE := true
394
395include $(BUILD_PREBUILT)
396
397include $(CLEAR_VARS)
398
399LOCAL_MODULE_CLASS := JAVA_LIBRARIES
400LOCAL_MODULE := dialer-dagger2-target
401LOCAL_SDK_VERSION := current
Eric Erfanian8369df02017-05-03 10:27:13 -0700402LOCAL_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 -0700403LOCAL_UNINSTALLABLE_MODULE := true
404
405include $(BUILD_PREBUILT)
406
407include $(CLEAR_VARS)
408
409LOCAL_MODULE_CLASS := JAVA_LIBRARIES
410LOCAL_MODULE := dialer-disklrucache-target
411LOCAL_SDK_VERSION := current
Lujiang Xuec0f306f2017-05-25 09:10:58 -0700412LOCAL_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 -0700413LOCAL_UNINSTALLABLE_MODULE := true
414
415include $(BUILD_PREBUILT)
416
417include $(CLEAR_VARS)
418
419LOCAL_MODULE_CLASS := JAVA_LIBRARIES
420LOCAL_MODULE := dialer-gifdecoder-target
421LOCAL_SDK_VERSION := current
Lujiang Xuec0f306f2017-05-25 09:10:58 -0700422LOCAL_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 -0700423LOCAL_UNINSTALLABLE_MODULE := true
424
425include $(BUILD_PREBUILT)
426
427include $(CLEAR_VARS)
428
429LOCAL_MODULE_CLASS := JAVA_LIBRARIES
430LOCAL_MODULE := dialer-glide-target
431LOCAL_SDK_VERSION := current
Lujiang Xuec0f306f2017-05-25 09:10:58 -0700432LOCAL_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 -0700433LOCAL_UNINSTALLABLE_MODULE := true
434
435include $(BUILD_PREBUILT)
436
437include $(CLEAR_VARS)
438
439LOCAL_MODULE_CLASS := JAVA_LIBRARIES
440LOCAL_MODULE := dialer-javax-annotation-api-target
441LOCAL_SDK_VERSION := current
442LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2$(COMMON_JAVA_PACKAGE_SUFFIX)
443LOCAL_UNINSTALLABLE_MODULE := true
444
445include $(BUILD_PREBUILT)
446
447include $(CLEAR_VARS)
448
449LOCAL_MODULE_CLASS := JAVA_LIBRARIES
450LOCAL_MODULE := dialer-libshortcutbadger-target
451LOCAL_SDK_VERSION := current
452LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/me/leolin/ShortcutBadger/1.1.13/ShortcutBadger-1.1.13$(COMMON_JAVA_PACKAGE_SUFFIX)
453LOCAL_UNINSTALLABLE_MODULE := true
454
455include $(BUILD_PREBUILT)
456
457include $(CLEAR_VARS)
458
459LOCAL_MODULE_CLASS := JAVA_LIBRARIES
460LOCAL_MODULE := dialer-javax-inject-target
461LOCAL_SDK_VERSION := current
462LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/inject/javax.inject/1/javax.inject-1$(COMMON_JAVA_PACKAGE_SUFFIX)
463LOCAL_UNINSTALLABLE_MODULE := true
464
465include $(BUILD_PREBUILT)
466
Eric Erfanianccca3152017-02-22 16:32:36 -0800467include $(CLEAR_VARS)
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700468
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700469LOCAL_MODULE_CLASS := JAVA_LIBRARIES
470LOCAL_MODULE := dialer-commons-io-target
471LOCAL_SDK_VERSION := current
472LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/commons-io/commons-io/2.4/commons-io-2.4$(COMMON_JAVA_PACKAGE_SUFFIX)
473LOCAL_UNINSTALLABLE_MODULE := true
474
475include $(BUILD_PREBUILT)
476
477include $(CLEAR_VARS)
Eric Erfanian8369df02017-05-03 10:27:13 -0700478
479LOCAL_MODULE_CLASS := JAVA_LIBRARIES
480LOCAL_MODULE := dialer-mime4j-core-target
481LOCAL_SDK_VERSION := current
482LOCAL_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)
483LOCAL_UNINSTALLABLE_MODULE := true
484
485include $(BUILD_PREBUILT)
486
487include $(CLEAR_VARS)
488
489LOCAL_MODULE_CLASS := JAVA_LIBRARIES
490LOCAL_MODULE := dialer-mime4j-dom-target
491LOCAL_SDK_VERSION := current
492LOCAL_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)
493LOCAL_UNINSTALLABLE_MODULE := true
494
495include $(BUILD_PREBUILT)
496
Ta-wei Yen6af9c022017-05-25 14:57:51 -0700497include $(CLEAR_VARS)
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700498
499LOCAL_MODULE_CLASS := JAVA_LIBRARIES
500LOCAL_MODULE := dialer-grpc-core-target
501LOCAL_SDK_VERSION := current
502LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-core/1.0.3/grpc-core-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
503LOCAL_UNINSTALLABLE_MODULE := true
504
505include $(BUILD_PREBUILT)
506
507include $(CLEAR_VARS)
508
509LOCAL_MODULE_CLASS := JAVA_LIBRARIES
510LOCAL_MODULE := dialer-grpc-okhttp-target
511LOCAL_SDK_VERSION := current
512LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-okhttp/1.0.3/grpc-okhttp-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
513LOCAL_UNINSTALLABLE_MODULE := true
514
515include $(BUILD_PREBUILT)
516
517include $(CLEAR_VARS)
518
519LOCAL_MODULE_CLASS := JAVA_LIBRARIES
520LOCAL_MODULE := dialer-grpc-protobuf-lite-target
521LOCAL_SDK_VERSION := current
522LOCAL_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)
523LOCAL_UNINSTALLABLE_MODULE := true
524
525include $(BUILD_PREBUILT)
526
527include $(CLEAR_VARS)
528
529LOCAL_MODULE_CLASS := JAVA_LIBRARIES
530LOCAL_MODULE := dialer-grpc-stub-target
531LOCAL_SDK_VERSION := current
532LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-stub/1.0.3/grpc-stub-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
533LOCAL_UNINSTALLABLE_MODULE := true
534
535include $(BUILD_PREBUILT)
536
537include $(CLEAR_VARS)
538
539LOCAL_MODULE_CLASS := JAVA_LIBRARIES
540LOCAL_MODULE := dialer-grpc-all-target
541LOCAL_SDK_VERSION := current
542LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-all/1.0.3/grpc-all-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
543LOCAL_UNINSTALLABLE_MODULE := true
544
545include $(BUILD_PREBUILT)
546
547include $(CLEAR_VARS)
Eric Erfanianea7890c2017-06-19 12:40:59 -0700548
Eric Erfanian842a9772017-06-22 09:39:08 -0700549LOCAL_MODULE_CLASS := JAVA_LIBRARIES
550LOCAL_MODULE := dialer-grpc-context-target
551LOCAL_SDK_VERSION := current
552LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-context/1.0.3/grpc-context-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
553LOCAL_UNINSTALLABLE_MODULE := true
554
555include $(BUILD_PREBUILT)
556
557include $(CLEAR_VARS)