blob: 440460f223bc1901014f251368db8761a592d508 [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/
Chiao Cheng94b10b52012-08-17 16:59:12 -07007LOCAL_PATH:= $(call my-dir)
8include $(CLEAR_VARS)
9
Kirill Grouchnikovfa340972017-05-16 01:32:43 +000010ifeq ($(TARGET_BUILD_APPS),)
11support_library_root_dir := frameworks/support
12else
13support_library_root_dir := prebuilts/sdk/current/support
14endif
15
Eric Erfanianccca3152017-02-22 16:32:36 -080016# The base directory for Dialer sources.
17BASE_DIR := java/com/android
Jay Shrauner0f68a712014-07-16 16:13:57 -070018
Eric Erfanianccca3152017-02-22 16:32:36 -080019# Primary dialer module sources.
20SRC_DIRS := \
21 $(BASE_DIR)/contacts/common \
22 $(BASE_DIR)/dialer \
23 $(BASE_DIR)/incallui \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070024 $(BASE_DIR)/voicemail
25
26# Exclude files incompatible with AOSP.
27EXCLUDE_FILES := \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070028 $(BASE_DIR)/incallui/calllocation/impl/AuthException.java \
29 $(BASE_DIR)/incallui/calllocation/impl/CallLocationImpl.java \
30 $(BASE_DIR)/incallui/calllocation/impl/CallLocationModule.java \
31 $(BASE_DIR)/incallui/calllocation/impl/DownloadMapImageTask.java \
32 $(BASE_DIR)/incallui/calllocation/impl/GoogleLocationSettingHelper.java \
33 $(BASE_DIR)/incallui/calllocation/impl/HttpFetcher.java \
34 $(BASE_DIR)/incallui/calllocation/impl/LocationFragment.java \
35 $(BASE_DIR)/incallui/calllocation/impl/LocationHelper.java \
36 $(BASE_DIR)/incallui/calllocation/impl/LocationPresenter.java \
37 $(BASE_DIR)/incallui/calllocation/impl/LocationUrlBuilder.java \
38 $(BASE_DIR)/incallui/calllocation/impl/ReverseGeocodeTask.java \
39 $(BASE_DIR)/incallui/calllocation/impl/TrafficStatsTags.java \
40 $(BASE_DIR)/incallui/maps/impl/MapsImpl.java \
41 $(BASE_DIR)/incallui/maps/impl/MapsModule.java \
42 $(BASE_DIR)/incallui/maps/impl/StaticMapFragment.java
Chiao Cheng94b10b52012-08-17 16:59:12 -070043
Paul Duffin922b1082017-05-05 15:05:47 +010044# Exclude testing only class, not used anywhere here
45EXCLUDE_FILES += \
46 $(BASE_DIR)/contacts/common/format/testing/SpannedTestUtils.java
47
Eric Erfanianccca3152017-02-22 16:32:36 -080048# All Dialers resources.
49# find . -type d -name "res" | uniq | sort
50RES_DIRS := \
51 assets/product/res \
52 assets/quantum/res \
53 $(BASE_DIR)/contacts/common/res \
Eric Erfanianc857f902017-05-15 14:05:33 -070054 $(BASE_DIR)/dialer/about/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080055 $(BASE_DIR)/dialer/app/res \
56 $(BASE_DIR)/dialer/app/voicemail/error/res \
57 $(BASE_DIR)/dialer/blocking/res \
58 $(BASE_DIR)/dialer/callcomposer/camera/camerafocus/res \
59 $(BASE_DIR)/dialer/callcomposer/cameraui/res \
60 $(BASE_DIR)/dialer/callcomposer/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070061 $(BASE_DIR)/dialer/calldetails/res \
Eric Erfanian8369df02017-05-03 10:27:13 -070062 $(BASE_DIR)/dialer/calllog/ui/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070063 $(BASE_DIR)/dialer/calllogutils/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080064 $(BASE_DIR)/dialer/common/res \
Eric Erfanian8369df02017-05-03 10:27:13 -070065 $(BASE_DIR)/dialer/contactsfragment/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080066 $(BASE_DIR)/dialer/dialpadview/res \
67 $(BASE_DIR)/dialer/interactions/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070068 $(BASE_DIR)/dialer/notification/res \
69 $(BASE_DIR)/dialer/oem/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080070 $(BASE_DIR)/dialer/phonenumberutil/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070071 $(BASE_DIR)/dialer/postcall/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080072 $(BASE_DIR)/dialer/shortcuts/res \
Eric Erfaniand8046e52017-04-06 09:41:50 -070073 $(BASE_DIR)/dialer/speeddial/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080074 $(BASE_DIR)/dialer/theme/res \
75 $(BASE_DIR)/dialer/util/res \
76 $(BASE_DIR)/dialer/voicemailstatus/res \
77 $(BASE_DIR)/dialer/widget/res \
78 $(BASE_DIR)/incallui/answer/impl/affordance/res \
79 $(BASE_DIR)/incallui/answer/impl/answermethod/res \
80 $(BASE_DIR)/incallui/answer/impl/hint/res \
81 $(BASE_DIR)/incallui/answer/impl/res \
82 $(BASE_DIR)/incallui/audioroute/res \
83 $(BASE_DIR)/incallui/autoresizetext/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070084 $(BASE_DIR)/incallui/calllocation/impl/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080085 $(BASE_DIR)/incallui/commontheme/res \
86 $(BASE_DIR)/incallui/contactgrid/res \
87 $(BASE_DIR)/incallui/hold/res \
88 $(BASE_DIR)/incallui/incall/impl/res \
89 $(BASE_DIR)/incallui/res \
90 $(BASE_DIR)/incallui/sessiondata/res \
Eric Erfanianc857f902017-05-15 14:05:33 -070091 $(BASE_DIR)/incallui/telecomeventui/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080092 $(BASE_DIR)/incallui/video/impl/res \
Eric Erfaniand8046e52017-04-06 09:41:50 -070093 $(BASE_DIR)/incallui/video/protocol/res \
Eric Erfanianccca3152017-02-22 16:32:36 -080094 $(BASE_DIR)/incallui/wifi/res \
Eric Erfanian8369df02017-05-03 10:27:13 -070095 $(BASE_DIR)/voicemail/impl/res \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070096
Ta-wei Yen90a13e92016-01-11 13:00:53 -080097
Eric Erfanianccca3152017-02-22 16:32:36 -080098# Dialer manifest files to merge.
99# find . -type f -name "AndroidManifest.xml" | uniq | sort
100DIALER_MANIFEST_FILES += \
101 $(BASE_DIR)/contacts/common/AndroidManifest.xml \
Eric Erfanianc857f902017-05-15 14:05:33 -0700102 $(BASE_DIR)/dialer/about/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800103 $(BASE_DIR)/dialer/app/AndroidManifest.xml \
104 $(BASE_DIR)/dialer/app/manifests/activities/AndroidManifest.xml \
105 $(BASE_DIR)/dialer/app/voicemail/error/AndroidManifest.xml \
106 $(BASE_DIR)/dialer/backup/AndroidManifest.xml \
107 $(BASE_DIR)/dialer/blocking/AndroidManifest.xml \
108 $(BASE_DIR)/dialer/callcomposer/AndroidManifest.xml \
109 $(BASE_DIR)/dialer/callcomposer/camera/AndroidManifest.xml \
110 $(BASE_DIR)/dialer/callcomposer/camera/camerafocus/AndroidManifest.xml \
111 $(BASE_DIR)/dialer/callcomposer/cameraui/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700112 $(BASE_DIR)/dialer/calldetails/AndroidManifest.xml \
Eric Erfanian8369df02017-05-03 10:27:13 -0700113 $(BASE_DIR)/dialer/calllog/ui/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700114 $(BASE_DIR)/dialer/calllogutils/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800115 $(BASE_DIR)/dialer/common/AndroidManifest.xml \
Eric Erfanian8369df02017-05-03 10:27:13 -0700116 $(BASE_DIR)/dialer/contactsfragment/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800117 $(BASE_DIR)/dialer/dialpadview/AndroidManifest.xml \
118 $(BASE_DIR)/dialer/interactions/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700119 $(BASE_DIR)/dialer/notification/AndroidManifest.xml \
120 $(BASE_DIR)/dialer/oem/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800121 $(BASE_DIR)/dialer/phonenumberutil/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700122 $(BASE_DIR)/dialer/postcall/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800123 $(BASE_DIR)/dialer/shortcuts/AndroidManifest.xml \
124 $(BASE_DIR)/dialer/simulator/impl/AndroidManifest.xml \
Eric Erfaniand8046e52017-04-06 09:41:50 -0700125 $(BASE_DIR)/dialer/speeddial/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800126 $(BASE_DIR)/dialer/theme/AndroidManifest.xml \
127 $(BASE_DIR)/dialer/util/AndroidManifest.xml \
128 $(BASE_DIR)/dialer/voicemailstatus/AndroidManifest.xml \
129 $(BASE_DIR)/dialer/widget/AndroidManifest.xml \
130 $(BASE_DIR)/incallui/AndroidManifest.xml \
131 $(BASE_DIR)/incallui/answer/impl/affordance/AndroidManifest.xml \
132 $(BASE_DIR)/incallui/answer/impl/AndroidManifest.xml \
133 $(BASE_DIR)/incallui/answer/impl/answermethod/AndroidManifest.xml \
134 $(BASE_DIR)/incallui/answer/impl/hint/AndroidManifest.xml \
135 $(BASE_DIR)/incallui/audioroute/AndroidManifest.xml \
136 $(BASE_DIR)/incallui/autoresizetext/AndroidManifest.xml \
137 $(BASE_DIR)/incallui/commontheme/AndroidManifest.xml \
138 $(BASE_DIR)/incallui/contactgrid/AndroidManifest.xml \
139 $(BASE_DIR)/incallui/hold/AndroidManifest.xml \
140 $(BASE_DIR)/incallui/incall/impl/AndroidManifest.xml \
141 $(BASE_DIR)/incallui/sessiondata/AndroidManifest.xml \
Eric Erfanianc857f902017-05-15 14:05:33 -0700142 $(BASE_DIR)/incallui/telecomeventui/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800143 $(BASE_DIR)/incallui/video/impl/AndroidManifest.xml \
Eric Erfaniand8046e52017-04-06 09:41:50 -0700144 $(BASE_DIR)/incallui/video/protocol/AndroidManifest.xml \
Eric Erfanianccca3152017-02-22 16:32:36 -0800145 $(BASE_DIR)/incallui/wifi/AndroidManifest.xml \
Eric Erfanian8369df02017-05-03 10:27:13 -0700146 $(BASE_DIR)/voicemail/impl/AndroidManifest.xml \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700147
Chiao Cheng94b10b52012-08-17 16:59:12 -0700148
Eric Erfanianccca3152017-02-22 16:32:36 -0800149# Merge all manifest files.
150LOCAL_FULL_LIBS_MANIFEST_FILES := \
151 $(addprefix $(LOCAL_PATH)/, $(DIALER_MANIFEST_FILES))
152LOCAL_SRC_FILES := $(call all-java-files-under, $(SRC_DIRS))
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700153LOCAL_SRC_FILES := $(filter-out $(EXCLUDE_FILES),$(LOCAL_SRC_FILES))
Eric Erfanian8369df02017-05-03 10:27:13 -0700154LOCAL_SRC_FILES += $(call all-proto-files-under, $(SRC_DIRS))
155LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)
156
Eric Erfanianccca3152017-02-22 16:32:36 -0800157LOCAL_RESOURCE_DIR := \
158 $(addprefix $(LOCAL_PATH)/, $(RES_DIRS)) \
Kirill Grouchnikovfa340972017-05-16 01:32:43 +0000159 $(support_library_root_dir)/design/res \
160 $(support_library_root_dir)/transition/res \
161 $(support_library_root_dir)/v7/appcompat/res \
162 $(support_library_root_dir)/v7/cardview/res \
163 $(support_library_root_dir)/v7/recyclerview/res
Eric Erfanianccca3152017-02-22 16:32:36 -0800164
165# We specify each package explicitly to glob resource files.
Chiao Cheng94b10b52012-08-17 16:59:12 -0700166LOCAL_AAPT_FLAGS := \
Eric Erfanianccca3152017-02-22 16:32:36 -0800167 --auto-add-overlay \
Eric Erfanianccca3152017-02-22 16:32:36 -0800168 --extra-packages com.android.contacts.common \
Eric Erfanianc857f902017-05-15 14:05:33 -0700169 --extra-packages com.android.dialer.about \
Eric Erfanianccca3152017-02-22 16:32:36 -0800170 --extra-packages com.android.dialer.app \
171 --extra-packages com.android.dialer.app.voicemail.error \
172 --extra-packages com.android.dialer.blocking \
173 --extra-packages com.android.dialer.callcomposer \
174 --extra-packages com.android.dialer.callcomposer \
175 --extra-packages com.android.dialer.callcomposer.camera \
176 --extra-packages com.android.dialer.callcomposer.camera.camerafocus \
177 --extra-packages com.android.dialer.callcomposer.cameraui \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700178 --extra-packages com.android.dialer.calldetails \
Eric Erfanian8369df02017-05-03 10:27:13 -0700179 --extra-packages com.android.dialer.calllog.ui \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700180 --extra-packages com.android.dialer.calllogutils \
Eric Erfanianccca3152017-02-22 16:32:36 -0800181 --extra-packages com.android.dialer.common \
Eric Erfanian8369df02017-05-03 10:27:13 -0700182 --extra-packages com.android.dialer.contactsfragment \
Eric Erfanianccca3152017-02-22 16:32:36 -0800183 --extra-packages com.android.dialer.dialpadview \
184 --extra-packages com.android.dialer.interactions \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700185 --extra-packages com.android.dialer.notification \
186 --extra-packages com.android.dialer.oem \
Eric Erfanianccca3152017-02-22 16:32:36 -0800187 --extra-packages com.android.dialer.phonenumberutil \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700188 --extra-packages com.android.dialer.postcall \
Eric Erfanianccca3152017-02-22 16:32:36 -0800189 --extra-packages com.android.dialer.shortcuts \
Eric Erfaniand8046e52017-04-06 09:41:50 -0700190 --extra-packages com.android.dialer.speeddial \
Eric Erfanianc857f902017-05-15 14:05:33 -0700191 --extra-packages com.android.dialer.theme \
Eric Erfanianccca3152017-02-22 16:32:36 -0800192 --extra-packages com.android.dialer.util \
193 --extra-packages com.android.dialer.voicemailstatus \
194 --extra-packages com.android.dialer.widget \
195 --extra-packages com.android.incallui \
196 --extra-packages com.android.incallui.answer.impl \
197 --extra-packages com.android.incallui.answer.impl.affordance \
198 --extra-packages com.android.incallui.answer.impl.affordance \
199 --extra-packages com.android.incallui.answer.impl.answermethod \
200 --extra-packages com.android.incallui.answer.impl.hint \
201 --extra-packages com.android.incallui.audioroute \
202 --extra-packages com.android.incallui.autoresizetext \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700203 --extra-packages com.android.incallui.calllocation \
204 --extra-packages com.android.incallui.calllocation.impl \
Eric Erfanianccca3152017-02-22 16:32:36 -0800205 --extra-packages com.android.incallui.commontheme \
206 --extra-packages com.android.incallui.contactgrid \
207 --extra-packages com.android.incallui.hold \
208 --extra-packages com.android.incallui.incall.impl \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700209 --extra-packages com.android.incallui.maps.impl \
Eric Erfanianccca3152017-02-22 16:32:36 -0800210 --extra-packages com.android.incallui.sessiondata \
Eric Erfanianc857f902017-05-15 14:05:33 -0700211 --extra-packages com.android.incallui.telecomeventui \
Eric Erfanianccca3152017-02-22 16:32:36 -0800212 --extra-packages com.android.incallui.video \
213 --extra-packages com.android.incallui.video.impl \
214 --extra-packages com.android.incallui.wifi \
215 --extra-packages com.android.phone.common \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700216 --extra-packages com.android.voicemail \
217 --extra-packages com.android.voicemail.impl \
218 --extra-packages com.android.voicemail.impl.fetch \
219 --extra-packages com.android.voicemail.impl.settings \
220 --extra-packages com.android.voicemail.settings \
Eric Erfanianccca3152017-02-22 16:32:36 -0800221 --extra-packages me.leolin.shortcutbadger
Chiao Cheng94b10b52012-08-17 16:59:12 -0700222
Chiao Cheng94b10b52012-08-17 16:59:12 -0700223LOCAL_STATIC_JAVA_LIBRARIES := \
Eric Erfanianccca3152017-02-22 16:32:36 -0800224 android-common \
Eric Erfanianccca3152017-02-22 16:32:36 -0800225 com.android.vcard \
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700226 dialer-commons-io-target \
Eric Erfanian90508232017-03-24 09:31:16 -0700227 dialer-dagger2-target \
228 dialer-disklrucache-target \
229 dialer-gifdecoder-target \
230 dialer-glide-target \
231 dialer-guava-target \
232 dialer-javax-annotation-api-target \
233 dialer-javax-inject-target \
234 dialer-libshortcutbadger-target \
Eric Erfanian8369df02017-05-03 10:27:13 -0700235 dialer-mime4j-core-target \
236 dialer-mime4j-dom-target \
Eric Erfanianccca3152017-02-22 16:32:36 -0800237 jsr305 \
238 libphonenumber \
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700239 volley \
Chiao Cheng94b10b52012-08-17 16:59:12 -0700240
Alan Viveretteb5870be2017-04-26 11:15:10 -0400241LOCAL_STATIC_ANDROID_LIBRARIES := \
242 android-support-design \
243 android-support-transition \
244 android-support-v13 \
245 android-support-v4 \
246 android-support-v7-appcompat \
247 android-support-v7-cardview \
248 android-support-v7-recyclerview \
249
Eric Erfanianccca3152017-02-22 16:32:36 -0800250LOCAL_JAVA_LIBRARIES := \
Eric Erfanian90508232017-03-24 09:31:16 -0700251 org.apache.http.legacy \
252 dialer-auto-value \
Eric Erfanianccca3152017-02-22 16:32:36 -0800253
254# Libraries needed by the compiler (JACK) to generate code.
255PROCESSOR_LIBRARIES_TARGET := \
Eric Erfanian90508232017-03-24 09:31:16 -0700256 dialer-dagger2-compiler \
Eric Erfanianccca3152017-02-22 16:32:36 -0800257 dialer-dagger2 \
258 dialer-dagger2-producers \
259 dialer-guava \
260 dialer-javax-annotation-api \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700261 dialer-javax-inject \
Eric Erfanian90508232017-03-24 09:31:16 -0700262 dialer-auto-value \
Eric Erfanianccca3152017-02-22 16:32:36 -0800263
264# Resolve the jar paths.
265PROCESSOR_JARS := $(call java-lib-deps, $(PROCESSOR_LIBRARIES_TARGET))
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700266# Necessary for annotation processors to work correctly.
Eric Erfanianccca3152017-02-22 16:32:36 -0800267LOCAL_ADDITIONAL_DEPENDENCIES += $(PROCESSOR_JARS)
268
269LOCAL_JACK_FLAGS += --processorpath $(call normalize-path-list,$(PROCESSOR_JARS))
Eric Erfanian90508232017-03-24 09:31:16 -0700270LOCAL_JAVACFLAGS += -processorpath $(call normalize-path-list,$(PROCESSOR_JARS))
Chiao Cheng94b10b52012-08-17 16:59:12 -0700271
Eric Erfanian90508232017-03-24 09:31:16 -0700272# Proguard includes
273LOCAL_PROGUARD_FLAG_FILES := \
274 java/com/android/dialer/common/proguard.flags \
275 java/com/android/dialer/proguard/proguard_base.flags \
276 java/com/android/dialer/proguard/proguard.flags \
277 java/com/android/dialer/proguard/proguard_release.flags \
278 java/com/android/incallui/answer/impl/proguard.flags
Colin Crossf939e092017-04-05 22:13:40 -0700279LOCAL_PROGUARD_ENABLED := custom
280
281ifdef LOCAL_JACK_ENABLED
282# Bug: 37077388
283LOCAL_PROGUARD_ENABLED += optimization
284endif
Chiao Cheng94b10b52012-08-17 16:59:12 -0700285
Ta-wei Yen6640e552017-04-21 15:33:24 -0700286LOCAL_SDK_VERSION := system_current
Eric Erfanianccca3152017-02-22 16:32:36 -0800287LOCAL_MODULE_TAGS := optional
288LOCAL_PACKAGE_NAME := Dialer
289LOCAL_CERTIFICATE := shared
290LOCAL_PRIVILEGED_MODULE := true
Eric Erfanian8369df02017-05-03 10:27:13 -0700291LOCAL_USE_AAPT2 := true
292
293# b/37483961 - Jack Not Compiling Dagger Class Properly
294LOCAL_JACK_ENABLED := javac_frontend
295
Chiao Cheng94b10b52012-08-17 16:59:12 -0700296include $(BUILD_PACKAGE)
297
Eric Erfanianccca3152017-02-22 16:32:36 -0800298# Cleanup local state
299BASE_DIR :=
300SRC_DIRS :=
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700301EXCLUDE_FILES :=
Eric Erfanianccca3152017-02-22 16:32:36 -0800302RES_DIRS :=
303DIALER_MANIFEST_FILES :=
304PROCESSOR_LIBRARIES_TARGET :=
305PROCESSOR_JARS :=
306
307# Create references to prebuilt libraries.
308include $(CLEAR_VARS)
309
310LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \
Eric Erfanian8369df02017-05-03 10:27:13 -0700311 dialer-dagger2-compiler:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger-compiler/2.7/dagger-compiler-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) \
Eric Erfanian90508232017-03-24 09:31:16 -0700312 dialer-auto-value:../../../prebuilts/tools/common/m2/repository/com/google/auto/value/auto-value/1.3/auto-value-1.3$(COMMON_JAVA_PACKAGE_SUFFIX) \
Eric Erfanian8369df02017-05-03 10:27:13 -0700313 dialer-dagger2:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.7/dagger-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) \
314 dialer-dagger2-producers:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger-producers/2.7/dagger-producers-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) \
Eric Erfanian90508232017-03-24 09:31:16 -0700315 dialer-guava:../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/20.0/guava-20.0$(COMMON_JAVA_PACKAGE_SUFFIX) \
316 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) \
317 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 -0800318
319include $(BUILD_MULTI_PREBUILT)
320
Eric Erfanian90508232017-03-24 09:31:16 -0700321# Enumerate target prebuilts to avoid linker warnings like
322# Dialer (java:sdk) should not link to dialer-guava (java:platform)
323include $(CLEAR_VARS)
324
325LOCAL_MODULE_CLASS := JAVA_LIBRARIES
326LOCAL_MODULE := dialer-guava-target
327LOCAL_SDK_VERSION := current
328LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/20.0/guava-20.0$(COMMON_JAVA_PACKAGE_SUFFIX)
329LOCAL_UNINSTALLABLE_MODULE := true
330
331include $(BUILD_PREBUILT)
332
333include $(CLEAR_VARS)
334
335LOCAL_MODULE_CLASS := JAVA_LIBRARIES
336LOCAL_MODULE := dialer-dagger2-target
337LOCAL_SDK_VERSION := current
Eric Erfanian8369df02017-05-03 10:27:13 -0700338LOCAL_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 -0700339LOCAL_UNINSTALLABLE_MODULE := true
340
341include $(BUILD_PREBUILT)
342
343include $(CLEAR_VARS)
344
345LOCAL_MODULE_CLASS := JAVA_LIBRARIES
346LOCAL_MODULE := dialer-disklrucache-target
347LOCAL_SDK_VERSION := current
Lujiang Xuec0f306f2017-05-25 09:10:58 -0700348LOCAL_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 -0700349LOCAL_UNINSTALLABLE_MODULE := true
350
351include $(BUILD_PREBUILT)
352
353include $(CLEAR_VARS)
354
355LOCAL_MODULE_CLASS := JAVA_LIBRARIES
356LOCAL_MODULE := dialer-gifdecoder-target
357LOCAL_SDK_VERSION := current
Lujiang Xuec0f306f2017-05-25 09:10:58 -0700358LOCAL_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 -0700359LOCAL_UNINSTALLABLE_MODULE := true
360
361include $(BUILD_PREBUILT)
362
363include $(CLEAR_VARS)
364
365LOCAL_MODULE_CLASS := JAVA_LIBRARIES
366LOCAL_MODULE := dialer-glide-target
367LOCAL_SDK_VERSION := current
Lujiang Xuec0f306f2017-05-25 09:10:58 -0700368LOCAL_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 -0700369LOCAL_UNINSTALLABLE_MODULE := true
370
371include $(BUILD_PREBUILT)
372
373include $(CLEAR_VARS)
374
375LOCAL_MODULE_CLASS := JAVA_LIBRARIES
376LOCAL_MODULE := dialer-javax-annotation-api-target
377LOCAL_SDK_VERSION := current
378LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2$(COMMON_JAVA_PACKAGE_SUFFIX)
379LOCAL_UNINSTALLABLE_MODULE := true
380
381include $(BUILD_PREBUILT)
382
383include $(CLEAR_VARS)
384
385LOCAL_MODULE_CLASS := JAVA_LIBRARIES
386LOCAL_MODULE := dialer-libshortcutbadger-target
387LOCAL_SDK_VERSION := current
388LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/me/leolin/ShortcutBadger/1.1.13/ShortcutBadger-1.1.13$(COMMON_JAVA_PACKAGE_SUFFIX)
389LOCAL_UNINSTALLABLE_MODULE := true
390
391include $(BUILD_PREBUILT)
392
393include $(CLEAR_VARS)
394
395LOCAL_MODULE_CLASS := JAVA_LIBRARIES
396LOCAL_MODULE := dialer-javax-inject-target
397LOCAL_SDK_VERSION := current
398LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/inject/javax.inject/1/javax.inject-1$(COMMON_JAVA_PACKAGE_SUFFIX)
399LOCAL_UNINSTALLABLE_MODULE := true
400
401include $(BUILD_PREBUILT)
402
Eric Erfanianccca3152017-02-22 16:32:36 -0800403include $(CLEAR_VARS)
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700404
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700405LOCAL_MODULE_CLASS := JAVA_LIBRARIES
406LOCAL_MODULE := dialer-commons-io-target
407LOCAL_SDK_VERSION := current
408LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/commons-io/commons-io/2.4/commons-io-2.4$(COMMON_JAVA_PACKAGE_SUFFIX)
409LOCAL_UNINSTALLABLE_MODULE := true
410
411include $(BUILD_PREBUILT)
412
413include $(CLEAR_VARS)
Eric Erfanian8369df02017-05-03 10:27:13 -0700414
415LOCAL_MODULE_CLASS := JAVA_LIBRARIES
416LOCAL_MODULE := dialer-mime4j-core-target
417LOCAL_SDK_VERSION := current
418LOCAL_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)
419LOCAL_UNINSTALLABLE_MODULE := true
420
421include $(BUILD_PREBUILT)
422
423include $(CLEAR_VARS)
424
425LOCAL_MODULE_CLASS := JAVA_LIBRARIES
426LOCAL_MODULE := dialer-mime4j-dom-target
427LOCAL_SDK_VERSION := current
428LOCAL_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)
429LOCAL_UNINSTALLABLE_MODULE := true
430
431include $(BUILD_PREBUILT)
432
Lujiang Xuec0f306f2017-05-25 09:10:58 -0700433include $(CLEAR_VARS)