blob: cf4adc7522c8b50a9966875a8fe20458dfef77e2 [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 Erfanian3bb96412017-06-22 10:19:53 -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 Erfanian2f1c7582017-06-19 11:26:01 -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/" \
12# --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 Erfanian3bb96412017-06-22 10:19:53 -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 Erfanian2f1c7582017-06-19 11:26:01 -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 Erfanian2f1c7582017-06-19 11:26:01 -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 Erfanian3bb96412017-06-22 10:19:53 -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 Erfanian2f1c7582017-06-19 11:26:01 -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 Erfanian3bb96412017-06-22 10:19:53 -070086 $(BASE_DIR)/dialer/enrichedcall/simulator/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080087 $(BASE_DIR)/dialer/interactions/res \
Eric Erfanianaf2a1a22017-07-24 11:01:58 -070088 $(BASE_DIR)/dialer/lettertile/res \
Eric Erfanian2f1c7582017-06-19 11:26:01 -070089 $(BASE_DIR)/dialer/main/impl/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070090 $(BASE_DIR)/dialer/notification/res \
91 $(BASE_DIR)/dialer/oem/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080092 $(BASE_DIR)/dialer/phonenumberutil/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070093 $(BASE_DIR)/dialer/postcall/res \
Eric Erfanian3bb96412017-06-22 10:19:53 -070094 $(BASE_DIR)/dialer/searchfragment/common/res \
Eric Erfanian2f1c7582017-06-19 11:26:01 -070095 $(BASE_DIR)/dialer/searchfragment/list/res \
96 $(BASE_DIR)/dialer/searchfragment/nearbyplaces/res \
Eric Erfanian3bb96412017-06-22 10:19:53 -070097 $(BASE_DIR)/dialershared/bubble/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080098 $(BASE_DIR)/dialer/shortcuts/res \
Eric Erfaniand8046e52017-04-06 09:41:50 -070099 $(BASE_DIR)/dialer/speeddial/res \
Eric Erfanianccca3152017-02-22 16:32:36 -0800100 $(BASE_DIR)/dialer/theme/res \
101 $(BASE_DIR)/dialer/util/res \
102 $(BASE_DIR)/dialer/voicemailstatus/res \
103 $(BASE_DIR)/dialer/widget/res \
104 $(BASE_DIR)/incallui/answer/impl/affordance/res \
105 $(BASE_DIR)/incallui/answer/impl/answermethod/res \
106 $(BASE_DIR)/incallui/answer/impl/hint/res \
107 $(BASE_DIR)/incallui/answer/impl/res \
108 $(BASE_DIR)/incallui/audioroute/res \
109 $(BASE_DIR)/incallui/autoresizetext/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700110 $(BASE_DIR)/incallui/calllocation/impl/res \
Eric Erfanianccca3152017-02-22 16:32:36 -0800111 $(BASE_DIR)/incallui/commontheme/res \
112 $(BASE_DIR)/incallui/contactgrid/res \
wangqi69674662017-06-29 13:14:51 -0700113 $(BASE_DIR)/incallui/disconnectdialog/res \
Eric Erfanianccca3152017-02-22 16:32:36 -0800114 $(BASE_DIR)/incallui/hold/res \
115 $(BASE_DIR)/incallui/incall/impl/res \
116 $(BASE_DIR)/incallui/res \
117 $(BASE_DIR)/incallui/sessiondata/res \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700118 $(BASE_DIR)/incallui/speakerbuttonlogic/res \
Eric Erfanianc857f902017-05-15 14:05:33 -0700119 $(BASE_DIR)/incallui/telecomeventui/res \
Eric Erfanianccca3152017-02-22 16:32:36 -0800120 $(BASE_DIR)/incallui/video/impl/res \
Eric Erfaniand8046e52017-04-06 09:41:50 -0700121 $(BASE_DIR)/incallui/video/protocol/res \
Eric Erfanian4047ed12017-07-24 13:37:47 -0700122 $(BASE_DIR)/voicemail/impl/configui/res \
Eric Erfanian8369df02017-05-03 10:27:13 -0700123 $(BASE_DIR)/voicemail/impl/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700124
Ta-wei Yen90a13e92016-01-11 13:00:53 -0800125
Eric Erfanianccca3152017-02-22 16:32:36 -0800126# Dialer manifest files to merge.
127# find . -type f -name "AndroidManifest.xml" | uniq | sort
128DIALER_MANIFEST_FILES += \
129 $(BASE_DIR)/contacts/common/AndroidManifest.xml \
Eric Erfanianc857f902017-05-15 14:05:33 -0700130 $(BASE_DIR)/dialer/about/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800131 $(BASE_DIR)/dialer/app/AndroidManifest.xml \
132 $(BASE_DIR)/dialer/app/manifests/activities/AndroidManifest.xml \
133 $(BASE_DIR)/dialer/app/voicemail/error/AndroidManifest.xml \
134 $(BASE_DIR)/dialer/backup/AndroidManifest.xml \
135 $(BASE_DIR)/dialer/blocking/AndroidManifest.xml \
136 $(BASE_DIR)/dialer/callcomposer/AndroidManifest.xml \
137 $(BASE_DIR)/dialer/callcomposer/camera/AndroidManifest.xml \
138 $(BASE_DIR)/dialer/callcomposer/camera/camerafocus/AndroidManifest.xml \
139 $(BASE_DIR)/dialer/callcomposer/cameraui/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700140 $(BASE_DIR)/dialer/calldetails/AndroidManifest.xml \
Eric Erfanian8369df02017-05-03 10:27:13 -0700141 $(BASE_DIR)/dialer/calllog/ui/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700142 $(BASE_DIR)/dialer/calllogutils/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800143 $(BASE_DIR)/dialer/common/AndroidManifest.xml \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700144 $(BASE_DIR)/dialer/contactactions/AndroidManifest.xml \
Eric Erfanian8369df02017-05-03 10:27:13 -0700145 $(BASE_DIR)/dialer/contactsfragment/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800146 $(BASE_DIR)/dialer/dialpadview/AndroidManifest.xml \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700147 $(BASE_DIR)/dialer/enrichedcall/simulator/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800148 $(BASE_DIR)/dialer/interactions/AndroidManifest.xml \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700149 $(BASE_DIR)/dialer/main/impl/AndroidManifest.xml \
Eric Erfanianaf2a1a22017-07-24 11:01:58 -0700150 $(BASE_DIR)/dialer/lettertile/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700151 $(BASE_DIR)/dialer/notification/AndroidManifest.xml \
152 $(BASE_DIR)/dialer/oem/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800153 $(BASE_DIR)/dialer/phonenumberutil/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700154 $(BASE_DIR)/dialer/postcall/AndroidManifest.xml \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700155 $(BASE_DIR)/dialer/searchfragment/common/AndroidManifest.xml \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700156 $(BASE_DIR)/dialer/searchfragment/list/AndroidManifest.xml \
157 $(BASE_DIR)/dialer/searchfragment/nearbyplaces/AndroidManifest.xml \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700158 $(BASE_DIR)/dialershared/bubble/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800159 $(BASE_DIR)/dialer/shortcuts/AndroidManifest.xml \
160 $(BASE_DIR)/dialer/simulator/impl/AndroidManifest.xml \
Eric Erfaniand8046e52017-04-06 09:41:50 -0700161 $(BASE_DIR)/dialer/speeddial/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800162 $(BASE_DIR)/dialer/theme/AndroidManifest.xml \
163 $(BASE_DIR)/dialer/util/AndroidManifest.xml \
164 $(BASE_DIR)/dialer/voicemailstatus/AndroidManifest.xml \
165 $(BASE_DIR)/dialer/widget/AndroidManifest.xml \
166 $(BASE_DIR)/incallui/AndroidManifest.xml \
167 $(BASE_DIR)/incallui/answer/impl/affordance/AndroidManifest.xml \
168 $(BASE_DIR)/incallui/answer/impl/AndroidManifest.xml \
169 $(BASE_DIR)/incallui/answer/impl/answermethod/AndroidManifest.xml \
170 $(BASE_DIR)/incallui/answer/impl/hint/AndroidManifest.xml \
171 $(BASE_DIR)/incallui/audioroute/AndroidManifest.xml \
172 $(BASE_DIR)/incallui/autoresizetext/AndroidManifest.xml \
173 $(BASE_DIR)/incallui/commontheme/AndroidManifest.xml \
174 $(BASE_DIR)/incallui/contactgrid/AndroidManifest.xml \
wangqi69674662017-06-29 13:14:51 -0700175 $(BASE_DIR)/incallui/disconnectdialog/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800176 $(BASE_DIR)/incallui/hold/AndroidManifest.xml \
177 $(BASE_DIR)/incallui/incall/impl/AndroidManifest.xml \
178 $(BASE_DIR)/incallui/sessiondata/AndroidManifest.xml \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700179 $(BASE_DIR)/incallui/speakerbuttonlogic/AndroidManifest.xml \
Eric Erfanianc857f902017-05-15 14:05:33 -0700180 $(BASE_DIR)/incallui/telecomeventui/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800181 $(BASE_DIR)/incallui/video/impl/AndroidManifest.xml \
Eric Erfaniand8046e52017-04-06 09:41:50 -0700182 $(BASE_DIR)/incallui/video/protocol/AndroidManifest.xml \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700183 $(BASE_DIR)/voicemail/AndroidManifest.xml \
Eric Erfanian4047ed12017-07-24 13:37:47 -0700184 $(BASE_DIR)/voicemail/impl/configui/AndroidManifest.xml \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700185 $(BASE_DIR)/voicemail/impl/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700186
Chiao Cheng94b10b52012-08-17 16:59:12 -0700187
Eric Erfanianccca3152017-02-22 16:32:36 -0800188# Merge all manifest files.
189LOCAL_FULL_LIBS_MANIFEST_FILES := \
190 $(addprefix $(LOCAL_PATH)/, $(DIALER_MANIFEST_FILES))
191LOCAL_SRC_FILES := $(call all-java-files-under, $(SRC_DIRS))
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700192LOCAL_SRC_FILES := $(filter-out $(EXCLUDE_FILES),$(LOCAL_SRC_FILES))
Eric Erfanian8369df02017-05-03 10:27:13 -0700193LOCAL_SRC_FILES += $(call all-proto-files-under, $(SRC_DIRS))
194LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)
195
Eric Erfanianccca3152017-02-22 16:32:36 -0800196LOCAL_RESOURCE_DIR := \
197 $(addprefix $(LOCAL_PATH)/, $(RES_DIRS)) \
Kirill Grouchnikovfa340972017-05-16 01:32:43 +0000198 $(support_library_root_dir)/design/res \
199 $(support_library_root_dir)/transition/res \
200 $(support_library_root_dir)/v7/appcompat/res \
201 $(support_library_root_dir)/v7/cardview/res \
202 $(support_library_root_dir)/v7/recyclerview/res
Eric Erfanianccca3152017-02-22 16:32:36 -0800203
204# We specify each package explicitly to glob resource files.
Chiao Cheng94b10b52012-08-17 16:59:12 -0700205LOCAL_AAPT_FLAGS := \
Eric Erfanianccca3152017-02-22 16:32:36 -0800206 --auto-add-overlay \
Eric Erfanianccca3152017-02-22 16:32:36 -0800207 --extra-packages com.android.contacts.common \
Eric Erfanianc857f902017-05-15 14:05:33 -0700208 --extra-packages com.android.dialer.about \
Eric Erfanianccca3152017-02-22 16:32:36 -0800209 --extra-packages com.android.dialer.app \
210 --extra-packages com.android.dialer.app.voicemail.error \
211 --extra-packages com.android.dialer.blocking \
212 --extra-packages com.android.dialer.callcomposer \
213 --extra-packages com.android.dialer.callcomposer \
214 --extra-packages com.android.dialer.callcomposer.camera \
215 --extra-packages com.android.dialer.callcomposer.camera.camerafocus \
216 --extra-packages com.android.dialer.callcomposer.cameraui \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700217 --extra-packages com.android.dialer.calldetails \
Eric Erfanian8369df02017-05-03 10:27:13 -0700218 --extra-packages com.android.dialer.calllog.ui \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700219 --extra-packages com.android.dialer.calllogutils \
Eric Erfanianccca3152017-02-22 16:32:36 -0800220 --extra-packages com.android.dialer.common \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700221 --extra-packages com.android.dialer.contactactions \
Eric Erfanian8369df02017-05-03 10:27:13 -0700222 --extra-packages com.android.dialer.contactsfragment \
Eric Erfanianccca3152017-02-22 16:32:36 -0800223 --extra-packages com.android.dialer.dialpadview \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700224 --extra-packages com.android.dialer.enrichedcall.simulator \
Eric Erfanianccca3152017-02-22 16:32:36 -0800225 --extra-packages com.android.dialer.interactions \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700226 --extra-packages com.android.dialer.main.impl \
Eric Erfanianaf2a1a22017-07-24 11:01:58 -0700227 --extra-packages com.android.dialer.lettertile \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700228 --extra-packages com.android.dialer.notification \
229 --extra-packages com.android.dialer.oem \
Eric Erfanianccca3152017-02-22 16:32:36 -0800230 --extra-packages com.android.dialer.phonenumberutil \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700231 --extra-packages com.android.dialer.postcall \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700232 --extra-packages com.android.dialer.searchfragment.common \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700233 --extra-packages com.android.dialer.searchfragment.list \
234 --extra-packages com.android.dialer.searchfragment.nearbyplaces \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700235 --extra-packages com.android.dialershared.bubble \
Eric Erfanianccca3152017-02-22 16:32:36 -0800236 --extra-packages com.android.dialer.shortcuts \
Eric Erfaniand8046e52017-04-06 09:41:50 -0700237 --extra-packages com.android.dialer.speeddial \
Eric Erfanianc857f902017-05-15 14:05:33 -0700238 --extra-packages com.android.dialer.theme \
Eric Erfanianccca3152017-02-22 16:32:36 -0800239 --extra-packages com.android.dialer.util \
240 --extra-packages com.android.dialer.voicemailstatus \
241 --extra-packages com.android.dialer.widget \
242 --extra-packages com.android.incallui \
243 --extra-packages com.android.incallui.answer.impl \
244 --extra-packages com.android.incallui.answer.impl.affordance \
245 --extra-packages com.android.incallui.answer.impl.affordance \
246 --extra-packages com.android.incallui.answer.impl.answermethod \
247 --extra-packages com.android.incallui.answer.impl.hint \
248 --extra-packages com.android.incallui.audioroute \
249 --extra-packages com.android.incallui.autoresizetext \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700250 --extra-packages com.android.incallui.calllocation \
251 --extra-packages com.android.incallui.calllocation.impl \
Eric Erfanianccca3152017-02-22 16:32:36 -0800252 --extra-packages com.android.incallui.commontheme \
253 --extra-packages com.android.incallui.contactgrid \
wangqi69674662017-06-29 13:14:51 -0700254 --extra-packages com.android.incallui.disconnectdialog \
Eric Erfanianccca3152017-02-22 16:32:36 -0800255 --extra-packages com.android.incallui.hold \
256 --extra-packages com.android.incallui.incall.impl \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700257 --extra-packages com.android.incallui.maps.impl \
Eric Erfanianccca3152017-02-22 16:32:36 -0800258 --extra-packages com.android.incallui.sessiondata \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700259 --extra-packages com.android.incallui.speakerbuttonlogic \
Eric Erfanianc857f902017-05-15 14:05:33 -0700260 --extra-packages com.android.incallui.telecomeventui \
Eric Erfanianccca3152017-02-22 16:32:36 -0800261 --extra-packages com.android.incallui.video \
262 --extra-packages com.android.incallui.video.impl \
Eric Erfanianccca3152017-02-22 16:32:36 -0800263 --extra-packages com.android.phone.common \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700264 --extra-packages com.android.voicemail \
Eric Erfanian4047ed12017-07-24 13:37:47 -0700265 --extra-packages com.android.voicemail.impl.configui \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700266 --extra-packages com.android.voicemail.impl \
267 --extra-packages com.android.voicemail.impl.fetch \
268 --extra-packages com.android.voicemail.impl.settings \
269 --extra-packages com.android.voicemail.settings \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700270 --extra-packages me.leolin.shortcutbadger \
271
Chiao Cheng94b10b52012-08-17 16:59:12 -0700272
Chiao Cheng94b10b52012-08-17 16:59:12 -0700273LOCAL_STATIC_JAVA_LIBRARIES := \
Eric Erfanianccca3152017-02-22 16:32:36 -0800274 android-common \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700275 android-support-dynamic-animation \
Eric Erfanianccca3152017-02-22 16:32:36 -0800276 com.android.vcard \
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700277 dialer-commons-io-target \
Eric Erfanian90508232017-03-24 09:31:16 -0700278 dialer-dagger2-target \
279 dialer-disklrucache-target \
280 dialer-gifdecoder-target \
281 dialer-glide-target \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700282 dialer-grpc-all-target \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700283 dialer-grpc-context-target \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700284 dialer-grpc-core-target \
285 dialer-grpc-okhttp-target \
286 dialer-grpc-protobuf-lite-target \
287 dialer-grpc-stub-target \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700288 dialer-guava-target \
Eric Erfanian90508232017-03-24 09:31:16 -0700289 dialer-javax-annotation-api-target \
290 dialer-javax-inject-target \
291 dialer-libshortcutbadger-target \
Eric Erfanian8369df02017-05-03 10:27:13 -0700292 dialer-mime4j-core-target \
293 dialer-mime4j-dom-target \
Eric Erfanianccca3152017-02-22 16:32:36 -0800294 jsr305 \
295 libphonenumber \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700296 okhttp \
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700297 volley \
Chiao Cheng94b10b52012-08-17 16:59:12 -0700298
Alan Viveretteb5870be2017-04-26 11:15:10 -0400299LOCAL_STATIC_ANDROID_LIBRARIES := \
300 android-support-design \
301 android-support-transition \
302 android-support-v13 \
303 android-support-v4 \
304 android-support-v7-appcompat \
305 android-support-v7-cardview \
306 android-support-v7-recyclerview \
307
Eric Erfanianccca3152017-02-22 16:32:36 -0800308LOCAL_JAVA_LIBRARIES := \
Eric Erfanian90508232017-03-24 09:31:16 -0700309 dialer-auto-value \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700310 org.apache.http.legacy \
Eric Erfanianccca3152017-02-22 16:32:36 -0800311
312# Libraries needed by the compiler (JACK) to generate code.
313PROCESSOR_LIBRARIES_TARGET := \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700314 dialer-auto-value \
Eric Erfanianccca3152017-02-22 16:32:36 -0800315 dialer-dagger2 \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700316 dialer-dagger2-compiler \
Eric Erfanianccca3152017-02-22 16:32:36 -0800317 dialer-dagger2-producers \
318 dialer-guava \
319 dialer-javax-annotation-api \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700320 dialer-javax-inject \
Eric Erfanianccca3152017-02-22 16:32:36 -0800321
322# Resolve the jar paths.
323PROCESSOR_JARS := $(call java-lib-deps, $(PROCESSOR_LIBRARIES_TARGET))
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700324# Necessary for annotation processors to work correctly.
Eric Erfanianccca3152017-02-22 16:32:36 -0800325LOCAL_ADDITIONAL_DEPENDENCIES += $(PROCESSOR_JARS)
326
327LOCAL_JACK_FLAGS += --processorpath $(call normalize-path-list,$(PROCESSOR_JARS))
Eric Erfanian90508232017-03-24 09:31:16 -0700328LOCAL_JAVACFLAGS += -processorpath $(call normalize-path-list,$(PROCESSOR_JARS))
Chiao Cheng94b10b52012-08-17 16:59:12 -0700329
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700330
331# Begin Bug: 37077388
Eric Erfanian3bb96412017-06-22 10:19:53 -0700332LOCAL_DX_FLAGS := --multi-dex
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700333LOCAL_JACK_FLAGS := --multi-dex native
334
335LOCAL_PROGUARD_ENABLED := disabled
336ifdef LOCAL_JACK_ENABLED
Eric Erfanian90508232017-03-24 09:31:16 -0700337# Proguard includes
338LOCAL_PROGUARD_FLAG_FILES := \
339 java/com/android/dialer/common/proguard.flags \
340 java/com/android/dialer/proguard/proguard_base.flags \
341 java/com/android/dialer/proguard/proguard.flags \
342 java/com/android/dialer/proguard/proguard_release.flags \
343 java/com/android/incallui/answer/impl/proguard.flags
Colin Crossf939e092017-04-05 22:13:40 -0700344LOCAL_PROGUARD_ENABLED := custom
345
Colin Crossf939e092017-04-05 22:13:40 -0700346LOCAL_PROGUARD_ENABLED += optimization
347endif
Chiao Cheng94b10b52012-08-17 16:59:12 -0700348
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700349# End Bug: 37077388
350
Ta-wei Yen6640e552017-04-21 15:33:24 -0700351LOCAL_SDK_VERSION := system_current
Eric Erfanianccca3152017-02-22 16:32:36 -0800352LOCAL_MODULE_TAGS := optional
353LOCAL_PACKAGE_NAME := Dialer
354LOCAL_CERTIFICATE := shared
355LOCAL_PRIVILEGED_MODULE := true
Eric Erfanian8369df02017-05-03 10:27:13 -0700356LOCAL_USE_AAPT2 := true
357
358# b/37483961 - Jack Not Compiling Dagger Class Properly
359LOCAL_JACK_ENABLED := javac_frontend
360
Chiao Cheng94b10b52012-08-17 16:59:12 -0700361include $(BUILD_PACKAGE)
362
Eric Erfanianccca3152017-02-22 16:32:36 -0800363# Cleanup local state
364BASE_DIR :=
365SRC_DIRS :=
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700366EXCLUDE_FILES :=
Eric Erfanianccca3152017-02-22 16:32:36 -0800367RES_DIRS :=
368DIALER_MANIFEST_FILES :=
369PROCESSOR_LIBRARIES_TARGET :=
370PROCESSOR_JARS :=
371
372# Create references to prebuilt libraries.
373include $(CLEAR_VARS)
374
375LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \
Eric Erfanian90508232017-03-24 09:31:16 -0700376 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 Erfanian3bb96412017-06-22 10:19:53 -0700377 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 -0700378 dialer-dagger2:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.7/dagger-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) \
379 dialer-dagger2-producers:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger-producers/2.7/dagger-producers-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700380 dialer-grpc-all:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-all/1.0.3/grpc-all-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \
381 dialer-grpc-core:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-core/1.0.3/grpc-core-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \
382 dialer-grpc-okhttp:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-okhttp/1.0.3/grpc-okhttp-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \
383 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) \
384 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 Erfanian3bb96412017-06-22 10:19:53 -0700385 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 -0700386 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) \
387 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 -0800388
389include $(BUILD_MULTI_PREBUILT)
390
Eric Erfanian90508232017-03-24 09:31:16 -0700391# Enumerate target prebuilts to avoid linker warnings like
392# Dialer (java:sdk) should not link to dialer-guava (java:platform)
393include $(CLEAR_VARS)
394
395LOCAL_MODULE_CLASS := JAVA_LIBRARIES
396LOCAL_MODULE := dialer-guava-target
397LOCAL_SDK_VERSION := current
398LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/20.0/guava-20.0$(COMMON_JAVA_PACKAGE_SUFFIX)
399LOCAL_UNINSTALLABLE_MODULE := true
400
401include $(BUILD_PREBUILT)
402
403include $(CLEAR_VARS)
404
405LOCAL_MODULE_CLASS := JAVA_LIBRARIES
406LOCAL_MODULE := dialer-dagger2-target
407LOCAL_SDK_VERSION := current
Eric Erfanian8369df02017-05-03 10:27:13 -0700408LOCAL_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 -0700409LOCAL_UNINSTALLABLE_MODULE := true
410
411include $(BUILD_PREBUILT)
412
413include $(CLEAR_VARS)
414
415LOCAL_MODULE_CLASS := JAVA_LIBRARIES
416LOCAL_MODULE := dialer-disklrucache-target
417LOCAL_SDK_VERSION := current
Lujiang Xuec0f306f2017-05-25 09:10:58 -0700418LOCAL_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 -0700419LOCAL_UNINSTALLABLE_MODULE := true
420
421include $(BUILD_PREBUILT)
422
423include $(CLEAR_VARS)
424
425LOCAL_MODULE_CLASS := JAVA_LIBRARIES
426LOCAL_MODULE := dialer-gifdecoder-target
427LOCAL_SDK_VERSION := current
Lujiang Xuec0f306f2017-05-25 09:10:58 -0700428LOCAL_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 -0700429LOCAL_UNINSTALLABLE_MODULE := true
430
431include $(BUILD_PREBUILT)
432
433include $(CLEAR_VARS)
434
435LOCAL_MODULE_CLASS := JAVA_LIBRARIES
436LOCAL_MODULE := dialer-glide-target
437LOCAL_SDK_VERSION := current
Lujiang Xuec0f306f2017-05-25 09:10:58 -0700438LOCAL_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 -0700439LOCAL_UNINSTALLABLE_MODULE := true
440
441include $(BUILD_PREBUILT)
442
443include $(CLEAR_VARS)
444
445LOCAL_MODULE_CLASS := JAVA_LIBRARIES
446LOCAL_MODULE := dialer-javax-annotation-api-target
447LOCAL_SDK_VERSION := current
448LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2$(COMMON_JAVA_PACKAGE_SUFFIX)
449LOCAL_UNINSTALLABLE_MODULE := true
450
451include $(BUILD_PREBUILT)
452
453include $(CLEAR_VARS)
454
455LOCAL_MODULE_CLASS := JAVA_LIBRARIES
456LOCAL_MODULE := dialer-libshortcutbadger-target
457LOCAL_SDK_VERSION := current
458LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/me/leolin/ShortcutBadger/1.1.13/ShortcutBadger-1.1.13$(COMMON_JAVA_PACKAGE_SUFFIX)
459LOCAL_UNINSTALLABLE_MODULE := true
460
461include $(BUILD_PREBUILT)
462
463include $(CLEAR_VARS)
464
465LOCAL_MODULE_CLASS := JAVA_LIBRARIES
466LOCAL_MODULE := dialer-javax-inject-target
467LOCAL_SDK_VERSION := current
468LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/inject/javax.inject/1/javax.inject-1$(COMMON_JAVA_PACKAGE_SUFFIX)
469LOCAL_UNINSTALLABLE_MODULE := true
470
471include $(BUILD_PREBUILT)
472
Eric Erfanianccca3152017-02-22 16:32:36 -0800473include $(CLEAR_VARS)
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700474
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700475LOCAL_MODULE_CLASS := JAVA_LIBRARIES
476LOCAL_MODULE := dialer-commons-io-target
477LOCAL_SDK_VERSION := current
478LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/commons-io/commons-io/2.4/commons-io-2.4$(COMMON_JAVA_PACKAGE_SUFFIX)
479LOCAL_UNINSTALLABLE_MODULE := true
480
481include $(BUILD_PREBUILT)
482
483include $(CLEAR_VARS)
Eric Erfanian8369df02017-05-03 10:27:13 -0700484
485LOCAL_MODULE_CLASS := JAVA_LIBRARIES
486LOCAL_MODULE := dialer-mime4j-core-target
487LOCAL_SDK_VERSION := current
488LOCAL_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)
489LOCAL_UNINSTALLABLE_MODULE := true
490
491include $(BUILD_PREBUILT)
492
493include $(CLEAR_VARS)
494
495LOCAL_MODULE_CLASS := JAVA_LIBRARIES
496LOCAL_MODULE := dialer-mime4j-dom-target
497LOCAL_SDK_VERSION := current
498LOCAL_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)
499LOCAL_UNINSTALLABLE_MODULE := true
500
501include $(BUILD_PREBUILT)
502
Ta-wei Yen6af9c022017-05-25 14:57:51 -0700503include $(CLEAR_VARS)
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700504
505LOCAL_MODULE_CLASS := JAVA_LIBRARIES
506LOCAL_MODULE := dialer-grpc-core-target
507LOCAL_SDK_VERSION := current
508LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-core/1.0.3/grpc-core-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
509LOCAL_UNINSTALLABLE_MODULE := true
510
511include $(BUILD_PREBUILT)
512
513include $(CLEAR_VARS)
514
515LOCAL_MODULE_CLASS := JAVA_LIBRARIES
516LOCAL_MODULE := dialer-grpc-okhttp-target
517LOCAL_SDK_VERSION := current
518LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-okhttp/1.0.3/grpc-okhttp-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
519LOCAL_UNINSTALLABLE_MODULE := true
520
521include $(BUILD_PREBUILT)
522
523include $(CLEAR_VARS)
524
525LOCAL_MODULE_CLASS := JAVA_LIBRARIES
526LOCAL_MODULE := dialer-grpc-protobuf-lite-target
527LOCAL_SDK_VERSION := current
528LOCAL_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)
529LOCAL_UNINSTALLABLE_MODULE := true
530
531include $(BUILD_PREBUILT)
532
533include $(CLEAR_VARS)
534
535LOCAL_MODULE_CLASS := JAVA_LIBRARIES
536LOCAL_MODULE := dialer-grpc-stub-target
537LOCAL_SDK_VERSION := current
538LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-stub/1.0.3/grpc-stub-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
539LOCAL_UNINSTALLABLE_MODULE := true
540
541include $(BUILD_PREBUILT)
542
543include $(CLEAR_VARS)
544
545LOCAL_MODULE_CLASS := JAVA_LIBRARIES
546LOCAL_MODULE := dialer-grpc-all-target
547LOCAL_SDK_VERSION := current
548LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-all/1.0.3/grpc-all-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
549LOCAL_UNINSTALLABLE_MODULE := true
550
551include $(BUILD_PREBUILT)
552
553include $(CLEAR_VARS)
Eric Erfanian3bb96412017-06-22 10:19:53 -0700554
555LOCAL_MODULE_CLASS := JAVA_LIBRARIES
556LOCAL_MODULE := dialer-grpc-context-target
557LOCAL_SDK_VERSION := current
558LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-context/1.0.3/grpc-context-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
559LOCAL_UNINSTALLABLE_MODULE := true
560
561include $(BUILD_PREBUILT)
562
wangqi69674662017-06-29 13:14:51 -0700563include $(CLEAR_VARS)