blob: 6bd0eb21bdfc3f11ae073ff7a811be56e155c09a [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 Erfanian9b4d9bc2017-07-25 09:36:19 -070084 $(BASE_DIR)/dialer/contactphoto/res \
Eric Erfanian8369df02017-05-03 10:27:13 -070085 $(BASE_DIR)/dialer/contactsfragment/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080086 $(BASE_DIR)/dialer/dialpadview/res \
Eric Erfanian3bb96412017-06-22 10:19:53 -070087 $(BASE_DIR)/dialer/enrichedcall/simulator/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080088 $(BASE_DIR)/dialer/interactions/res \
Eric Erfanianaf2a1a22017-07-24 11:01:58 -070089 $(BASE_DIR)/dialer/lettertile/res \
Eric Erfanian2f1c7582017-06-19 11:26:01 -070090 $(BASE_DIR)/dialer/main/impl/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070091 $(BASE_DIR)/dialer/notification/res \
92 $(BASE_DIR)/dialer/oem/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080093 $(BASE_DIR)/dialer/phonenumberutil/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070094 $(BASE_DIR)/dialer/postcall/res \
Eric Erfanian3bb96412017-06-22 10:19:53 -070095 $(BASE_DIR)/dialer/searchfragment/common/res \
Eric Erfanian2f1c7582017-06-19 11:26:01 -070096 $(BASE_DIR)/dialer/searchfragment/list/res \
97 $(BASE_DIR)/dialer/searchfragment/nearbyplaces/res \
Eric Erfanian3bb96412017-06-22 10:19:53 -070098 $(BASE_DIR)/dialershared/bubble/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080099 $(BASE_DIR)/dialer/shortcuts/res \
Eric Erfaniand8046e52017-04-06 09:41:50 -0700100 $(BASE_DIR)/dialer/speeddial/res \
Eric Erfanianccca3152017-02-22 16:32:36 -0800101 $(BASE_DIR)/dialer/theme/res \
102 $(BASE_DIR)/dialer/util/res \
103 $(BASE_DIR)/dialer/voicemailstatus/res \
104 $(BASE_DIR)/dialer/widget/res \
105 $(BASE_DIR)/incallui/answer/impl/affordance/res \
106 $(BASE_DIR)/incallui/answer/impl/answermethod/res \
107 $(BASE_DIR)/incallui/answer/impl/hint/res \
108 $(BASE_DIR)/incallui/answer/impl/res \
109 $(BASE_DIR)/incallui/audioroute/res \
110 $(BASE_DIR)/incallui/autoresizetext/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700111 $(BASE_DIR)/incallui/calllocation/impl/res \
Eric Erfanianccca3152017-02-22 16:32:36 -0800112 $(BASE_DIR)/incallui/commontheme/res \
113 $(BASE_DIR)/incallui/contactgrid/res \
wangqi69674662017-06-29 13:14:51 -0700114 $(BASE_DIR)/incallui/disconnectdialog/res \
Eric Erfanianccca3152017-02-22 16:32:36 -0800115 $(BASE_DIR)/incallui/hold/res \
116 $(BASE_DIR)/incallui/incall/impl/res \
117 $(BASE_DIR)/incallui/res \
118 $(BASE_DIR)/incallui/sessiondata/res \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700119 $(BASE_DIR)/incallui/speakerbuttonlogic/res \
Eric Erfanianc857f902017-05-15 14:05:33 -0700120 $(BASE_DIR)/incallui/telecomeventui/res \
Eric Erfanianccca3152017-02-22 16:32:36 -0800121 $(BASE_DIR)/incallui/video/impl/res \
Eric Erfaniand8046e52017-04-06 09:41:50 -0700122 $(BASE_DIR)/incallui/video/protocol/res \
Eric Erfanian4047ed12017-07-24 13:37:47 -0700123 $(BASE_DIR)/voicemail/impl/configui/res \
Eric Erfanian8369df02017-05-03 10:27:13 -0700124 $(BASE_DIR)/voicemail/impl/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700125
Ta-wei Yen90a13e92016-01-11 13:00:53 -0800126
Eric Erfanian9b4d9bc2017-07-25 09:36:19 -0700127
Eric Erfanianccca3152017-02-22 16:32:36 -0800128# Dialer manifest files to merge.
129# find . -type f -name "AndroidManifest.xml" | uniq | sort
130DIALER_MANIFEST_FILES += \
131 $(BASE_DIR)/contacts/common/AndroidManifest.xml \
Eric Erfanianc857f902017-05-15 14:05:33 -0700132 $(BASE_DIR)/dialer/about/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800133 $(BASE_DIR)/dialer/app/AndroidManifest.xml \
134 $(BASE_DIR)/dialer/app/manifests/activities/AndroidManifest.xml \
135 $(BASE_DIR)/dialer/app/voicemail/error/AndroidManifest.xml \
136 $(BASE_DIR)/dialer/backup/AndroidManifest.xml \
137 $(BASE_DIR)/dialer/blocking/AndroidManifest.xml \
138 $(BASE_DIR)/dialer/callcomposer/AndroidManifest.xml \
139 $(BASE_DIR)/dialer/callcomposer/camera/AndroidManifest.xml \
140 $(BASE_DIR)/dialer/callcomposer/camera/camerafocus/AndroidManifest.xml \
141 $(BASE_DIR)/dialer/callcomposer/cameraui/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700142 $(BASE_DIR)/dialer/calldetails/AndroidManifest.xml \
Eric Erfanian8369df02017-05-03 10:27:13 -0700143 $(BASE_DIR)/dialer/calllog/ui/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700144 $(BASE_DIR)/dialer/calllogutils/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800145 $(BASE_DIR)/dialer/common/AndroidManifest.xml \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700146 $(BASE_DIR)/dialer/contactactions/AndroidManifest.xml \
Eric Erfanian9b4d9bc2017-07-25 09:36:19 -0700147 $(BASE_DIR)/dialer/contactphoto/AndroidManifest.xml \
Eric Erfanian8369df02017-05-03 10:27:13 -0700148 $(BASE_DIR)/dialer/contactsfragment/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800149 $(BASE_DIR)/dialer/dialpadview/AndroidManifest.xml \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700150 $(BASE_DIR)/dialer/enrichedcall/simulator/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800151 $(BASE_DIR)/dialer/interactions/AndroidManifest.xml \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700152 $(BASE_DIR)/dialer/main/impl/AndroidManifest.xml \
Eric Erfanianaf2a1a22017-07-24 11:01:58 -0700153 $(BASE_DIR)/dialer/lettertile/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700154 $(BASE_DIR)/dialer/notification/AndroidManifest.xml \
155 $(BASE_DIR)/dialer/oem/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800156 $(BASE_DIR)/dialer/phonenumberutil/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700157 $(BASE_DIR)/dialer/postcall/AndroidManifest.xml \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700158 $(BASE_DIR)/dialer/searchfragment/common/AndroidManifest.xml \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700159 $(BASE_DIR)/dialer/searchfragment/list/AndroidManifest.xml \
160 $(BASE_DIR)/dialer/searchfragment/nearbyplaces/AndroidManifest.xml \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700161 $(BASE_DIR)/dialershared/bubble/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800162 $(BASE_DIR)/dialer/shortcuts/AndroidManifest.xml \
163 $(BASE_DIR)/dialer/simulator/impl/AndroidManifest.xml \
Eric Erfaniand8046e52017-04-06 09:41:50 -0700164 $(BASE_DIR)/dialer/speeddial/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800165 $(BASE_DIR)/dialer/theme/AndroidManifest.xml \
166 $(BASE_DIR)/dialer/util/AndroidManifest.xml \
167 $(BASE_DIR)/dialer/voicemailstatus/AndroidManifest.xml \
168 $(BASE_DIR)/dialer/widget/AndroidManifest.xml \
169 $(BASE_DIR)/incallui/AndroidManifest.xml \
170 $(BASE_DIR)/incallui/answer/impl/affordance/AndroidManifest.xml \
171 $(BASE_DIR)/incallui/answer/impl/AndroidManifest.xml \
172 $(BASE_DIR)/incallui/answer/impl/answermethod/AndroidManifest.xml \
173 $(BASE_DIR)/incallui/answer/impl/hint/AndroidManifest.xml \
174 $(BASE_DIR)/incallui/audioroute/AndroidManifest.xml \
175 $(BASE_DIR)/incallui/autoresizetext/AndroidManifest.xml \
176 $(BASE_DIR)/incallui/commontheme/AndroidManifest.xml \
177 $(BASE_DIR)/incallui/contactgrid/AndroidManifest.xml \
wangqi69674662017-06-29 13:14:51 -0700178 $(BASE_DIR)/incallui/disconnectdialog/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800179 $(BASE_DIR)/incallui/hold/AndroidManifest.xml \
180 $(BASE_DIR)/incallui/incall/impl/AndroidManifest.xml \
181 $(BASE_DIR)/incallui/sessiondata/AndroidManifest.xml \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700182 $(BASE_DIR)/incallui/speakerbuttonlogic/AndroidManifest.xml \
Eric Erfanianc857f902017-05-15 14:05:33 -0700183 $(BASE_DIR)/incallui/telecomeventui/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800184 $(BASE_DIR)/incallui/video/impl/AndroidManifest.xml \
Eric Erfaniand8046e52017-04-06 09:41:50 -0700185 $(BASE_DIR)/incallui/video/protocol/AndroidManifest.xml \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700186 $(BASE_DIR)/voicemail/AndroidManifest.xml \
Eric Erfanian4047ed12017-07-24 13:37:47 -0700187 $(BASE_DIR)/voicemail/impl/configui/AndroidManifest.xml \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700188 $(BASE_DIR)/voicemail/impl/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700189
Chiao Cheng94b10b52012-08-17 16:59:12 -0700190
Eric Erfanianccca3152017-02-22 16:32:36 -0800191# Merge all manifest files.
192LOCAL_FULL_LIBS_MANIFEST_FILES := \
193 $(addprefix $(LOCAL_PATH)/, $(DIALER_MANIFEST_FILES))
194LOCAL_SRC_FILES := $(call all-java-files-under, $(SRC_DIRS))
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700195LOCAL_SRC_FILES := $(filter-out $(EXCLUDE_FILES),$(LOCAL_SRC_FILES))
Eric Erfanian8369df02017-05-03 10:27:13 -0700196LOCAL_SRC_FILES += $(call all-proto-files-under, $(SRC_DIRS))
197LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)
198
Eric Erfanianccca3152017-02-22 16:32:36 -0800199LOCAL_RESOURCE_DIR := \
200 $(addprefix $(LOCAL_PATH)/, $(RES_DIRS)) \
Kirill Grouchnikovdcff0572017-08-01 11:08:07 -0400201 $(support_library_root_dir)/core-ui/res \
Kirill Grouchnikovfa340972017-05-16 01:32:43 +0000202 $(support_library_root_dir)/design/res \
203 $(support_library_root_dir)/transition/res \
204 $(support_library_root_dir)/v7/appcompat/res \
205 $(support_library_root_dir)/v7/cardview/res \
206 $(support_library_root_dir)/v7/recyclerview/res
Eric Erfanianccca3152017-02-22 16:32:36 -0800207
208# We specify each package explicitly to glob resource files.
Chiao Cheng94b10b52012-08-17 16:59:12 -0700209LOCAL_AAPT_FLAGS := \
Eric Erfanianccca3152017-02-22 16:32:36 -0800210 --auto-add-overlay \
Eric Erfanianccca3152017-02-22 16:32:36 -0800211 --extra-packages com.android.contacts.common \
Eric Erfanianc857f902017-05-15 14:05:33 -0700212 --extra-packages com.android.dialer.about \
Eric Erfanianccca3152017-02-22 16:32:36 -0800213 --extra-packages com.android.dialer.app \
214 --extra-packages com.android.dialer.app.voicemail.error \
215 --extra-packages com.android.dialer.blocking \
216 --extra-packages com.android.dialer.callcomposer \
217 --extra-packages com.android.dialer.callcomposer \
218 --extra-packages com.android.dialer.callcomposer.camera \
219 --extra-packages com.android.dialer.callcomposer.camera.camerafocus \
220 --extra-packages com.android.dialer.callcomposer.cameraui \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700221 --extra-packages com.android.dialer.calldetails \
Eric Erfanian8369df02017-05-03 10:27:13 -0700222 --extra-packages com.android.dialer.calllog.ui \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700223 --extra-packages com.android.dialer.calllogutils \
Eric Erfanianccca3152017-02-22 16:32:36 -0800224 --extra-packages com.android.dialer.common \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700225 --extra-packages com.android.dialer.contactactions \
Eric Erfanian9b4d9bc2017-07-25 09:36:19 -0700226 --extra-packages com.android.dialer.contactphoto \
Eric Erfanian8369df02017-05-03 10:27:13 -0700227 --extra-packages com.android.dialer.contactsfragment \
Eric Erfanianccca3152017-02-22 16:32:36 -0800228 --extra-packages com.android.dialer.dialpadview \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700229 --extra-packages com.android.dialer.enrichedcall.simulator \
Eric Erfanianccca3152017-02-22 16:32:36 -0800230 --extra-packages com.android.dialer.interactions \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700231 --extra-packages com.android.dialer.main.impl \
Eric Erfanianaf2a1a22017-07-24 11:01:58 -0700232 --extra-packages com.android.dialer.lettertile \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700233 --extra-packages com.android.dialer.notification \
234 --extra-packages com.android.dialer.oem \
Eric Erfanianccca3152017-02-22 16:32:36 -0800235 --extra-packages com.android.dialer.phonenumberutil \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700236 --extra-packages com.android.dialer.postcall \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700237 --extra-packages com.android.dialer.searchfragment.common \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700238 --extra-packages com.android.dialer.searchfragment.list \
239 --extra-packages com.android.dialer.searchfragment.nearbyplaces \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700240 --extra-packages com.android.dialershared.bubble \
Eric Erfanianccca3152017-02-22 16:32:36 -0800241 --extra-packages com.android.dialer.shortcuts \
Eric Erfaniand8046e52017-04-06 09:41:50 -0700242 --extra-packages com.android.dialer.speeddial \
Eric Erfanianc857f902017-05-15 14:05:33 -0700243 --extra-packages com.android.dialer.theme \
Eric Erfanianccca3152017-02-22 16:32:36 -0800244 --extra-packages com.android.dialer.util \
245 --extra-packages com.android.dialer.voicemailstatus \
246 --extra-packages com.android.dialer.widget \
247 --extra-packages com.android.incallui \
248 --extra-packages com.android.incallui.answer.impl \
249 --extra-packages com.android.incallui.answer.impl.affordance \
250 --extra-packages com.android.incallui.answer.impl.affordance \
251 --extra-packages com.android.incallui.answer.impl.answermethod \
252 --extra-packages com.android.incallui.answer.impl.hint \
253 --extra-packages com.android.incallui.audioroute \
254 --extra-packages com.android.incallui.autoresizetext \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700255 --extra-packages com.android.incallui.calllocation \
256 --extra-packages com.android.incallui.calllocation.impl \
Eric Erfanianccca3152017-02-22 16:32:36 -0800257 --extra-packages com.android.incallui.commontheme \
258 --extra-packages com.android.incallui.contactgrid \
wangqi69674662017-06-29 13:14:51 -0700259 --extra-packages com.android.incallui.disconnectdialog \
Eric Erfanianccca3152017-02-22 16:32:36 -0800260 --extra-packages com.android.incallui.hold \
261 --extra-packages com.android.incallui.incall.impl \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700262 --extra-packages com.android.incallui.maps.impl \
Eric Erfanianccca3152017-02-22 16:32:36 -0800263 --extra-packages com.android.incallui.sessiondata \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700264 --extra-packages com.android.incallui.speakerbuttonlogic \
Eric Erfanianc857f902017-05-15 14:05:33 -0700265 --extra-packages com.android.incallui.telecomeventui \
Eric Erfanianccca3152017-02-22 16:32:36 -0800266 --extra-packages com.android.incallui.video \
267 --extra-packages com.android.incallui.video.impl \
Eric Erfanianccca3152017-02-22 16:32:36 -0800268 --extra-packages com.android.phone.common \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700269 --extra-packages com.android.voicemail \
Eric Erfanian4047ed12017-07-24 13:37:47 -0700270 --extra-packages com.android.voicemail.impl.configui \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700271 --extra-packages com.android.voicemail.impl \
272 --extra-packages com.android.voicemail.impl.fetch \
273 --extra-packages com.android.voicemail.impl.settings \
274 --extra-packages com.android.voicemail.settings \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700275 --extra-packages me.leolin.shortcutbadger \
276
Chiao Cheng94b10b52012-08-17 16:59:12 -0700277
Chiao Cheng94b10b52012-08-17 16:59:12 -0700278LOCAL_STATIC_JAVA_LIBRARIES := \
Eric Erfanianccca3152017-02-22 16:32:36 -0800279 android-common \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700280 android-support-dynamic-animation \
Eric Erfanianccca3152017-02-22 16:32:36 -0800281 com.android.vcard \
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700282 dialer-commons-io-target \
Eric Erfanian90508232017-03-24 09:31:16 -0700283 dialer-dagger2-target \
284 dialer-disklrucache-target \
285 dialer-gifdecoder-target \
286 dialer-glide-target \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700287 dialer-grpc-all-target \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700288 dialer-grpc-context-target \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700289 dialer-grpc-core-target \
290 dialer-grpc-okhttp-target \
291 dialer-grpc-protobuf-lite-target \
292 dialer-grpc-stub-target \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700293 dialer-guava-target \
Eric Erfanian90508232017-03-24 09:31:16 -0700294 dialer-javax-annotation-api-target \
295 dialer-javax-inject-target \
296 dialer-libshortcutbadger-target \
Eric Erfanian8369df02017-05-03 10:27:13 -0700297 dialer-mime4j-core-target \
298 dialer-mime4j-dom-target \
Eric Erfanianccca3152017-02-22 16:32:36 -0800299 jsr305 \
300 libphonenumber \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700301 okhttp \
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700302 volley \
Chiao Cheng94b10b52012-08-17 16:59:12 -0700303
Alan Viveretteb5870be2017-04-26 11:15:10 -0400304LOCAL_STATIC_ANDROID_LIBRARIES := \
305 android-support-design \
306 android-support-transition \
307 android-support-v13 \
308 android-support-v4 \
309 android-support-v7-appcompat \
310 android-support-v7-cardview \
311 android-support-v7-recyclerview \
312
Eric Erfanianccca3152017-02-22 16:32:36 -0800313LOCAL_JAVA_LIBRARIES := \
Eric Erfanian90508232017-03-24 09:31:16 -0700314 dialer-auto-value \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700315 org.apache.http.legacy \
Eric Erfanianccca3152017-02-22 16:32:36 -0800316
317# Libraries needed by the compiler (JACK) to generate code.
318PROCESSOR_LIBRARIES_TARGET := \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700319 dialer-auto-value \
Eric Erfanianccca3152017-02-22 16:32:36 -0800320 dialer-dagger2 \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700321 dialer-dagger2-compiler \
Eric Erfanianccca3152017-02-22 16:32:36 -0800322 dialer-dagger2-producers \
323 dialer-guava \
324 dialer-javax-annotation-api \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700325 dialer-javax-inject \
Eric Erfanianccca3152017-02-22 16:32:36 -0800326
327# Resolve the jar paths.
328PROCESSOR_JARS := $(call java-lib-deps, $(PROCESSOR_LIBRARIES_TARGET))
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700329# Necessary for annotation processors to work correctly.
Eric Erfanianccca3152017-02-22 16:32:36 -0800330LOCAL_ADDITIONAL_DEPENDENCIES += $(PROCESSOR_JARS)
331
332LOCAL_JACK_FLAGS += --processorpath $(call normalize-path-list,$(PROCESSOR_JARS))
Eric Erfanian90508232017-03-24 09:31:16 -0700333LOCAL_JAVACFLAGS += -processorpath $(call normalize-path-list,$(PROCESSOR_JARS))
Chiao Cheng94b10b52012-08-17 16:59:12 -0700334
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700335
336# Begin Bug: 37077388
Eric Erfanian3bb96412017-06-22 10:19:53 -0700337LOCAL_DX_FLAGS := --multi-dex
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700338LOCAL_JACK_FLAGS := --multi-dex native
339
340LOCAL_PROGUARD_ENABLED := disabled
341ifdef LOCAL_JACK_ENABLED
Eric Erfanian90508232017-03-24 09:31:16 -0700342# Proguard includes
343LOCAL_PROGUARD_FLAG_FILES := \
344 java/com/android/dialer/common/proguard.flags \
345 java/com/android/dialer/proguard/proguard_base.flags \
346 java/com/android/dialer/proguard/proguard.flags \
347 java/com/android/dialer/proguard/proguard_release.flags \
348 java/com/android/incallui/answer/impl/proguard.flags
Colin Crossf939e092017-04-05 22:13:40 -0700349LOCAL_PROGUARD_ENABLED := custom
350
Colin Crossf939e092017-04-05 22:13:40 -0700351LOCAL_PROGUARD_ENABLED += optimization
352endif
Chiao Cheng94b10b52012-08-17 16:59:12 -0700353
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700354# End Bug: 37077388
355
Ta-wei Yen6640e552017-04-21 15:33:24 -0700356LOCAL_SDK_VERSION := system_current
Eric Erfanianccca3152017-02-22 16:32:36 -0800357LOCAL_MODULE_TAGS := optional
358LOCAL_PACKAGE_NAME := Dialer
359LOCAL_CERTIFICATE := shared
360LOCAL_PRIVILEGED_MODULE := true
Eric Erfanian8369df02017-05-03 10:27:13 -0700361LOCAL_USE_AAPT2 := true
362
363# b/37483961 - Jack Not Compiling Dagger Class Properly
364LOCAL_JACK_ENABLED := javac_frontend
365
Chiao Cheng94b10b52012-08-17 16:59:12 -0700366include $(BUILD_PACKAGE)
367
Eric Erfanianccca3152017-02-22 16:32:36 -0800368# Cleanup local state
369BASE_DIR :=
370SRC_DIRS :=
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700371EXCLUDE_FILES :=
Eric Erfanianccca3152017-02-22 16:32:36 -0800372RES_DIRS :=
373DIALER_MANIFEST_FILES :=
374PROCESSOR_LIBRARIES_TARGET :=
375PROCESSOR_JARS :=
376
377# Create references to prebuilt libraries.
378include $(CLEAR_VARS)
379
380LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \
Eric Erfanian90508232017-03-24 09:31:16 -0700381 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 -0700382 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 -0700383 dialer-dagger2:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.7/dagger-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) \
384 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 -0700385 dialer-grpc-all:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-all/1.0.3/grpc-all-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \
386 dialer-grpc-core:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-core/1.0.3/grpc-core-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \
387 dialer-grpc-okhttp:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-okhttp/1.0.3/grpc-okhttp-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \
388 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) \
389 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 -0700390 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 -0700391 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) \
392 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 -0800393
394include $(BUILD_MULTI_PREBUILT)
395
Eric Erfanian90508232017-03-24 09:31:16 -0700396# Enumerate target prebuilts to avoid linker warnings like
397# Dialer (java:sdk) should not link to dialer-guava (java:platform)
398include $(CLEAR_VARS)
399
400LOCAL_MODULE_CLASS := JAVA_LIBRARIES
401LOCAL_MODULE := dialer-guava-target
402LOCAL_SDK_VERSION := current
403LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/20.0/guava-20.0$(COMMON_JAVA_PACKAGE_SUFFIX)
404LOCAL_UNINSTALLABLE_MODULE := true
405
406include $(BUILD_PREBUILT)
407
408include $(CLEAR_VARS)
409
410LOCAL_MODULE_CLASS := JAVA_LIBRARIES
411LOCAL_MODULE := dialer-dagger2-target
412LOCAL_SDK_VERSION := current
Eric Erfanian8369df02017-05-03 10:27:13 -0700413LOCAL_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 -0700414LOCAL_UNINSTALLABLE_MODULE := true
415
416include $(BUILD_PREBUILT)
417
418include $(CLEAR_VARS)
419
420LOCAL_MODULE_CLASS := JAVA_LIBRARIES
421LOCAL_MODULE := dialer-disklrucache-target
422LOCAL_SDK_VERSION := current
Lujiang Xuec0f306f2017-05-25 09:10:58 -0700423LOCAL_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 -0700424LOCAL_UNINSTALLABLE_MODULE := true
425
426include $(BUILD_PREBUILT)
427
428include $(CLEAR_VARS)
429
430LOCAL_MODULE_CLASS := JAVA_LIBRARIES
431LOCAL_MODULE := dialer-gifdecoder-target
432LOCAL_SDK_VERSION := current
Lujiang Xuec0f306f2017-05-25 09:10:58 -0700433LOCAL_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 -0700434LOCAL_UNINSTALLABLE_MODULE := true
435
436include $(BUILD_PREBUILT)
437
438include $(CLEAR_VARS)
439
440LOCAL_MODULE_CLASS := JAVA_LIBRARIES
441LOCAL_MODULE := dialer-glide-target
442LOCAL_SDK_VERSION := current
Lujiang Xuec0f306f2017-05-25 09:10:58 -0700443LOCAL_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 -0700444LOCAL_UNINSTALLABLE_MODULE := true
445
446include $(BUILD_PREBUILT)
447
448include $(CLEAR_VARS)
449
450LOCAL_MODULE_CLASS := JAVA_LIBRARIES
451LOCAL_MODULE := dialer-javax-annotation-api-target
452LOCAL_SDK_VERSION := current
453LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2$(COMMON_JAVA_PACKAGE_SUFFIX)
454LOCAL_UNINSTALLABLE_MODULE := true
455
456include $(BUILD_PREBUILT)
457
458include $(CLEAR_VARS)
459
460LOCAL_MODULE_CLASS := JAVA_LIBRARIES
461LOCAL_MODULE := dialer-libshortcutbadger-target
462LOCAL_SDK_VERSION := current
463LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/me/leolin/ShortcutBadger/1.1.13/ShortcutBadger-1.1.13$(COMMON_JAVA_PACKAGE_SUFFIX)
464LOCAL_UNINSTALLABLE_MODULE := true
465
466include $(BUILD_PREBUILT)
467
468include $(CLEAR_VARS)
469
470LOCAL_MODULE_CLASS := JAVA_LIBRARIES
471LOCAL_MODULE := dialer-javax-inject-target
472LOCAL_SDK_VERSION := current
473LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/inject/javax.inject/1/javax.inject-1$(COMMON_JAVA_PACKAGE_SUFFIX)
474LOCAL_UNINSTALLABLE_MODULE := true
475
476include $(BUILD_PREBUILT)
477
Eric Erfanianccca3152017-02-22 16:32:36 -0800478include $(CLEAR_VARS)
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700479
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700480LOCAL_MODULE_CLASS := JAVA_LIBRARIES
481LOCAL_MODULE := dialer-commons-io-target
482LOCAL_SDK_VERSION := current
483LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/commons-io/commons-io/2.4/commons-io-2.4$(COMMON_JAVA_PACKAGE_SUFFIX)
484LOCAL_UNINSTALLABLE_MODULE := true
485
486include $(BUILD_PREBUILT)
487
488include $(CLEAR_VARS)
Eric Erfanian8369df02017-05-03 10:27:13 -0700489
490LOCAL_MODULE_CLASS := JAVA_LIBRARIES
491LOCAL_MODULE := dialer-mime4j-core-target
492LOCAL_SDK_VERSION := current
493LOCAL_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)
494LOCAL_UNINSTALLABLE_MODULE := true
495
496include $(BUILD_PREBUILT)
497
498include $(CLEAR_VARS)
499
500LOCAL_MODULE_CLASS := JAVA_LIBRARIES
501LOCAL_MODULE := dialer-mime4j-dom-target
502LOCAL_SDK_VERSION := current
503LOCAL_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)
504LOCAL_UNINSTALLABLE_MODULE := true
505
506include $(BUILD_PREBUILT)
507
Ta-wei Yen6af9c022017-05-25 14:57:51 -0700508include $(CLEAR_VARS)
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700509
510LOCAL_MODULE_CLASS := JAVA_LIBRARIES
511LOCAL_MODULE := dialer-grpc-core-target
512LOCAL_SDK_VERSION := current
513LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-core/1.0.3/grpc-core-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
514LOCAL_UNINSTALLABLE_MODULE := true
515
516include $(BUILD_PREBUILT)
517
518include $(CLEAR_VARS)
519
520LOCAL_MODULE_CLASS := JAVA_LIBRARIES
521LOCAL_MODULE := dialer-grpc-okhttp-target
522LOCAL_SDK_VERSION := current
523LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-okhttp/1.0.3/grpc-okhttp-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
524LOCAL_UNINSTALLABLE_MODULE := true
525
526include $(BUILD_PREBUILT)
527
528include $(CLEAR_VARS)
529
530LOCAL_MODULE_CLASS := JAVA_LIBRARIES
531LOCAL_MODULE := dialer-grpc-protobuf-lite-target
532LOCAL_SDK_VERSION := current
533LOCAL_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)
534LOCAL_UNINSTALLABLE_MODULE := true
535
536include $(BUILD_PREBUILT)
537
538include $(CLEAR_VARS)
539
540LOCAL_MODULE_CLASS := JAVA_LIBRARIES
541LOCAL_MODULE := dialer-grpc-stub-target
542LOCAL_SDK_VERSION := current
543LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-stub/1.0.3/grpc-stub-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
544LOCAL_UNINSTALLABLE_MODULE := true
545
546include $(BUILD_PREBUILT)
547
548include $(CLEAR_VARS)
549
550LOCAL_MODULE_CLASS := JAVA_LIBRARIES
551LOCAL_MODULE := dialer-grpc-all-target
552LOCAL_SDK_VERSION := current
553LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-all/1.0.3/grpc-all-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
554LOCAL_UNINSTALLABLE_MODULE := true
555
556include $(BUILD_PREBUILT)
557
558include $(CLEAR_VARS)
Eric Erfanian3bb96412017-06-22 10:19:53 -0700559
560LOCAL_MODULE_CLASS := JAVA_LIBRARIES
561LOCAL_MODULE := dialer-grpc-context-target
562LOCAL_SDK_VERSION := current
563LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-context/1.0.3/grpc-context-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
564LOCAL_UNINSTALLABLE_MODULE := true
565
566include $(BUILD_PREBUILT)
567
wangqi69674662017-06-29 13:14:51 -0700568include $(CLEAR_VARS)