blob: 15bf8bcaef1a891a2e2e7156a016ad7fd47ef19c [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 Erfanian2f1c7582017-06-19 11:26:01 -07007# * b/62417801 removed translation string variant:
8# $ find java/com/android/incallui/res/*mcc262*/strings.xml | xargs rm
9# * 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"
13# * b/62787062 / b/37077388 temporarily disable proguard with javac
Chiao Cheng94b10b52012-08-17 16:59:12 -070014LOCAL_PATH:= $(call my-dir)
15include $(CLEAR_VARS)
16
Kirill Grouchnikovfa340972017-05-16 01:32:43 +000017ifeq ($(TARGET_BUILD_APPS),)
18support_library_root_dir := frameworks/support
19else
20support_library_root_dir := prebuilts/sdk/current/support
21endif
22
Eric Erfanianccca3152017-02-22 16:32:36 -080023# The base directory for Dialer sources.
24BASE_DIR := java/com/android
Jay Shrauner0f68a712014-07-16 16:13:57 -070025
Eric Erfanianccca3152017-02-22 16:32:36 -080026# Primary dialer module sources.
27SRC_DIRS := \
28 $(BASE_DIR)/contacts/common \
29 $(BASE_DIR)/dialer \
Eric 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 Erfanian2d6bc362017-06-19 17:28:33 -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 Erfanian2d6bc362017-06-19 17:28:33 -070086 $(BASE_DIR)/dialer/enrichedcall/simulator/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080087 $(BASE_DIR)/dialer/interactions/res \
Eric Erfanian2f1c7582017-06-19 11:26:01 -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 Erfanian2d6bc362017-06-19 17:28:33 -070093 $(BASE_DIR)/dialer/searchfragment/common/res \
Eric Erfanian2f1c7582017-06-19 11:26:01 -070094 $(BASE_DIR)/dialer/searchfragment/list/res \
95 $(BASE_DIR)/dialer/searchfragment/nearbyplaces/res \
Eric Erfanian2d6bc362017-06-19 17:28:33 -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 Erfanian2f1c7582017-06-19 11:26:01 -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 Erfanian2f1c7582017-06-19 11:26:01 -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 Erfanian2d6bc362017-06-19 17:28:33 -0700145 $(BASE_DIR)/dialer/enrichedcall/simulator/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800146 $(BASE_DIR)/dialer/interactions/AndroidManifest.xml \
Eric Erfanian2f1c7582017-06-19 11:26:01 -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 Erfanian2d6bc362017-06-19 17:28:33 -0700152 $(BASE_DIR)/dialer/searchfragment/common/AndroidManifest.xml \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700153 $(BASE_DIR)/dialer/searchfragment/list/AndroidManifest.xml \
154 $(BASE_DIR)/dialer/searchfragment/nearbyplaces/AndroidManifest.xml \
Eric Erfanian2d6bc362017-06-19 17:28:33 -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 Erfanian2f1c7582017-06-19 11:26:01 -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 Erfanian2f1c7582017-06-19 11:26:01 -0700180 $(BASE_DIR)/voicemail/AndroidManifest.xml \
Eric Erfanian2d6bc362017-06-19 17:28:33 -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 Erfanian2f1c7582017-06-19 11:26:01 -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 Erfanian2d6bc362017-06-19 17:28:33 -0700220 --extra-packages com.android.dialer.enrichedcall.simulator \
Eric Erfanianccca3152017-02-22 16:32:36 -0800221 --extra-packages com.android.dialer.interactions \
Eric Erfanian2f1c7582017-06-19 11:26:01 -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 Erfanian2d6bc362017-06-19 17:28:33 -0700227 --extra-packages com.android.dialer.searchfragment.common \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700228 --extra-packages com.android.dialer.searchfragment.list \
229 --extra-packages com.android.dialer.searchfragment.nearbyplaces \
Eric Erfanian2d6bc362017-06-19 17:28:33 -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 Erfanian2f1c7582017-06-19 11:26:01 -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 Erfanian2d6bc362017-06-19 17:28:33 -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 Erfanian2f1c7582017-06-19 11:26:01 -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 Erfanian2f1c7582017-06-19 11:26:01 -0700276 dialer-grpc-all-target \
277 dialer-grpc-core-target \
278 dialer-grpc-okhttp-target \
279 dialer-grpc-protobuf-lite-target \
280 dialer-grpc-stub-target \
Eric Erfanian2d6bc362017-06-19 17:28:33 -0700281 dialer-guava-target \
Eric Erfanian90508232017-03-24 09:31:16 -0700282 dialer-javax-annotation-api-target \
283 dialer-javax-inject-target \
284 dialer-libshortcutbadger-target \
Eric Erfanian8369df02017-05-03 10:27:13 -0700285 dialer-mime4j-core-target \
286 dialer-mime4j-dom-target \
Eric Erfanianccca3152017-02-22 16:32:36 -0800287 jsr305 \
288 libphonenumber \
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700289 volley \
Chiao Cheng94b10b52012-08-17 16:59:12 -0700290
Alan Viveretteb5870be2017-04-26 11:15:10 -0400291LOCAL_STATIC_ANDROID_LIBRARIES := \
292 android-support-design \
293 android-support-transition \
294 android-support-v13 \
295 android-support-v4 \
296 android-support-v7-appcompat \
297 android-support-v7-cardview \
298 android-support-v7-recyclerview \
299
Eric Erfanianccca3152017-02-22 16:32:36 -0800300LOCAL_JAVA_LIBRARIES := \
Eric Erfanian90508232017-03-24 09:31:16 -0700301 dialer-auto-value \
Eric Erfanian2d6bc362017-06-19 17:28:33 -0700302 org.apache.http.legacy \
Eric Erfanianccca3152017-02-22 16:32:36 -0800303
304# Libraries needed by the compiler (JACK) to generate code.
305PROCESSOR_LIBRARIES_TARGET := \
Eric Erfanian2d6bc362017-06-19 17:28:33 -0700306 dialer-auto-value \
Eric Erfanianccca3152017-02-22 16:32:36 -0800307 dialer-dagger2 \
Eric Erfanian2d6bc362017-06-19 17:28:33 -0700308 dialer-dagger2-compiler \
Eric Erfanianccca3152017-02-22 16:32:36 -0800309 dialer-dagger2-producers \
310 dialer-guava \
311 dialer-javax-annotation-api \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700312 dialer-javax-inject \
Eric Erfanianccca3152017-02-22 16:32:36 -0800313
314# Resolve the jar paths.
315PROCESSOR_JARS := $(call java-lib-deps, $(PROCESSOR_LIBRARIES_TARGET))
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700316# Necessary for annotation processors to work correctly.
Eric Erfanianccca3152017-02-22 16:32:36 -0800317LOCAL_ADDITIONAL_DEPENDENCIES += $(PROCESSOR_JARS)
318
319LOCAL_JACK_FLAGS += --processorpath $(call normalize-path-list,$(PROCESSOR_JARS))
Eric Erfanian90508232017-03-24 09:31:16 -0700320LOCAL_JAVACFLAGS += -processorpath $(call normalize-path-list,$(PROCESSOR_JARS))
Chiao Cheng94b10b52012-08-17 16:59:12 -0700321
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700322
323# Begin Bug: 37077388
324LOCAL_DX_FLAGS := --core-library --multi-dex
325LOCAL_JACK_FLAGS := --multi-dex native
326
327LOCAL_PROGUARD_ENABLED := disabled
328ifdef LOCAL_JACK_ENABLED
Eric Erfanian90508232017-03-24 09:31:16 -0700329# Proguard includes
330LOCAL_PROGUARD_FLAG_FILES := \
331 java/com/android/dialer/common/proguard.flags \
332 java/com/android/dialer/proguard/proguard_base.flags \
333 java/com/android/dialer/proguard/proguard.flags \
334 java/com/android/dialer/proguard/proguard_release.flags \
335 java/com/android/incallui/answer/impl/proguard.flags
Colin Crossf939e092017-04-05 22:13:40 -0700336LOCAL_PROGUARD_ENABLED := custom
337
Colin Crossf939e092017-04-05 22:13:40 -0700338LOCAL_PROGUARD_ENABLED += optimization
339endif
Chiao Cheng94b10b52012-08-17 16:59:12 -0700340
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700341# End Bug: 37077388
342
Ta-wei Yen6640e552017-04-21 15:33:24 -0700343LOCAL_SDK_VERSION := system_current
Eric Erfanianccca3152017-02-22 16:32:36 -0800344LOCAL_MODULE_TAGS := optional
345LOCAL_PACKAGE_NAME := Dialer
346LOCAL_CERTIFICATE := shared
347LOCAL_PRIVILEGED_MODULE := true
Eric Erfanian8369df02017-05-03 10:27:13 -0700348LOCAL_USE_AAPT2 := true
349
350# b/37483961 - Jack Not Compiling Dagger Class Properly
351LOCAL_JACK_ENABLED := javac_frontend
352
Chiao Cheng94b10b52012-08-17 16:59:12 -0700353include $(BUILD_PACKAGE)
354
Eric Erfanianccca3152017-02-22 16:32:36 -0800355# Cleanup local state
356BASE_DIR :=
357SRC_DIRS :=
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700358EXCLUDE_FILES :=
Eric Erfanianccca3152017-02-22 16:32:36 -0800359RES_DIRS :=
360DIALER_MANIFEST_FILES :=
361PROCESSOR_LIBRARIES_TARGET :=
362PROCESSOR_JARS :=
363
364# Create references to prebuilt libraries.
365include $(CLEAR_VARS)
366
367LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \
Eric Erfanian90508232017-03-24 09:31:16 -0700368 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 Erfanian2d6bc362017-06-19 17:28:33 -0700369 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 -0700370 dialer-dagger2:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.7/dagger-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) \
371 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 -0700372 dialer-grpc-all:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-all/1.0.3/grpc-all-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \
373 dialer-grpc-core:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-core/1.0.3/grpc-core-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \
374 dialer-grpc-okhttp:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-okhttp/1.0.3/grpc-okhttp-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \
375 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) \
376 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 Erfanian2d6bc362017-06-19 17:28:33 -0700377 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 -0700378 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) \
379 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 -0800380
381include $(BUILD_MULTI_PREBUILT)
382
Eric Erfanian90508232017-03-24 09:31:16 -0700383# Enumerate target prebuilts to avoid linker warnings like
384# Dialer (java:sdk) should not link to dialer-guava (java:platform)
385include $(CLEAR_VARS)
386
387LOCAL_MODULE_CLASS := JAVA_LIBRARIES
388LOCAL_MODULE := dialer-guava-target
389LOCAL_SDK_VERSION := current
390LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/20.0/guava-20.0$(COMMON_JAVA_PACKAGE_SUFFIX)
391LOCAL_UNINSTALLABLE_MODULE := true
392
393include $(BUILD_PREBUILT)
394
395include $(CLEAR_VARS)
396
397LOCAL_MODULE_CLASS := JAVA_LIBRARIES
398LOCAL_MODULE := dialer-dagger2-target
399LOCAL_SDK_VERSION := current
Eric Erfanian8369df02017-05-03 10:27:13 -0700400LOCAL_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 -0700401LOCAL_UNINSTALLABLE_MODULE := true
402
403include $(BUILD_PREBUILT)
404
405include $(CLEAR_VARS)
406
407LOCAL_MODULE_CLASS := JAVA_LIBRARIES
408LOCAL_MODULE := dialer-disklrucache-target
409LOCAL_SDK_VERSION := current
Lujiang Xuec0f306f2017-05-25 09:10:58 -0700410LOCAL_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 -0700411LOCAL_UNINSTALLABLE_MODULE := true
412
413include $(BUILD_PREBUILT)
414
415include $(CLEAR_VARS)
416
417LOCAL_MODULE_CLASS := JAVA_LIBRARIES
418LOCAL_MODULE := dialer-gifdecoder-target
419LOCAL_SDK_VERSION := current
Lujiang Xuec0f306f2017-05-25 09:10:58 -0700420LOCAL_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 -0700421LOCAL_UNINSTALLABLE_MODULE := true
422
423include $(BUILD_PREBUILT)
424
425include $(CLEAR_VARS)
426
427LOCAL_MODULE_CLASS := JAVA_LIBRARIES
428LOCAL_MODULE := dialer-glide-target
429LOCAL_SDK_VERSION := current
Lujiang Xuec0f306f2017-05-25 09:10:58 -0700430LOCAL_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 -0700431LOCAL_UNINSTALLABLE_MODULE := true
432
433include $(BUILD_PREBUILT)
434
435include $(CLEAR_VARS)
436
437LOCAL_MODULE_CLASS := JAVA_LIBRARIES
438LOCAL_MODULE := dialer-javax-annotation-api-target
439LOCAL_SDK_VERSION := current
440LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2$(COMMON_JAVA_PACKAGE_SUFFIX)
441LOCAL_UNINSTALLABLE_MODULE := true
442
443include $(BUILD_PREBUILT)
444
445include $(CLEAR_VARS)
446
447LOCAL_MODULE_CLASS := JAVA_LIBRARIES
448LOCAL_MODULE := dialer-libshortcutbadger-target
449LOCAL_SDK_VERSION := current
450LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/me/leolin/ShortcutBadger/1.1.13/ShortcutBadger-1.1.13$(COMMON_JAVA_PACKAGE_SUFFIX)
451LOCAL_UNINSTALLABLE_MODULE := true
452
453include $(BUILD_PREBUILT)
454
455include $(CLEAR_VARS)
456
457LOCAL_MODULE_CLASS := JAVA_LIBRARIES
458LOCAL_MODULE := dialer-javax-inject-target
459LOCAL_SDK_VERSION := current
460LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/inject/javax.inject/1/javax.inject-1$(COMMON_JAVA_PACKAGE_SUFFIX)
461LOCAL_UNINSTALLABLE_MODULE := true
462
463include $(BUILD_PREBUILT)
464
Eric Erfanianccca3152017-02-22 16:32:36 -0800465include $(CLEAR_VARS)
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700466
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700467LOCAL_MODULE_CLASS := JAVA_LIBRARIES
468LOCAL_MODULE := dialer-commons-io-target
469LOCAL_SDK_VERSION := current
470LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/commons-io/commons-io/2.4/commons-io-2.4$(COMMON_JAVA_PACKAGE_SUFFIX)
471LOCAL_UNINSTALLABLE_MODULE := true
472
473include $(BUILD_PREBUILT)
474
475include $(CLEAR_VARS)
Eric Erfanian8369df02017-05-03 10:27:13 -0700476
477LOCAL_MODULE_CLASS := JAVA_LIBRARIES
478LOCAL_MODULE := dialer-mime4j-core-target
479LOCAL_SDK_VERSION := current
480LOCAL_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)
481LOCAL_UNINSTALLABLE_MODULE := true
482
483include $(BUILD_PREBUILT)
484
485include $(CLEAR_VARS)
486
487LOCAL_MODULE_CLASS := JAVA_LIBRARIES
488LOCAL_MODULE := dialer-mime4j-dom-target
489LOCAL_SDK_VERSION := current
490LOCAL_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)
491LOCAL_UNINSTALLABLE_MODULE := true
492
493include $(BUILD_PREBUILT)
494
Ta-wei Yen6af9c022017-05-25 14:57:51 -0700495include $(CLEAR_VARS)
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700496
497LOCAL_MODULE_CLASS := JAVA_LIBRARIES
498LOCAL_MODULE := dialer-grpc-core-target
499LOCAL_SDK_VERSION := current
500LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-core/1.0.3/grpc-core-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
501LOCAL_UNINSTALLABLE_MODULE := true
502
503include $(BUILD_PREBUILT)
504
505include $(CLEAR_VARS)
506
507LOCAL_MODULE_CLASS := JAVA_LIBRARIES
508LOCAL_MODULE := dialer-grpc-okhttp-target
509LOCAL_SDK_VERSION := current
510LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-okhttp/1.0.3/grpc-okhttp-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
511LOCAL_UNINSTALLABLE_MODULE := true
512
513include $(BUILD_PREBUILT)
514
515include $(CLEAR_VARS)
516
517LOCAL_MODULE_CLASS := JAVA_LIBRARIES
518LOCAL_MODULE := dialer-grpc-protobuf-lite-target
519LOCAL_SDK_VERSION := current
520LOCAL_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)
521LOCAL_UNINSTALLABLE_MODULE := true
522
523include $(BUILD_PREBUILT)
524
525include $(CLEAR_VARS)
526
527LOCAL_MODULE_CLASS := JAVA_LIBRARIES
528LOCAL_MODULE := dialer-grpc-stub-target
529LOCAL_SDK_VERSION := current
530LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-stub/1.0.3/grpc-stub-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
531LOCAL_UNINSTALLABLE_MODULE := true
532
533include $(BUILD_PREBUILT)
534
535include $(CLEAR_VARS)
536
537LOCAL_MODULE_CLASS := JAVA_LIBRARIES
538LOCAL_MODULE := dialer-grpc-all-target
539LOCAL_SDK_VERSION := current
540LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-all/1.0.3/grpc-all-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX)
541LOCAL_UNINSTALLABLE_MODULE := true
542
543include $(BUILD_PREBUILT)
544
545include $(CLEAR_VARS)