blob: b71f702438c566ab6280d1aff5d9defeef97442b [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.geo.API_KEY key. This should be added to
3# the manifest files in java/com/android/incallui/calllocation/impl/
4# and /java/com/android/incallui/maps/impl/
Eric Erfanian842a9772017-06-22 09:39:08 -07005# * b/62417801 modify translation string naming convention:
6# $ find . -type d | grep 262 | rename 's/(values)\-([a-zA-Z\+\-]+)\-(mcc262-mnc01)/$1-$3-$2/'
Eric Erfanianfc0eb8c2017-08-31 06:57:16 -07007# * b/37077388 temporarily disable proguard with javac
8# * b/62875795 include manually generated GRPC service class:
Eric Erfanian91ce7d22017-06-05 13:35:02 -07009# $ 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 \
10# --grpc-java_out=lite:"packages/apps/Dialer/java/com/android/voicemail/impl/" \
Eric Erfanianea7890c2017-06-19 12:40:59 -070011# --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"
Chiao Cheng94b10b52012-08-17 16:59:12 -070012LOCAL_PATH:= $(call my-dir)
13include $(CLEAR_VARS)
14
Eric Erfanianccca3152017-02-22 16:32:36 -080015# The base directory for Dialer sources.
16BASE_DIR := java/com/android
Jay Shrauner0f68a712014-07-16 16:13:57 -070017
Eric Erfaniand5e47f62017-03-15 14:41:07 -070018# Exclude files incompatible with AOSP.
19EXCLUDE_FILES := \
Eric Erfaniand5e47f62017-03-15 14:41:07 -070020 $(BASE_DIR)/incallui/calllocation/impl/AuthException.java \
21 $(BASE_DIR)/incallui/calllocation/impl/CallLocationImpl.java \
22 $(BASE_DIR)/incallui/calllocation/impl/CallLocationModule.java \
23 $(BASE_DIR)/incallui/calllocation/impl/DownloadMapImageTask.java \
24 $(BASE_DIR)/incallui/calllocation/impl/GoogleLocationSettingHelper.java \
25 $(BASE_DIR)/incallui/calllocation/impl/HttpFetcher.java \
26 $(BASE_DIR)/incallui/calllocation/impl/LocationFragment.java \
27 $(BASE_DIR)/incallui/calllocation/impl/LocationHelper.java \
28 $(BASE_DIR)/incallui/calllocation/impl/LocationPresenter.java \
29 $(BASE_DIR)/incallui/calllocation/impl/LocationUrlBuilder.java \
30 $(BASE_DIR)/incallui/calllocation/impl/ReverseGeocodeTask.java \
31 $(BASE_DIR)/incallui/calllocation/impl/TrafficStatsTags.java \
32 $(BASE_DIR)/incallui/maps/impl/MapsImpl.java \
33 $(BASE_DIR)/incallui/maps/impl/MapsModule.java \
Eric Erfanian91ce7d22017-06-05 13:35:02 -070034 $(BASE_DIR)/incallui/maps/impl/StaticMapFragment.java \
Chiao Cheng94b10b52012-08-17 16:59:12 -070035
Paul Duffin922b1082017-05-05 15:05:47 +010036# Exclude testing only class, not used anywhere here
37EXCLUDE_FILES += \
38 $(BASE_DIR)/contacts/common/format/testing/SpannedTestUtils.java
39
Weijia Xucac4acd2018-03-23 18:13:41 -070040# Exclude rootcomponentgenerator
41EXCLUDE_FILES += \
Zachary Heidepriem7acd97f2018-04-06 12:28:36 -070042 $(call all-java-files-under, $(BASE_DIR)/dialer/rootcomponentgenerator) \
43 $(call all-java-files-under, $(BASE_DIR)/dialer/inject/demo)
Weijia Xucac4acd2018-03-23 18:13:41 -070044
Eric Erfanian842a9772017-06-22 09:39:08 -070045# Exclude build variants for now
46EXCLUDE_FILES += \
Eric Erfanian842a9772017-06-22 09:39:08 -070047 $(BASE_DIR)/dialer/constants/googledialer/ConstantsImpl.java \
48 $(BASE_DIR)/dialer/binary/google/GoogleStubDialerRootComponent.java \
Eric Erfanianfc0eb8c2017-08-31 06:57:16 -070049 $(BASE_DIR)/dialer/binary/google/GoogleStubDialerApplication.java \
50
51EXCLUDE_RESOURCE_DIRECTORIES := \
52 java/com/android/incallui/maps/impl/res \
Eric Erfanian842a9772017-06-22 09:39:08 -070053
Eric Erfanianccca3152017-02-22 16:32:36 -080054# All Dialers resources.
Eric Erfanianfc0eb8c2017-08-31 06:57:16 -070055RES_DIRS := $(call all-subdir-named-dirs,res,.)
56RES_DIRS := $(filter-out $(EXCLUDE_RESOURCE_DIRECTORIES),$(RES_DIRS))
Eric Erfaniand5e47f62017-03-15 14:41:07 -070057
Eric Erfanianfc0eb8c2017-08-31 06:57:16 -070058EXCLUDE_MANIFESTS := \
59 $(BASE_DIR)/dialer/binary/aosp/testing/AndroidManifest.xml \
60 $(BASE_DIR)/dialer/binary/google/AndroidManifest.xml \
61 $(BASE_DIR)/incallui/calllocation/impl/AndroidManifest.xml \
62 $(BASE_DIR)/incallui/maps/impl/AndroidManifest.xml \
Ta-wei Yen90a13e92016-01-11 13:00:53 -080063
Eric Erfanianccca3152017-02-22 16:32:36 -080064# Dialer manifest files to merge.
Eric Erfanianfc0eb8c2017-08-31 06:57:16 -070065DIALER_MANIFEST_FILES := $(call all-named-files-under,AndroidManifest.xml,.)
66DIALER_MANIFEST_FILES := $(filter-out $(EXCLUDE_MANIFESTS),$(DIALER_MANIFEST_FILES))
Chiao Cheng94b10b52012-08-17 16:59:12 -070067
Eric Erfanianccca3152017-02-22 16:32:36 -080068# Merge all manifest files.
69LOCAL_FULL_LIBS_MANIFEST_FILES := \
70 $(addprefix $(LOCAL_PATH)/, $(DIALER_MANIFEST_FILES))
Eric Erfanianb1161672017-08-16 16:33:47 -070071
sail3bcea982017-09-03 13:57:22 -070072LOCAL_SRC_FILES := $(call all-java-files-under, $(BASE_DIR))
73LOCAL_SRC_FILES += $(call all-proto-files-under, $(BASE_DIR))
Eric Erfanianfc0eb8c2017-08-31 06:57:16 -070074LOCAL_SRC_FILES := $(filter-out $(EXCLUDE_FILES),$(LOCAL_SRC_FILES))
Eric Erfanianb1161672017-08-16 16:33:47 -070075
Eric Erfanian8369df02017-05-03 10:27:13 -070076LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)
77
Eric Erfanianfc0eb8c2017-08-31 06:57:16 -070078LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(RES_DIRS))
79
80EXCLUDE_EXTRA_PACKAGES := \
81 com.android.dialer.binary.aosp.testing \
82 com.android.dialer.binary.google \
83 com.android.incallui.calllocation.impl \
84 com.android.incallui.maps.impl \
Eric Erfanianccca3152017-02-22 16:32:36 -080085
86# We specify each package explicitly to glob resource files.
Zachary Heidepriem95fafa82017-11-13 11:11:32 -080087include ${LOCAL_PATH}/packages.mk
Eric Erfanian842a9772017-06-22 09:39:08 -070088
Eric Erfanianfc0eb8c2017-08-31 06:57:16 -070089LOCAL_AAPT_FLAGS := $(filter-out $(EXCLUDE_EXTRA_PACKAGES),$(LOCAL_AAPT_FLAGS))
90LOCAL_AAPT_FLAGS := $(addprefix --extra-packages , $(LOCAL_AAPT_FLAGS))
91LOCAL_AAPT_FLAGS += \
92 --auto-add-overlay \
93 --extra-packages me.leolin.shortcutbadger \
Chiao Cheng94b10b52012-08-17 16:59:12 -070094
Chiao Cheng94b10b52012-08-17 16:59:12 -070095LOCAL_STATIC_JAVA_LIBRARIES := \
Eric Erfanianccca3152017-02-22 16:32:36 -080096 android-common \
Eric Erfanian91ce7d22017-06-05 13:35:02 -070097 android-support-dynamic-animation \
Eric Erfanianccca3152017-02-22 16:32:36 -080098 com.android.vcard \
Eric Erfaniancdb1edf2017-03-29 10:20:40 -070099 dialer-commons-io-target \
Eric Erfanian90508232017-03-24 09:31:16 -0700100 dialer-dagger2-target \
101 dialer-disklrucache-target \
102 dialer-gifdecoder-target \
103 dialer-glide-target \
Eric Erfanianfc0eb8c2017-08-31 06:57:16 -0700104 dialer-grpc-all-target \
105 dialer-grpc-context-target \
106 dialer-grpc-core-target \
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700107 dialer-grpc-okhttp-target \
108 dialer-grpc-protobuf-lite-target \
Eric Erfanianfc0eb8c2017-08-31 06:57:16 -0700109 dialer-grpc-stub-target \
Eric Erfanian90508232017-03-24 09:31:16 -0700110 dialer-javax-annotation-api-target \
111 dialer-javax-inject-target \
112 dialer-libshortcutbadger-target \
Eric Erfanian8369df02017-05-03 10:27:13 -0700113 dialer-mime4j-core-target \
114 dialer-mime4j-dom-target \
Zachary Heidepriem922cbed2017-11-11 18:49:27 -0800115 dialer-error-prone-target \
Zachary Heidepriem9f39c2f2017-11-10 15:07:54 -0800116 dialer-guava-target \
Ta-wei Yenea7ea2b2018-02-08 18:03:40 -0800117 dialer-glide-target \
118 dialer-glide-annotation-target \
roldenburg9c9175f2018-02-15 15:22:24 -0800119 dialer-zxing-target \
Eric Erfanianccca3152017-02-22 16:32:36 -0800120 jsr305 \
Eric Erfanianc4bd4e32017-09-05 10:53:21 -0700121 libbackup \
Eric Erfanianccca3152017-02-22 16:32:36 -0800122 libphonenumber \
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700123 volley \
Chiao Cheng94b10b52012-08-17 16:59:12 -0700124
Alan Viveretteb5870be2017-04-26 11:15:10 -0400125LOCAL_STATIC_ANDROID_LIBRARIES := \
Eric Erfanianfc0eb8c2017-08-31 06:57:16 -0700126 android-support-core-ui \
Alan Viveretteb5870be2017-04-26 11:15:10 -0400127 android-support-design \
128 android-support-transition \
129 android-support-v13 \
130 android-support-v4 \
131 android-support-v7-appcompat \
132 android-support-v7-cardview \
133 android-support-v7-recyclerview \
134
Eric Erfanianccca3152017-02-22 16:32:36 -0800135LOCAL_JAVA_LIBRARIES := \
Roland Levillain05d63612017-08-24 14:41:12 +0100136 dialer-auto-value-target \
Eric Erfanian842a9772017-06-22 09:39:08 -0700137 org.apache.http.legacy \
Eric Erfanianccca3152017-02-22 16:32:36 -0800138
Roland Levillain05d63612017-08-24 14:41:12 +0100139LOCAL_ANNOTATION_PROCESSORS := \
Eric Erfanian842a9772017-06-22 09:39:08 -0700140 dialer-auto-value \
Tony Mantler0f8a28a2018-03-29 14:23:58 -0700141 javapoet-prebuilt-jar \
Eric Erfanianccca3152017-02-22 16:32:36 -0800142 dialer-dagger2 \
Eric Erfanian842a9772017-06-22 09:39:08 -0700143 dialer-dagger2-compiler \
Eric Erfanianccca3152017-02-22 16:32:36 -0800144 dialer-dagger2-producers \
Ta-wei Yena8bbb352018-01-25 18:10:32 -0800145 dialer-glide-annotation \
Ta-wei Yenea7ea2b2018-02-08 18:03:40 -0800146 dialer-glide-compiler \
Eric Erfanianccca3152017-02-22 16:32:36 -0800147 dialer-guava \
148 dialer-javax-annotation-api \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700149 dialer-javax-inject \
Weijia Xucac4acd2018-03-23 18:13:41 -0700150 dialer-rootcomponentprocessor
Eric Erfanianccca3152017-02-22 16:32:36 -0800151
Roland Levillain05d63612017-08-24 14:41:12 +0100152LOCAL_ANNOTATION_PROCESSOR_CLASSES := \
Zachary Heidepriem7acd97f2018-04-06 12:28:36 -0700153 com.google.auto.value.processor.AutoValueProcessor,dagger.internal.codegen.ComponentProcessor,com.bumptech.glide.annotation.compiler.GlideAnnotationProcessor,com.android.dialer.rootcomponentgenerator.RootComponentProcessor
Eric Erfanianea7890c2017-06-19 12:40:59 -0700154
155# Begin Bug: 37077388
Eric Erfanian842a9772017-06-22 09:39:08 -0700156LOCAL_DX_FLAGS := --multi-dex
Eric Erfanianea7890c2017-06-19 12:40:59 -0700157LOCAL_JACK_FLAGS := --multi-dex native
158
159LOCAL_PROGUARD_ENABLED := disabled
160ifdef LOCAL_JACK_ENABLED
Eric Erfanianfc0eb8c2017-08-31 06:57:16 -0700161
162
Eric Erfanian90508232017-03-24 09:31:16 -0700163# Proguard includes
sail3bcea982017-09-03 13:57:22 -0700164LOCAL_PROGUARD_FLAG_FILES := $(call all-named-files-under,proguard.*flags,$(BASE_DIR))
Colin Crossf939e092017-04-05 22:13:40 -0700165LOCAL_PROGUARD_ENABLED := custom
166
Colin Crossf939e092017-04-05 22:13:40 -0700167LOCAL_PROGUARD_ENABLED += optimization
168endif
Chiao Cheng94b10b52012-08-17 16:59:12 -0700169
Eric Erfanianea7890c2017-06-19 12:40:59 -0700170# End Bug: 37077388
171
Ta-wei Yen6640e552017-04-21 15:33:24 -0700172LOCAL_SDK_VERSION := system_current
Eric Erfanianccca3152017-02-22 16:32:36 -0800173LOCAL_MODULE_TAGS := optional
174LOCAL_PACKAGE_NAME := Dialer
175LOCAL_CERTIFICATE := shared
176LOCAL_PRIVILEGED_MODULE := true
Eric Erfanian8369df02017-05-03 10:27:13 -0700177LOCAL_USE_AAPT2 := true
178
179# b/37483961 - Jack Not Compiling Dagger Class Properly
180LOCAL_JACK_ENABLED := javac_frontend
181
Chiao Cheng94b10b52012-08-17 16:59:12 -0700182include $(BUILD_PACKAGE)
183
Eric Erfanianccca3152017-02-22 16:32:36 -0800184# Cleanup local state
185BASE_DIR :=
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700186EXCLUDE_FILES :=
Eric Erfanianccca3152017-02-22 16:32:36 -0800187RES_DIRS :=
188DIALER_MANIFEST_FILES :=
Eric Erfanianfc0eb8c2017-08-31 06:57:16 -0700189EXCLUDE_MANIFESTS :=
190EXCLUDE_EXTRA_PACKAGES :=
Eric Erfanianccca3152017-02-22 16:32:36 -0800191
192# Create references to prebuilt libraries.
193include $(CLEAR_VARS)
194
195LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \
zachh3fcd7082018-01-08 20:10:30 +0000196 dialer-auto-value:../../../prebuilts/tools/common/m2/repository/com/google/auto/value/auto-value/1.5.2/auto-value-1.5.2.jar \
Colin Crossc87db952017-12-13 20:41:25 -0800197 dialer-dagger2-compiler:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger-compiler/2.7/dagger-compiler-2.7.jar \
198 dialer-dagger2:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.7/dagger-2.7.jar \
199 dialer-dagger2-producers:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger-producers/2.7/dagger-producers-2.7.jar \
Ta-wei Yena8bbb352018-01-25 18:10:32 -0800200 dialer-glide-annotation:../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/annotation/SNAPSHOT/annotation-SNAPSHOT.jar \
201 dialer-glide-compiler:../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/compiler/SNAPSHOT/compiler-SNAPSHOT.jar \
Colin Crossc87db952017-12-13 20:41:25 -0800202 dialer-grpc-all:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-all/1.0.3/grpc-all-1.0.3.jar \
203 dialer-grpc-core:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-core/1.0.3/grpc-core-1.0.3.jar \
204 dialer-grpc-okhttp:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-okhttp/1.0.3/grpc-okhttp-1.0.3.jar \
205 dialer-grpc-protobuf-lite:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-protobuf-lite/1.0.3/grpc-protobuf-lite-1.0.3.jar \
206 dialer-grpc-stub:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-stub/1.0.3/grpc-stub-1.0.3.jar \
zachh3fcd7082018-01-08 20:10:30 +0000207 dialer-guava:../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/23.0/guava-23.0.jar \
Colin Crossc87db952017-12-13 20:41:25 -0800208 dialer-javax-annotation-api:../../../prebuilts/tools/common/m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2.jar \
Ta-wei Yenea7ea2b2018-02-08 18:03:40 -0800209 dialer-javax-inject:../../../prebuilts/tools/common/m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar \
Weijia Xucac4acd2018-03-23 18:13:41 -0700210 dialer-auto-service:../../../prebuilts/tools/common/m2/repository/com/google/auto/service/auto-service/1.0-rc2/auto-service-1.0-rc2.jar \
211 dialer-auto-common:../../../prebuilts/tools/common/m2/repository/com/google/auto/auto-common/0.9/auto-common-0.9.jar \
Eric Erfanianccca3152017-02-22 16:32:36 -0800212
Roland Levillain05d63612017-08-24 14:41:12 +0100213include $(BUILD_HOST_PREBUILT)
Eric Erfanianccca3152017-02-22 16:32:36 -0800214
Eric Erfanian90508232017-03-24 09:31:16 -0700215# Enumerate target prebuilts to avoid linker warnings like
216# Dialer (java:sdk) should not link to dialer-guava (java:platform)
217include $(CLEAR_VARS)
218
219LOCAL_MODULE_CLASS := JAVA_LIBRARIES
Zachary Heidepriem9f39c2f2017-11-10 15:07:54 -0800220LOCAL_MODULE := dialer-guava-target
221LOCAL_SDK_VERSION := current
zachh3fcd7082018-01-08 20:10:30 +0000222LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/23.0/guava-23.0.jar
Zachary Heidepriem9f39c2f2017-11-10 15:07:54 -0800223LOCAL_UNINSTALLABLE_MODULE := true
224
225include $(BUILD_PREBUILT)
226
227include $(CLEAR_VARS)
228
229LOCAL_MODULE_CLASS := JAVA_LIBRARIES
Zachary Heidepriem922cbed2017-11-11 18:49:27 -0800230LOCAL_MODULE := dialer-error-prone-target
231LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800232LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/errorprone/error_prone_annotations/2.0.18/error_prone_annotations-2.0.18.jar
Zachary Heidepriem922cbed2017-11-11 18:49:27 -0800233LOCAL_UNINSTALLABLE_MODULE := true
234
235include $(BUILD_PREBUILT)
236
237include $(CLEAR_VARS)
238
239LOCAL_MODULE_CLASS := JAVA_LIBRARIES
Eric Erfanian90508232017-03-24 09:31:16 -0700240LOCAL_MODULE := dialer-dagger2-target
241LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800242LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.7/dagger-2.7.jar
Eric Erfanian90508232017-03-24 09:31:16 -0700243LOCAL_UNINSTALLABLE_MODULE := true
244
245include $(BUILD_PREBUILT)
246
247include $(CLEAR_VARS)
248
249LOCAL_MODULE_CLASS := JAVA_LIBRARIES
250LOCAL_MODULE := dialer-disklrucache-target
251LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800252LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/disklrucache/SNAPSHOT/disklrucache-SNAPSHOT.jar
Eric Erfanian90508232017-03-24 09:31:16 -0700253LOCAL_UNINSTALLABLE_MODULE := true
254
255include $(BUILD_PREBUILT)
256
257include $(CLEAR_VARS)
258
259LOCAL_MODULE_CLASS := JAVA_LIBRARIES
260LOCAL_MODULE := dialer-gifdecoder-target
261LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800262LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/gifdecoder/SNAPSHOT/gifdecoder-SNAPSHOT.jar
Eric Erfanian90508232017-03-24 09:31:16 -0700263LOCAL_UNINSTALLABLE_MODULE := true
264
265include $(BUILD_PREBUILT)
266
267include $(CLEAR_VARS)
268
269LOCAL_MODULE_CLASS := JAVA_LIBRARIES
270LOCAL_MODULE := dialer-glide-target
271LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800272LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/glide/SNAPSHOT/glide-SNAPSHOT.jar
Eric Erfanian90508232017-03-24 09:31:16 -0700273LOCAL_UNINSTALLABLE_MODULE := true
274
275include $(BUILD_PREBUILT)
276
277include $(CLEAR_VARS)
278
279LOCAL_MODULE_CLASS := JAVA_LIBRARIES
Ta-wei Yenea7ea2b2018-02-08 18:03:40 -0800280LOCAL_MODULE := dialer-glide-annotation-target
281LOCAL_SDK_VERSION := current
282LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/annotation/SNAPSHOT/annotation-SNAPSHOT.jar
283LOCAL_UNINSTALLABLE_MODULE := true
284
285include $(BUILD_PREBUILT)
286
287include $(CLEAR_VARS)
288
289LOCAL_MODULE_CLASS := JAVA_LIBRARIES
Eric Erfanian90508232017-03-24 09:31:16 -0700290LOCAL_MODULE := dialer-javax-annotation-api-target
291LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800292LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2.jar
Eric Erfanian90508232017-03-24 09:31:16 -0700293LOCAL_UNINSTALLABLE_MODULE := true
294
295include $(BUILD_PREBUILT)
296
297include $(CLEAR_VARS)
298
299LOCAL_MODULE_CLASS := JAVA_LIBRARIES
300LOCAL_MODULE := dialer-libshortcutbadger-target
301LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800302LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/me/leolin/ShortcutBadger/1.1.13/ShortcutBadger-1.1.13.jar
Eric Erfanian90508232017-03-24 09:31:16 -0700303LOCAL_UNINSTALLABLE_MODULE := true
304
305include $(BUILD_PREBUILT)
306
307include $(CLEAR_VARS)
308
309LOCAL_MODULE_CLASS := JAVA_LIBRARIES
310LOCAL_MODULE := dialer-javax-inject-target
311LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800312LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar
Eric Erfanian90508232017-03-24 09:31:16 -0700313LOCAL_UNINSTALLABLE_MODULE := true
314
315include $(BUILD_PREBUILT)
316
Eric Erfanianccca3152017-02-22 16:32:36 -0800317include $(CLEAR_VARS)
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700318
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700319LOCAL_MODULE_CLASS := JAVA_LIBRARIES
320LOCAL_MODULE := dialer-commons-io-target
321LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800322LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700323LOCAL_UNINSTALLABLE_MODULE := true
324
325include $(BUILD_PREBUILT)
326
327include $(CLEAR_VARS)
Eric Erfanian8369df02017-05-03 10:27:13 -0700328
329LOCAL_MODULE_CLASS := JAVA_LIBRARIES
330LOCAL_MODULE := dialer-mime4j-core-target
331LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800332LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/org/apache/james/apache-mime4j-core/0.7.2/apache-mime4j-core-0.7.2.jar
Eric Erfanian8369df02017-05-03 10:27:13 -0700333LOCAL_UNINSTALLABLE_MODULE := true
334
335include $(BUILD_PREBUILT)
336
337include $(CLEAR_VARS)
338
339LOCAL_MODULE_CLASS := JAVA_LIBRARIES
340LOCAL_MODULE := dialer-mime4j-dom-target
341LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800342LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/org/apache/james/apache-mime4j-dom/0.7.2/apache-mime4j-dom-0.7.2.jar
Eric Erfanian8369df02017-05-03 10:27:13 -0700343LOCAL_UNINSTALLABLE_MODULE := true
344
345include $(BUILD_PREBUILT)
346
Ta-wei Yen6af9c022017-05-25 14:57:51 -0700347include $(CLEAR_VARS)
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700348
349LOCAL_MODULE_CLASS := JAVA_LIBRARIES
350LOCAL_MODULE := dialer-grpc-core-target
351LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800352LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-core/1.0.3/grpc-core-1.0.3.jar
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700353LOCAL_UNINSTALLABLE_MODULE := true
354
355include $(BUILD_PREBUILT)
356
357include $(CLEAR_VARS)
358
359LOCAL_MODULE_CLASS := JAVA_LIBRARIES
360LOCAL_MODULE := dialer-grpc-okhttp-target
361LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800362LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-okhttp/1.0.3/grpc-okhttp-1.0.3.jar
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700363LOCAL_UNINSTALLABLE_MODULE := true
364
365include $(BUILD_PREBUILT)
366
367include $(CLEAR_VARS)
368
369LOCAL_MODULE_CLASS := JAVA_LIBRARIES
370LOCAL_MODULE := dialer-grpc-protobuf-lite-target
371LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800372LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-protobuf-lite/1.0.3/grpc-protobuf-lite-1.0.3.jar
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700373LOCAL_UNINSTALLABLE_MODULE := true
374
375include $(BUILD_PREBUILT)
376
377include $(CLEAR_VARS)
378
379LOCAL_MODULE_CLASS := JAVA_LIBRARIES
380LOCAL_MODULE := dialer-grpc-stub-target
381LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800382LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-stub/1.0.3/grpc-stub-1.0.3.jar
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700383LOCAL_UNINSTALLABLE_MODULE := true
384
385include $(BUILD_PREBUILT)
386
387include $(CLEAR_VARS)
388
389LOCAL_MODULE_CLASS := JAVA_LIBRARIES
390LOCAL_MODULE := dialer-grpc-all-target
391LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800392LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-all/1.0.3/grpc-all-1.0.3.jar
Eric Erfanian91ce7d22017-06-05 13:35:02 -0700393LOCAL_UNINSTALLABLE_MODULE := true
394
395include $(BUILD_PREBUILT)
396
397include $(CLEAR_VARS)
Eric Erfanianea7890c2017-06-19 12:40:59 -0700398
Eric Erfanian842a9772017-06-22 09:39:08 -0700399LOCAL_MODULE_CLASS := JAVA_LIBRARIES
400LOCAL_MODULE := dialer-grpc-context-target
401LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800402LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-context/1.0.3/grpc-context-1.0.3.jar
Eric Erfanian842a9772017-06-22 09:39:08 -0700403LOCAL_UNINSTALLABLE_MODULE := true
404
405include $(BUILD_PREBUILT)
406
Eric Erfanianfc0eb8c2017-08-31 06:57:16 -0700407include $(CLEAR_VARS)
Roland Levillain05d63612017-08-24 14:41:12 +0100408
409LOCAL_MODULE_CLASS := JAVA_LIBRARIES
410LOCAL_MODULE := dialer-auto-value-target
411LOCAL_SDK_VERSION := current
zachh3fcd7082018-01-08 20:10:30 +0000412LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/auto/value/auto-value/1.5.2/auto-value-1.5.2.jar
Roland Levillain05d63612017-08-24 14:41:12 +0100413LOCAL_UNINSTALLABLE_MODULE := true
414
415include $(BUILD_PREBUILT)
416
417include $(CLEAR_VARS)
roldenburg9c9175f2018-02-15 15:22:24 -0800418
419LOCAL_MODULE_CLASS := JAVA_LIBRARIES
420LOCAL_MODULE := dialer-zxing-target
421LOCAL_SDK_VERSION := current
422LOCAL_SRC_FILES := ../../../external/zxing/core/core.jar
423LOCAL_UNINSTALLABLE_MODULE := true
424
425include $(BUILD_PREBUILT)
426
427include $(CLEAR_VARS)
428
Weijia Xucac4acd2018-03-23 18:13:41 -0700429LOCAL_MODULE := dialer-rootcomponentprocessor
430LOCAL_MODULE_CLASS := JAVA_LIBRARIES
431LOCAL_IS_HOST_MODULE := true
432BASE_DIR := java/com/android
433
434LOCAL_SRC_FILES := \
Zachary Heidepriem7acd97f2018-04-06 12:28:36 -0700435 $(call all-java-files-under, $(BASE_DIR)/dialer/rootcomponentgenerator) \
436 $(BASE_DIR)/dialer/inject/DialerRootComponent.java \
437 $(BASE_DIR)/dialer/inject/DialerVariant.java \
438 $(BASE_DIR)/dialer/inject/HasRootComponent.java \
439 $(BASE_DIR)/dialer/inject/IncludeInDialerRoot.java \
440 $(BASE_DIR)/dialer/inject/InstallIn.java \
441 $(BASE_DIR)/dialer/inject/RootComponentGeneratorMetadata.java
Weijia Xucac4acd2018-03-23 18:13:41 -0700442
443LOCAL_STATIC_JAVA_LIBRARIES := \
444 dialer-guava \
445 dialer-dagger2 \
Tony Mantler0f8a28a2018-03-29 14:23:58 -0700446 javapoet-prebuilt-jar \
Weijia Xucac4acd2018-03-23 18:13:41 -0700447 dialer-auto-service \
448 dialer-auto-common \
449 dialer-javax-annotation-api \
450 dialer-javax-inject
451
Weijia Xucac4acd2018-03-23 18:13:41 -0700452LOCAL_JAVA_LANGUAGE_VERSION := 1.8
453
454include $(BUILD_HOST_JAVA_LIBRARY)
455
456include $(CLEAR_VARS)