blob: ab42a415fe72e371c6bc27f043a31c8ddf7f0eb0 [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 Erfanian3bb96412017-06-22 10:19:53 -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 Erfanian3bb96412017-06-22 10:19:53 -07007# * b/37077388 temporarily disable proguard with javac
Eric Erfanian939cdf02017-08-29 08:49:58 -07008# * b/62875795 include manually generated GRPC service class:
9# $ 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/" \
11# --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 Erfanian2f1c7582017-06-19 11:26:01 -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 Erfanian3bb96412017-06-22 10:19:53 -070045# Exclude build variants for now
46EXCLUDE_FILES += \
Eric Erfanian3bb96412017-06-22 10:19:53 -070047 $(BASE_DIR)/dialer/constants/googledialer/ConstantsImpl.java \
48 $(BASE_DIR)/dialer/binary/google/GoogleStubDialerRootComponent.java \
Eric Erfanian939cdf02017-08-29 08:49:58 -070049 $(BASE_DIR)/dialer/binary/google/GoogleStubDialerApplication.java \
50
51# * b/62875795
52ifneq ($(wildcard packages/apps/Dialer/java/com/android/voicemail/impl/com/google/internal/communications/voicemailtranscription/v1/VoicemailTranscriptionServiceGrpc.java),)
53$(error Please remove file packages/apps/Dialer/java/com/android/voicemail/impl/com/google/internal/communications/voicemailtranscription/v1/VoicemailTranscriptionServiceGrpc.java )
54endif
Eric Erfanian3bb96412017-06-22 10:19:53 -070055
Eric Erfanian415dffb2017-08-08 14:32:39 -070056EXCLUDE_RESOURCE_DIRECTORIES := \
57 java/com/android/incallui/maps/impl/res \
58
Eric Erfanianccca3152017-02-22 16:32:36 -080059# All Dialers resources.
Eric Erfanian415dffb2017-08-08 14:32:39 -070060RES_DIRS := $(call all-subdir-named-dirs,res,.)
61RES_DIRS := $(filter-out $(EXCLUDE_RESOURCE_DIRECTORIES),$(RES_DIRS))
Eric Erfaniand5e47f62017-03-15 14:41:07 -070062
Eric Erfanian415dffb2017-08-08 14:32:39 -070063EXCLUDE_MANIFESTS := \
64 $(BASE_DIR)/dialer/binary/aosp/testing/AndroidManifest.xml \
65 $(BASE_DIR)/dialer/binary/google/AndroidManifest.xml \
66 $(BASE_DIR)/incallui/calllocation/impl/AndroidManifest.xml \
67 $(BASE_DIR)/incallui/maps/impl/AndroidManifest.xml \
Eric Erfanian9b4d9bc2017-07-25 09:36:19 -070068
Eric Erfanianccca3152017-02-22 16:32:36 -080069# Dialer manifest files to merge.
Eric Erfanian415dffb2017-08-08 14:32:39 -070070DIALER_MANIFEST_FILES := $(call all-named-files-under,AndroidManifest.xml,.)
71DIALER_MANIFEST_FILES := $(filter-out $(EXCLUDE_MANIFESTS),$(DIALER_MANIFEST_FILES))
Chiao Cheng94b10b52012-08-17 16:59:12 -070072
Eric Erfanianccca3152017-02-22 16:32:36 -080073# Merge all manifest files.
74LOCAL_FULL_LIBS_MANIFEST_FILES := \
75 $(addprefix $(LOCAL_PATH)/, $(DIALER_MANIFEST_FILES))
Eric Erfanian1ce79b92017-08-10 08:11:26 -070076
sail3bcea982017-09-03 13:57:22 -070077LOCAL_SRC_FILES := $(call all-java-files-under, $(BASE_DIR))
78LOCAL_SRC_FILES += $(call all-proto-files-under, $(BASE_DIR))
weijiaxu4bf16922018-06-22 12:52:21 -070079LOCAL_SRC_FILES += $(call all-Iaidl-files-under, $(BASE_DIR))
Eric Erfanian939cdf02017-08-29 08:49:58 -070080LOCAL_SRC_FILES := $(filter-out $(EXCLUDE_FILES),$(LOCAL_SRC_FILES))
Eric Erfanian9bdb5032017-08-09 15:37:50 -070081
Danny Baumann5e52f922018-07-09 11:19:24 +020082LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/java
weijiaxu4bf16922018-06-22 12:52:21 -070083
Eric Erfanian8369df02017-05-03 10:27:13 -070084LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)
85
Eric Erfanian415dffb2017-08-08 14:32:39 -070086LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(RES_DIRS))
87
Eric Erfanian415dffb2017-08-08 14:32:39 -070088EXCLUDE_EXTRA_PACKAGES := \
89 com.android.dialer.binary.aosp.testing \
90 com.android.dialer.binary.google \
91 com.android.incallui.calllocation.impl \
92 com.android.incallui.maps.impl \
Eric Erfanianccca3152017-02-22 16:32:36 -080093
94# We specify each package explicitly to glob resource files.
Zachary Heidepriem95fafa82017-11-13 11:11:32 -080095include ${LOCAL_PATH}/packages.mk
Eric Erfanian5aaa9492017-08-29 17:33:38 -070096
Eric Erfanian415dffb2017-08-08 14:32:39 -070097LOCAL_AAPT_FLAGS := $(filter-out $(EXCLUDE_EXTRA_PACKAGES),$(LOCAL_AAPT_FLAGS))
98LOCAL_AAPT_FLAGS := $(addprefix --extra-packages , $(LOCAL_AAPT_FLAGS))
99LOCAL_AAPT_FLAGS += \
Eric Erfanianccca3152017-02-22 16:32:36 -0800100 --auto-add-overlay \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700101 --extra-packages me.leolin.shortcutbadger \
102
Chiao Cheng94b10b52012-08-17 16:59:12 -0700103LOCAL_STATIC_JAVA_LIBRARIES := \
Eric Erfanianccca3152017-02-22 16:32:36 -0800104 android-common \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700105 android-support-dynamic-animation \
Eric Erfanianccca3152017-02-22 16:32:36 -0800106 com.android.vcard \
Colin Cross23b83ca2017-12-13 20:57:34 -0800107 dialer-animal-sniffer-annotations-target \
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700108 dialer-commons-io-target \
Eric Erfanian90508232017-03-24 09:31:16 -0700109 dialer-dagger2-target \
110 dialer-disklrucache-target \
111 dialer-gifdecoder-target \
112 dialer-glide-target \
Eric Erfanian1ce79b92017-08-10 08:11:26 -0700113 dialer-grpc-all-target \
114 dialer-grpc-context-target \
115 dialer-grpc-core-target \
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700116 dialer-grpc-okhttp-target \
117 dialer-grpc-protobuf-lite-target \
Eric Erfanian1ce79b92017-08-10 08:11:26 -0700118 dialer-grpc-stub-target \
Colin Cross23b83ca2017-12-13 20:57:34 -0800119 dialer-j2objc-annotations-target \
Eric Erfanian90508232017-03-24 09:31:16 -0700120 dialer-javax-annotation-api-target \
121 dialer-javax-inject-target \
122 dialer-libshortcutbadger-target \
Eric Erfanian8369df02017-05-03 10:27:13 -0700123 dialer-mime4j-core-target \
124 dialer-mime4j-dom-target \
Colin Cross23b83ca2017-12-13 20:57:34 -0800125 dialer-okhttp-target \
126 dialer-okio-target \
Zachary Heidepriem922cbed2017-11-11 18:49:27 -0800127 dialer-error-prone-target \
Zachary Heidepriem9f39c2f2017-11-10 15:07:54 -0800128 dialer-guava-target \
Ta-wei Yenea7ea2b2018-02-08 18:03:40 -0800129 dialer-glide-target \
130 dialer-glide-annotation-target \
roldenburg9c9175f2018-02-15 15:22:24 -0800131 dialer-zxing-target \
Eric Erfanianccca3152017-02-22 16:32:36 -0800132 jsr305 \
Eric Erfanian9bfcb3d2017-09-05 10:53:21 -0700133 libbackup \
Eric Erfanianccca3152017-02-22 16:32:36 -0800134 libphonenumber \
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700135 volley \
Xiao-Long Chen8b7ecf22016-09-12 09:34:02 +0200136 org.lineageos.platform.internal
Chiao Cheng94b10b52012-08-17 16:59:12 -0700137
Alan Viveretteb5870be2017-04-26 11:15:10 -0400138LOCAL_STATIC_ANDROID_LIBRARIES := \
Eric Erfanian415dffb2017-08-08 14:32:39 -0700139 android-support-core-ui \
Alan Viverette423e2932018-02-01 15:52:28 -0500140 $(ANDROID_SUPPORT_DESIGN_TARGETS) \
Alan Viveretteb5870be2017-04-26 11:15:10 -0400141 android-support-transition \
142 android-support-v13 \
143 android-support-v4 \
144 android-support-v7-appcompat \
145 android-support-v7-cardview \
146 android-support-v7-recyclerview \
147
Eric Erfanianccca3152017-02-22 16:32:36 -0800148LOCAL_JAVA_LIBRARIES := \
Roland Levillain05d63612017-08-24 14:41:12 +0100149 dialer-auto-value-target \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700150 org.apache.http.legacy \
Eric Erfanianccca3152017-02-22 16:32:36 -0800151
Roland Levillain05d63612017-08-24 14:41:12 +0100152LOCAL_ANNOTATION_PROCESSORS := \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700153 dialer-auto-value \
Tony Mantler0f8a28a2018-03-29 14:23:58 -0700154 javapoet-prebuilt-jar \
Eric Erfanianccca3152017-02-22 16:32:36 -0800155 dialer-dagger2 \
Eric Erfanian3bb96412017-06-22 10:19:53 -0700156 dialer-dagger2-compiler \
Eric Erfanianccca3152017-02-22 16:32:36 -0800157 dialer-dagger2-producers \
Ta-wei Yena8bbb352018-01-25 18:10:32 -0800158 dialer-glide-annotation \
Ta-wei Yenea7ea2b2018-02-08 18:03:40 -0800159 dialer-glide-compiler \
Eric Erfanianccca3152017-02-22 16:32:36 -0800160 dialer-guava \
161 dialer-javax-annotation-api \
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700162 dialer-javax-inject \
Weijia Xucac4acd2018-03-23 18:13:41 -0700163 dialer-rootcomponentprocessor
Eric Erfanianccca3152017-02-22 16:32:36 -0800164
Roland Levillain05d63612017-08-24 14:41:12 +0100165LOCAL_ANNOTATION_PROCESSOR_CLASSES := \
Zachary Heidepriem7acd97f2018-04-06 12:28:36 -0700166 com.google.auto.value.processor.AutoValueProcessor,dagger.internal.codegen.ComponentProcessor,com.bumptech.glide.annotation.compiler.GlideAnnotationProcessor,com.android.dialer.rootcomponentgenerator.RootComponentProcessor
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700167
Eric Erfanian90508232017-03-24 09:31:16 -0700168# Proguard includes
Colin Cross23b83ca2017-12-13 20:57:34 -0800169LOCAL_PROGUARD_FLAG_FILES := proguard.flags $(call all-named-files-under,proguard.*flags,$(BASE_DIR))
Colin Crossf939e092017-04-05 22:13:40 -0700170LOCAL_PROGUARD_ENABLED := custom
171
Colin Crossf939e092017-04-05 22:13:40 -0700172LOCAL_PROGUARD_ENABLED += optimization
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700173
Eric Erfanianccca3152017-02-22 16:32:36 -0800174LOCAL_MODULE_TAGS := optional
175LOCAL_PACKAGE_NAME := Dialer
176LOCAL_CERTIFICATE := shared
177LOCAL_PRIVILEGED_MODULE := true
Anton Hansson4dccc472019-01-25 13:58:33 +0000178LOCAL_PRODUCT_MODULE := true
Danny Baumann0fcaf0b2017-10-12 13:00:32 +0200179LOCAL_PRIVATE_PLATFORM_APIS := true
Eric Erfanian8369df02017-05-03 10:27:13 -0700180LOCAL_USE_AAPT2 := true
Anton Hansson4dccc472019-01-25 13:58:33 +0000181LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.dialer
Michael Bestas3d362012020-05-06 20:59:08 +0300182LOCAL_REQUIRED_MODULES += privapp_whitelist_com.android.dialer-ext.xml
Eric Erfanian8369df02017-05-03 10:27:13 -0700183
Chiao Cheng94b10b52012-08-17 16:59:12 -0700184include $(BUILD_PACKAGE)
185
Michael Bestas3d362012020-05-06 20:59:08 +0300186include $(CLEAR_VARS)
187LOCAL_MODULE := privapp_whitelist_com.android.dialer-ext.xml
188LOCAL_MODULE_CLASS := ETC
189LOCAL_MODULE_TAGS := optional
190LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT_ETC)/permissions
191LOCAL_PRODUCT_MODULE := true
192LOCAL_SRC_FILES := $(LOCAL_MODULE)
193include $(BUILD_PREBUILT)
194
Eric Erfanianccca3152017-02-22 16:32:36 -0800195# Cleanup local state
196BASE_DIR :=
Eric Erfaniand5e47f62017-03-15 14:41:07 -0700197EXCLUDE_FILES :=
Eric Erfanianccca3152017-02-22 16:32:36 -0800198RES_DIRS :=
199DIALER_MANIFEST_FILES :=
Eric Erfanian415dffb2017-08-08 14:32:39 -0700200EXCLUDE_MANIFESTS :=
201EXCLUDE_EXTRA_PACKAGES :=
Eric Erfanianccca3152017-02-22 16:32:36 -0800202
203# Create references to prebuilt libraries.
204include $(CLEAR_VARS)
205
206LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \
zachh3fcd7082018-01-08 20:10:30 +0000207 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 -0800208 dialer-dagger2-compiler:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger-compiler/2.7/dagger-compiler-2.7.jar \
209 dialer-dagger2:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.7/dagger-2.7.jar \
210 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 -0800211 dialer-glide-annotation:../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/annotation/SNAPSHOT/annotation-SNAPSHOT.jar \
212 dialer-glide-compiler:../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/compiler/SNAPSHOT/compiler-SNAPSHOT.jar \
Colin Crossc87db952017-12-13 20:41:25 -0800213 dialer-grpc-all:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-all/1.0.3/grpc-all-1.0.3.jar \
214 dialer-grpc-core:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-core/1.0.3/grpc-core-1.0.3.jar \
215 dialer-grpc-okhttp:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-okhttp/1.0.3/grpc-okhttp-1.0.3.jar \
216 dialer-grpc-protobuf-lite:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-protobuf-lite/1.0.3/grpc-protobuf-lite-1.0.3.jar \
217 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 +0000218 dialer-guava:../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/23.0/guava-23.0.jar \
Colin Crossc87db952017-12-13 20:41:25 -0800219 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 -0800220 dialer-javax-inject:../../../prebuilts/tools/common/m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar \
Weijia Xucac4acd2018-03-23 18:13:41 -0700221 dialer-auto-service:../../../prebuilts/tools/common/m2/repository/com/google/auto/service/auto-service/1.0-rc2/auto-service-1.0-rc2.jar \
222 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 -0800223
Roland Levillain05d63612017-08-24 14:41:12 +0100224include $(BUILD_HOST_PREBUILT)
Eric Erfanianccca3152017-02-22 16:32:36 -0800225
Eric Erfanian90508232017-03-24 09:31:16 -0700226# Enumerate target prebuilts to avoid linker warnings like
227# Dialer (java:sdk) should not link to dialer-guava (java:platform)
228include $(CLEAR_VARS)
229
230LOCAL_MODULE_CLASS := JAVA_LIBRARIES
Zachary Heidepriem9f39c2f2017-11-10 15:07:54 -0800231LOCAL_MODULE := dialer-guava-target
232LOCAL_SDK_VERSION := current
zachh3fcd7082018-01-08 20:10:30 +0000233LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/23.0/guava-23.0.jar
Zachary Heidepriem9f39c2f2017-11-10 15:07:54 -0800234LOCAL_UNINSTALLABLE_MODULE := true
235
236include $(BUILD_PREBUILT)
237
238include $(CLEAR_VARS)
239
240LOCAL_MODULE_CLASS := JAVA_LIBRARIES
Zachary Heidepriem922cbed2017-11-11 18:49:27 -0800241LOCAL_MODULE := dialer-error-prone-target
242LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800243LOCAL_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 -0800244LOCAL_UNINSTALLABLE_MODULE := true
245
246include $(BUILD_PREBUILT)
247
248include $(CLEAR_VARS)
249
250LOCAL_MODULE_CLASS := JAVA_LIBRARIES
Eric Erfanian90508232017-03-24 09:31:16 -0700251LOCAL_MODULE := dialer-dagger2-target
252LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800253LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.7/dagger-2.7.jar
Eric Erfanian90508232017-03-24 09:31:16 -0700254LOCAL_UNINSTALLABLE_MODULE := true
255
256include $(BUILD_PREBUILT)
257
258include $(CLEAR_VARS)
259
260LOCAL_MODULE_CLASS := JAVA_LIBRARIES
261LOCAL_MODULE := dialer-disklrucache-target
262LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800263LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/disklrucache/SNAPSHOT/disklrucache-SNAPSHOT.jar
Eric Erfanian90508232017-03-24 09:31:16 -0700264LOCAL_UNINSTALLABLE_MODULE := true
265
266include $(BUILD_PREBUILT)
267
268include $(CLEAR_VARS)
269
270LOCAL_MODULE_CLASS := JAVA_LIBRARIES
271LOCAL_MODULE := dialer-gifdecoder-target
272LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800273LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/gifdecoder/SNAPSHOT/gifdecoder-SNAPSHOT.jar
Eric Erfanian90508232017-03-24 09:31:16 -0700274LOCAL_UNINSTALLABLE_MODULE := true
275
276include $(BUILD_PREBUILT)
277
278include $(CLEAR_VARS)
279
280LOCAL_MODULE_CLASS := JAVA_LIBRARIES
281LOCAL_MODULE := dialer-glide-target
282LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800283LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/glide/SNAPSHOT/glide-SNAPSHOT.jar
Eric Erfanian90508232017-03-24 09:31:16 -0700284LOCAL_UNINSTALLABLE_MODULE := true
285
286include $(BUILD_PREBUILT)
287
288include $(CLEAR_VARS)
289
290LOCAL_MODULE_CLASS := JAVA_LIBRARIES
Ta-wei Yenea7ea2b2018-02-08 18:03:40 -0800291LOCAL_MODULE := dialer-glide-annotation-target
292LOCAL_SDK_VERSION := current
293LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/annotation/SNAPSHOT/annotation-SNAPSHOT.jar
294LOCAL_UNINSTALLABLE_MODULE := true
295
296include $(BUILD_PREBUILT)
297
298include $(CLEAR_VARS)
299
300LOCAL_MODULE_CLASS := JAVA_LIBRARIES
Eric Erfanian90508232017-03-24 09:31:16 -0700301LOCAL_MODULE := dialer-javax-annotation-api-target
302LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800303LOCAL_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 -0700304LOCAL_UNINSTALLABLE_MODULE := true
305
306include $(BUILD_PREBUILT)
307
308include $(CLEAR_VARS)
309
310LOCAL_MODULE_CLASS := JAVA_LIBRARIES
311LOCAL_MODULE := dialer-libshortcutbadger-target
312LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800313LOCAL_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 -0700314LOCAL_UNINSTALLABLE_MODULE := true
315
316include $(BUILD_PREBUILT)
317
318include $(CLEAR_VARS)
319
320LOCAL_MODULE_CLASS := JAVA_LIBRARIES
321LOCAL_MODULE := dialer-javax-inject-target
322LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800323LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar
Eric Erfanian90508232017-03-24 09:31:16 -0700324LOCAL_UNINSTALLABLE_MODULE := true
325
326include $(BUILD_PREBUILT)
327
Eric Erfanianccca3152017-02-22 16:32:36 -0800328include $(CLEAR_VARS)
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700329
Eric Erfaniancdb1edf2017-03-29 10:20:40 -0700330LOCAL_MODULE_CLASS := JAVA_LIBRARIES
331LOCAL_MODULE := dialer-commons-io-target
332LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800333LOCAL_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 -0700334LOCAL_UNINSTALLABLE_MODULE := true
335
336include $(BUILD_PREBUILT)
337
338include $(CLEAR_VARS)
Eric Erfanian8369df02017-05-03 10:27:13 -0700339
340LOCAL_MODULE_CLASS := JAVA_LIBRARIES
341LOCAL_MODULE := dialer-mime4j-core-target
342LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800343LOCAL_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 -0700344LOCAL_UNINSTALLABLE_MODULE := true
345
346include $(BUILD_PREBUILT)
347
348include $(CLEAR_VARS)
349
350LOCAL_MODULE_CLASS := JAVA_LIBRARIES
351LOCAL_MODULE := dialer-mime4j-dom-target
352LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800353LOCAL_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 -0700354LOCAL_UNINSTALLABLE_MODULE := true
355
356include $(BUILD_PREBUILT)
357
Ta-wei Yen6af9c022017-05-25 14:57:51 -0700358include $(CLEAR_VARS)
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700359
360LOCAL_MODULE_CLASS := JAVA_LIBRARIES
361LOCAL_MODULE := dialer-grpc-core-target
362LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800363LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-core/1.0.3/grpc-core-1.0.3.jar
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700364LOCAL_UNINSTALLABLE_MODULE := true
365
366include $(BUILD_PREBUILT)
367
368include $(CLEAR_VARS)
369
370LOCAL_MODULE_CLASS := JAVA_LIBRARIES
371LOCAL_MODULE := dialer-grpc-okhttp-target
372LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800373LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-okhttp/1.0.3/grpc-okhttp-1.0.3.jar
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700374LOCAL_UNINSTALLABLE_MODULE := true
375
376include $(BUILD_PREBUILT)
377
378include $(CLEAR_VARS)
379
380LOCAL_MODULE_CLASS := JAVA_LIBRARIES
381LOCAL_MODULE := dialer-grpc-protobuf-lite-target
382LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800383LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-protobuf-lite/1.0.3/grpc-protobuf-lite-1.0.3.jar
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700384LOCAL_UNINSTALLABLE_MODULE := true
385
386include $(BUILD_PREBUILT)
387
388include $(CLEAR_VARS)
389
390LOCAL_MODULE_CLASS := JAVA_LIBRARIES
391LOCAL_MODULE := dialer-grpc-stub-target
392LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800393LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-stub/1.0.3/grpc-stub-1.0.3.jar
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700394LOCAL_UNINSTALLABLE_MODULE := true
395
396include $(BUILD_PREBUILT)
397
398include $(CLEAR_VARS)
399
400LOCAL_MODULE_CLASS := JAVA_LIBRARIES
401LOCAL_MODULE := dialer-grpc-all-target
402LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800403LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-all/1.0.3/grpc-all-1.0.3.jar
Eric Erfanian2f1c7582017-06-19 11:26:01 -0700404LOCAL_UNINSTALLABLE_MODULE := true
405
406include $(BUILD_PREBUILT)
407
408include $(CLEAR_VARS)
Eric Erfanian3bb96412017-06-22 10:19:53 -0700409
410LOCAL_MODULE_CLASS := JAVA_LIBRARIES
411LOCAL_MODULE := dialer-grpc-context-target
412LOCAL_SDK_VERSION := current
Colin Crossc87db952017-12-13 20:41:25 -0800413LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-context/1.0.3/grpc-context-1.0.3.jar
Eric Erfanian3bb96412017-06-22 10:19:53 -0700414LOCAL_UNINSTALLABLE_MODULE := true
415
416include $(BUILD_PREBUILT)
417
wangqi69674662017-06-29 13:14:51 -0700418include $(CLEAR_VARS)
Roland Levillain05d63612017-08-24 14:41:12 +0100419
420LOCAL_MODULE_CLASS := JAVA_LIBRARIES
421LOCAL_MODULE := dialer-auto-value-target
422LOCAL_SDK_VERSION := current
zachh3fcd7082018-01-08 20:10:30 +0000423LOCAL_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 +0100424LOCAL_UNINSTALLABLE_MODULE := true
425
426include $(BUILD_PREBUILT)
427
428include $(CLEAR_VARS)
roldenburg9c9175f2018-02-15 15:22:24 -0800429
430LOCAL_MODULE_CLASS := JAVA_LIBRARIES
431LOCAL_MODULE := dialer-zxing-target
432LOCAL_SDK_VERSION := current
433LOCAL_SRC_FILES := ../../../external/zxing/core/core.jar
434LOCAL_UNINSTALLABLE_MODULE := true
435
436include $(BUILD_PREBUILT)
437
438include $(CLEAR_VARS)
439
Colin Cross23b83ca2017-12-13 20:57:34 -0800440LOCAL_MODULE_CLASS := JAVA_LIBRARIES
441LOCAL_MODULE := dialer-okhttp-target
442LOCAL_SDK_VERSION := current
443LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/squareup/okhttp/okhttp/2.7.4/okhttp-2.7.4.jar
444LOCAL_UNINSTALLABLE_MODULE := true
445
446include $(BUILD_PREBUILT)
447
448include $(CLEAR_VARS)
449
450LOCAL_MODULE_CLASS := JAVA_LIBRARIES
451LOCAL_MODULE := dialer-okio-target
452LOCAL_SDK_VERSION := current
453LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/squareup/okio/okio/1.9.0/okio-1.9.0.jar
454LOCAL_UNINSTALLABLE_MODULE := true
455
456include $(BUILD_PREBUILT)
457
458include $(CLEAR_VARS)
459
460LOCAL_MODULE_CLASS := JAVA_LIBRARIES
461LOCAL_MODULE := dialer-j2objc-annotations-target
462LOCAL_SDK_VERSION := current
463LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar
464LOCAL_UNINSTALLABLE_MODULE := true
465
466include $(BUILD_PREBUILT)
467
468include $(CLEAR_VARS)
469
470LOCAL_MODULE_CLASS := JAVA_LIBRARIES
471LOCAL_MODULE := dialer-animal-sniffer-annotations-target
472LOCAL_SDK_VERSION := current
473LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar
474LOCAL_UNINSTALLABLE_MODULE := true
475
476include $(BUILD_PREBUILT)
477
478include $(CLEAR_VARS)
479
Weijia Xucac4acd2018-03-23 18:13:41 -0700480LOCAL_MODULE := dialer-rootcomponentprocessor
481LOCAL_MODULE_CLASS := JAVA_LIBRARIES
482LOCAL_IS_HOST_MODULE := true
483BASE_DIR := java/com/android
484
485LOCAL_SRC_FILES := \
Zachary Heidepriem7acd97f2018-04-06 12:28:36 -0700486 $(call all-java-files-under, $(BASE_DIR)/dialer/rootcomponentgenerator) \
487 $(BASE_DIR)/dialer/inject/DialerRootComponent.java \
488 $(BASE_DIR)/dialer/inject/DialerVariant.java \
489 $(BASE_DIR)/dialer/inject/HasRootComponent.java \
490 $(BASE_DIR)/dialer/inject/IncludeInDialerRoot.java \
491 $(BASE_DIR)/dialer/inject/InstallIn.java \
492 $(BASE_DIR)/dialer/inject/RootComponentGeneratorMetadata.java
Weijia Xucac4acd2018-03-23 18:13:41 -0700493
494LOCAL_STATIC_JAVA_LIBRARIES := \
495 dialer-guava \
496 dialer-dagger2 \
Tony Mantler0f8a28a2018-03-29 14:23:58 -0700497 javapoet-prebuilt-jar \
Weijia Xucac4acd2018-03-23 18:13:41 -0700498 dialer-auto-service \
499 dialer-auto-common \
500 dialer-javax-annotation-api \
501 dialer-javax-inject
502
Weijia Xucac4acd2018-03-23 18:13:41 -0700503LOCAL_JAVA_LANGUAGE_VERSION := 1.8
504
505include $(BUILD_HOST_JAVA_LIBRARY)
506
507include $(CLEAR_VARS)