Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 1 | # Local modifications: |
Eric Erfanian | 9a090c8 | 2017-03-16 19:22:24 -0700 | [diff] [blame] | 2 | # * 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 Erfanian | 3bb9641 | 2017-06-22 10:19:53 -0700 | [diff] [blame] | 5 | # * 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 Erfanian | 3bb9641 | 2017-06-22 10:19:53 -0700 | [diff] [blame] | 7 | # * b/37077388 temporarily disable proguard with javac |
Eric Erfanian | 939cdf0 | 2017-08-29 08:49:58 -0700 | [diff] [blame] | 8 | # * 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 Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 12 | LOCAL_PATH:= $(call my-dir) |
| 13 | include $(CLEAR_VARS) |
| 14 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 15 | # The base directory for Dialer sources. |
| 16 | BASE_DIR := java/com/android |
Jay Shrauner | 0f68a71 | 2014-07-16 16:13:57 -0700 | [diff] [blame] | 17 | |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 18 | # Exclude files incompatible with AOSP. |
| 19 | EXCLUDE_FILES := \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 20 | $(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 Erfanian | 2f1c758 | 2017-06-19 11:26:01 -0700 | [diff] [blame] | 34 | $(BASE_DIR)/incallui/maps/impl/StaticMapFragment.java \ |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 35 | |
Paul Duffin | 922b108 | 2017-05-05 15:05:47 +0100 | [diff] [blame] | 36 | # Exclude testing only class, not used anywhere here |
| 37 | EXCLUDE_FILES += \ |
| 38 | $(BASE_DIR)/contacts/common/format/testing/SpannedTestUtils.java |
| 39 | |
Weijia Xu | cac4acd | 2018-03-23 18:13:41 -0700 | [diff] [blame] | 40 | # Exclude rootcomponentgenerator |
| 41 | EXCLUDE_FILES += \ |
Zachary Heidepriem | 7acd97f | 2018-04-06 12:28:36 -0700 | [diff] [blame] | 42 | $(call all-java-files-under, $(BASE_DIR)/dialer/rootcomponentgenerator) \ |
| 43 | $(call all-java-files-under, $(BASE_DIR)/dialer/inject/demo) |
Weijia Xu | cac4acd | 2018-03-23 18:13:41 -0700 | [diff] [blame] | 44 | |
Eric Erfanian | 3bb9641 | 2017-06-22 10:19:53 -0700 | [diff] [blame] | 45 | # Exclude build variants for now |
| 46 | EXCLUDE_FILES += \ |
Eric Erfanian | 3bb9641 | 2017-06-22 10:19:53 -0700 | [diff] [blame] | 47 | $(BASE_DIR)/dialer/constants/googledialer/ConstantsImpl.java \ |
| 48 | $(BASE_DIR)/dialer/binary/google/GoogleStubDialerRootComponent.java \ |
Eric Erfanian | 939cdf0 | 2017-08-29 08:49:58 -0700 | [diff] [blame] | 49 | $(BASE_DIR)/dialer/binary/google/GoogleStubDialerApplication.java \ |
| 50 | |
| 51 | # * b/62875795 |
| 52 | ifneq ($(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 ) |
| 54 | endif |
Eric Erfanian | 3bb9641 | 2017-06-22 10:19:53 -0700 | [diff] [blame] | 55 | |
Eric Erfanian | 415dffb | 2017-08-08 14:32:39 -0700 | [diff] [blame] | 56 | EXCLUDE_RESOURCE_DIRECTORIES := \ |
| 57 | java/com/android/incallui/maps/impl/res \ |
| 58 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 59 | # All Dialers resources. |
Eric Erfanian | 415dffb | 2017-08-08 14:32:39 -0700 | [diff] [blame] | 60 | RES_DIRS := $(call all-subdir-named-dirs,res,.) |
| 61 | RES_DIRS := $(filter-out $(EXCLUDE_RESOURCE_DIRECTORIES),$(RES_DIRS)) |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 62 | |
Eric Erfanian | 415dffb | 2017-08-08 14:32:39 -0700 | [diff] [blame] | 63 | EXCLUDE_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 Erfanian | 9b4d9bc | 2017-07-25 09:36:19 -0700 | [diff] [blame] | 68 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 69 | # Dialer manifest files to merge. |
Eric Erfanian | 415dffb | 2017-08-08 14:32:39 -0700 | [diff] [blame] | 70 | DIALER_MANIFEST_FILES := $(call all-named-files-under,AndroidManifest.xml,.) |
| 71 | DIALER_MANIFEST_FILES := $(filter-out $(EXCLUDE_MANIFESTS),$(DIALER_MANIFEST_FILES)) |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 72 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 73 | # Merge all manifest files. |
| 74 | LOCAL_FULL_LIBS_MANIFEST_FILES := \ |
| 75 | $(addprefix $(LOCAL_PATH)/, $(DIALER_MANIFEST_FILES)) |
Eric Erfanian | 1ce79b9 | 2017-08-10 08:11:26 -0700 | [diff] [blame] | 76 | |
sail | 3bcea98 | 2017-09-03 13:57:22 -0700 | [diff] [blame] | 77 | LOCAL_SRC_FILES := $(call all-java-files-under, $(BASE_DIR)) |
| 78 | LOCAL_SRC_FILES += $(call all-proto-files-under, $(BASE_DIR)) |
weijiaxu | 4bf1692 | 2018-06-22 12:52:21 -0700 | [diff] [blame] | 79 | LOCAL_SRC_FILES += $(call all-Iaidl-files-under, $(BASE_DIR)) |
Eric Erfanian | 939cdf0 | 2017-08-29 08:49:58 -0700 | [diff] [blame] | 80 | LOCAL_SRC_FILES := $(filter-out $(EXCLUDE_FILES),$(LOCAL_SRC_FILES)) |
Eric Erfanian | 9bdb503 | 2017-08-09 15:37:50 -0700 | [diff] [blame] | 81 | |
weijiaxu | 4bf1692 | 2018-06-22 12:52:21 -0700 | [diff] [blame] | 82 | LOCAL_AIDL_INCLUDES := $(call all-Iaidl-files-under, $(BASE_DIR)) |
| 83 | |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 84 | LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH) |
| 85 | |
Eric Erfanian | 415dffb | 2017-08-08 14:32:39 -0700 | [diff] [blame] | 86 | LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(RES_DIRS)) |
| 87 | |
Eric Erfanian | 415dffb | 2017-08-08 14:32:39 -0700 | [diff] [blame] | 88 | EXCLUDE_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 Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 93 | |
| 94 | # We specify each package explicitly to glob resource files. |
Zachary Heidepriem | 95fafa8 | 2017-11-13 11:11:32 -0800 | [diff] [blame] | 95 | include ${LOCAL_PATH}/packages.mk |
Eric Erfanian | 5aaa949 | 2017-08-29 17:33:38 -0700 | [diff] [blame] | 96 | |
Eric Erfanian | 415dffb | 2017-08-08 14:32:39 -0700 | [diff] [blame] | 97 | LOCAL_AAPT_FLAGS := $(filter-out $(EXCLUDE_EXTRA_PACKAGES),$(LOCAL_AAPT_FLAGS)) |
| 98 | LOCAL_AAPT_FLAGS := $(addprefix --extra-packages , $(LOCAL_AAPT_FLAGS)) |
| 99 | LOCAL_AAPT_FLAGS += \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 100 | --auto-add-overlay \ |
Eric Erfanian | 3bb9641 | 2017-06-22 10:19:53 -0700 | [diff] [blame] | 101 | --extra-packages me.leolin.shortcutbadger \ |
| 102 | |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 103 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 104 | android-common \ |
Eric Erfanian | 2f1c758 | 2017-06-19 11:26:01 -0700 | [diff] [blame] | 105 | android-support-dynamic-animation \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 106 | com.android.vcard \ |
Eric Erfanian | cdb1edf | 2017-03-29 10:20:40 -0700 | [diff] [blame] | 107 | dialer-commons-io-target \ |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 108 | dialer-dagger2-target \ |
| 109 | dialer-disklrucache-target \ |
| 110 | dialer-gifdecoder-target \ |
| 111 | dialer-glide-target \ |
Eric Erfanian | 1ce79b9 | 2017-08-10 08:11:26 -0700 | [diff] [blame] | 112 | dialer-grpc-all-target \ |
| 113 | dialer-grpc-context-target \ |
| 114 | dialer-grpc-core-target \ |
Eric Erfanian | 2f1c758 | 2017-06-19 11:26:01 -0700 | [diff] [blame] | 115 | dialer-grpc-okhttp-target \ |
| 116 | dialer-grpc-protobuf-lite-target \ |
Eric Erfanian | 1ce79b9 | 2017-08-10 08:11:26 -0700 | [diff] [blame] | 117 | dialer-grpc-stub-target \ |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 118 | dialer-javax-annotation-api-target \ |
| 119 | dialer-javax-inject-target \ |
| 120 | dialer-libshortcutbadger-target \ |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 121 | dialer-mime4j-core-target \ |
| 122 | dialer-mime4j-dom-target \ |
Zachary Heidepriem | 922cbed | 2017-11-11 18:49:27 -0800 | [diff] [blame] | 123 | dialer-error-prone-target \ |
Zachary Heidepriem | 9f39c2f | 2017-11-10 15:07:54 -0800 | [diff] [blame] | 124 | dialer-guava-target \ |
Ta-wei Yen | ea7ea2b | 2018-02-08 18:03:40 -0800 | [diff] [blame] | 125 | dialer-glide-target \ |
| 126 | dialer-glide-annotation-target \ |
roldenburg | 9c9175f | 2018-02-15 15:22:24 -0800 | [diff] [blame] | 127 | dialer-zxing-target \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 128 | jsr305 \ |
Eric Erfanian | 9bfcb3d | 2017-09-05 10:53:21 -0700 | [diff] [blame] | 129 | libbackup \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 130 | libphonenumber \ |
Eric Erfanian | cdb1edf | 2017-03-29 10:20:40 -0700 | [diff] [blame] | 131 | volley \ |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 132 | |
Alan Viverette | b5870be | 2017-04-26 11:15:10 -0400 | [diff] [blame] | 133 | LOCAL_STATIC_ANDROID_LIBRARIES := \ |
Eric Erfanian | 415dffb | 2017-08-08 14:32:39 -0700 | [diff] [blame] | 134 | android-support-core-ui \ |
Alan Viverette | 423e293 | 2018-02-01 15:52:28 -0500 | [diff] [blame] | 135 | $(ANDROID_SUPPORT_DESIGN_TARGETS) \ |
Alan Viverette | b5870be | 2017-04-26 11:15:10 -0400 | [diff] [blame] | 136 | android-support-transition \ |
| 137 | android-support-v13 \ |
| 138 | android-support-v4 \ |
| 139 | android-support-v7-appcompat \ |
| 140 | android-support-v7-cardview \ |
| 141 | android-support-v7-recyclerview \ |
| 142 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 143 | LOCAL_JAVA_LIBRARIES := \ |
Roland Levillain | 05d6361 | 2017-08-24 14:41:12 +0100 | [diff] [blame] | 144 | dialer-auto-value-target \ |
Eric Erfanian | 3bb9641 | 2017-06-22 10:19:53 -0700 | [diff] [blame] | 145 | org.apache.http.legacy \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 146 | |
Roland Levillain | 05d6361 | 2017-08-24 14:41:12 +0100 | [diff] [blame] | 147 | LOCAL_ANNOTATION_PROCESSORS := \ |
Eric Erfanian | 3bb9641 | 2017-06-22 10:19:53 -0700 | [diff] [blame] | 148 | dialer-auto-value \ |
Tony Mantler | 0f8a28a | 2018-03-29 14:23:58 -0700 | [diff] [blame] | 149 | javapoet-prebuilt-jar \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 150 | dialer-dagger2 \ |
Eric Erfanian | 3bb9641 | 2017-06-22 10:19:53 -0700 | [diff] [blame] | 151 | dialer-dagger2-compiler \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 152 | dialer-dagger2-producers \ |
Ta-wei Yen | a8bbb35 | 2018-01-25 18:10:32 -0800 | [diff] [blame] | 153 | dialer-glide-annotation \ |
Ta-wei Yen | ea7ea2b | 2018-02-08 18:03:40 -0800 | [diff] [blame] | 154 | dialer-glide-compiler \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 155 | dialer-guava \ |
| 156 | dialer-javax-annotation-api \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 157 | dialer-javax-inject \ |
Weijia Xu | cac4acd | 2018-03-23 18:13:41 -0700 | [diff] [blame] | 158 | dialer-rootcomponentprocessor |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 159 | |
Roland Levillain | 05d6361 | 2017-08-24 14:41:12 +0100 | [diff] [blame] | 160 | LOCAL_ANNOTATION_PROCESSOR_CLASSES := \ |
Zachary Heidepriem | 7acd97f | 2018-04-06 12:28:36 -0700 | [diff] [blame] | 161 | com.google.auto.value.processor.AutoValueProcessor,dagger.internal.codegen.ComponentProcessor,com.bumptech.glide.annotation.compiler.GlideAnnotationProcessor,com.android.dialer.rootcomponentgenerator.RootComponentProcessor |
Eric Erfanian | 2f1c758 | 2017-06-19 11:26:01 -0700 | [diff] [blame] | 162 | |
| 163 | # Begin Bug: 37077388 |
Eric Erfanian | 3bb9641 | 2017-06-22 10:19:53 -0700 | [diff] [blame] | 164 | LOCAL_DX_FLAGS := --multi-dex |
Eric Erfanian | 2f1c758 | 2017-06-19 11:26:01 -0700 | [diff] [blame] | 165 | LOCAL_JACK_FLAGS := --multi-dex native |
| 166 | |
| 167 | LOCAL_PROGUARD_ENABLED := disabled |
| 168 | ifdef LOCAL_JACK_ENABLED |
Eric Erfanian | 415dffb | 2017-08-08 14:32:39 -0700 | [diff] [blame] | 169 | |
Eric Erfanian | 415dffb | 2017-08-08 14:32:39 -0700 | [diff] [blame] | 170 | |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 171 | # Proguard includes |
sail | 3bcea98 | 2017-09-03 13:57:22 -0700 | [diff] [blame] | 172 | LOCAL_PROGUARD_FLAG_FILES := $(call all-named-files-under,proguard.*flags,$(BASE_DIR)) |
Colin Cross | f939e09 | 2017-04-05 22:13:40 -0700 | [diff] [blame] | 173 | LOCAL_PROGUARD_ENABLED := custom |
| 174 | |
Colin Cross | f939e09 | 2017-04-05 22:13:40 -0700 | [diff] [blame] | 175 | LOCAL_PROGUARD_ENABLED += optimization |
| 176 | endif |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 177 | |
Eric Erfanian | 2f1c758 | 2017-06-19 11:26:01 -0700 | [diff] [blame] | 178 | # End Bug: 37077388 |
| 179 | |
Ta-wei Yen | 6640e55 | 2017-04-21 15:33:24 -0700 | [diff] [blame] | 180 | LOCAL_SDK_VERSION := system_current |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 181 | LOCAL_MODULE_TAGS := optional |
| 182 | LOCAL_PACKAGE_NAME := Dialer |
| 183 | LOCAL_CERTIFICATE := shared |
| 184 | LOCAL_PRIVILEGED_MODULE := true |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 185 | LOCAL_USE_AAPT2 := true |
| 186 | |
| 187 | # b/37483961 - Jack Not Compiling Dagger Class Properly |
| 188 | LOCAL_JACK_ENABLED := javac_frontend |
| 189 | |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 190 | include $(BUILD_PACKAGE) |
| 191 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 192 | # Cleanup local state |
| 193 | BASE_DIR := |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 194 | EXCLUDE_FILES := |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 195 | RES_DIRS := |
| 196 | DIALER_MANIFEST_FILES := |
Eric Erfanian | 415dffb | 2017-08-08 14:32:39 -0700 | [diff] [blame] | 197 | EXCLUDE_MANIFESTS := |
| 198 | EXCLUDE_EXTRA_PACKAGES := |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 199 | |
| 200 | # Create references to prebuilt libraries. |
| 201 | include $(CLEAR_VARS) |
| 202 | |
| 203 | LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \ |
zachh | 3fcd708 | 2018-01-08 20:10:30 +0000 | [diff] [blame] | 204 | dialer-auto-value:../../../prebuilts/tools/common/m2/repository/com/google/auto/value/auto-value/1.5.2/auto-value-1.5.2.jar \ |
Colin Cross | c87db95 | 2017-12-13 20:41:25 -0800 | [diff] [blame] | 205 | dialer-dagger2-compiler:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger-compiler/2.7/dagger-compiler-2.7.jar \ |
| 206 | dialer-dagger2:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.7/dagger-2.7.jar \ |
| 207 | dialer-dagger2-producers:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger-producers/2.7/dagger-producers-2.7.jar \ |
Ta-wei Yen | a8bbb35 | 2018-01-25 18:10:32 -0800 | [diff] [blame] | 208 | dialer-glide-annotation:../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/annotation/SNAPSHOT/annotation-SNAPSHOT.jar \ |
| 209 | dialer-glide-compiler:../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/compiler/SNAPSHOT/compiler-SNAPSHOT.jar \ |
Colin Cross | c87db95 | 2017-12-13 20:41:25 -0800 | [diff] [blame] | 210 | dialer-grpc-all:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-all/1.0.3/grpc-all-1.0.3.jar \ |
| 211 | dialer-grpc-core:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-core/1.0.3/grpc-core-1.0.3.jar \ |
| 212 | dialer-grpc-okhttp:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-okhttp/1.0.3/grpc-okhttp-1.0.3.jar \ |
| 213 | dialer-grpc-protobuf-lite:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-protobuf-lite/1.0.3/grpc-protobuf-lite-1.0.3.jar \ |
| 214 | dialer-grpc-stub:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-stub/1.0.3/grpc-stub-1.0.3.jar \ |
zachh | 3fcd708 | 2018-01-08 20:10:30 +0000 | [diff] [blame] | 215 | dialer-guava:../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/23.0/guava-23.0.jar \ |
Colin Cross | c87db95 | 2017-12-13 20:41:25 -0800 | [diff] [blame] | 216 | dialer-javax-annotation-api:../../../prebuilts/tools/common/m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2.jar \ |
Ta-wei Yen | ea7ea2b | 2018-02-08 18:03:40 -0800 | [diff] [blame] | 217 | dialer-javax-inject:../../../prebuilts/tools/common/m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar \ |
Weijia Xu | cac4acd | 2018-03-23 18:13:41 -0700 | [diff] [blame] | 218 | dialer-auto-service:../../../prebuilts/tools/common/m2/repository/com/google/auto/service/auto-service/1.0-rc2/auto-service-1.0-rc2.jar \ |
| 219 | dialer-auto-common:../../../prebuilts/tools/common/m2/repository/com/google/auto/auto-common/0.9/auto-common-0.9.jar \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 220 | |
Roland Levillain | 05d6361 | 2017-08-24 14:41:12 +0100 | [diff] [blame] | 221 | include $(BUILD_HOST_PREBUILT) |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 222 | |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 223 | # Enumerate target prebuilts to avoid linker warnings like |
| 224 | # Dialer (java:sdk) should not link to dialer-guava (java:platform) |
| 225 | include $(CLEAR_VARS) |
| 226 | |
| 227 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
Zachary Heidepriem | 9f39c2f | 2017-11-10 15:07:54 -0800 | [diff] [blame] | 228 | LOCAL_MODULE := dialer-guava-target |
| 229 | LOCAL_SDK_VERSION := current |
zachh | 3fcd708 | 2018-01-08 20:10:30 +0000 | [diff] [blame] | 230 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/23.0/guava-23.0.jar |
Zachary Heidepriem | 9f39c2f | 2017-11-10 15:07:54 -0800 | [diff] [blame] | 231 | LOCAL_UNINSTALLABLE_MODULE := true |
| 232 | |
| 233 | include $(BUILD_PREBUILT) |
| 234 | |
| 235 | include $(CLEAR_VARS) |
| 236 | |
| 237 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
Zachary Heidepriem | 922cbed | 2017-11-11 18:49:27 -0800 | [diff] [blame] | 238 | LOCAL_MODULE := dialer-error-prone-target |
| 239 | LOCAL_SDK_VERSION := current |
Colin Cross | c87db95 | 2017-12-13 20:41:25 -0800 | [diff] [blame] | 240 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/errorprone/error_prone_annotations/2.0.18/error_prone_annotations-2.0.18.jar |
Zachary Heidepriem | 922cbed | 2017-11-11 18:49:27 -0800 | [diff] [blame] | 241 | LOCAL_UNINSTALLABLE_MODULE := true |
| 242 | |
| 243 | include $(BUILD_PREBUILT) |
| 244 | |
| 245 | include $(CLEAR_VARS) |
| 246 | |
| 247 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 248 | LOCAL_MODULE := dialer-dagger2-target |
| 249 | LOCAL_SDK_VERSION := current |
Colin Cross | c87db95 | 2017-12-13 20:41:25 -0800 | [diff] [blame] | 250 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.7/dagger-2.7.jar |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 251 | LOCAL_UNINSTALLABLE_MODULE := true |
| 252 | |
| 253 | include $(BUILD_PREBUILT) |
| 254 | |
| 255 | include $(CLEAR_VARS) |
| 256 | |
| 257 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 258 | LOCAL_MODULE := dialer-disklrucache-target |
| 259 | LOCAL_SDK_VERSION := current |
Colin Cross | c87db95 | 2017-12-13 20:41:25 -0800 | [diff] [blame] | 260 | LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/disklrucache/SNAPSHOT/disklrucache-SNAPSHOT.jar |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 261 | LOCAL_UNINSTALLABLE_MODULE := true |
| 262 | |
| 263 | include $(BUILD_PREBUILT) |
| 264 | |
| 265 | include $(CLEAR_VARS) |
| 266 | |
| 267 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 268 | LOCAL_MODULE := dialer-gifdecoder-target |
| 269 | LOCAL_SDK_VERSION := current |
Colin Cross | c87db95 | 2017-12-13 20:41:25 -0800 | [diff] [blame] | 270 | LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/gifdecoder/SNAPSHOT/gifdecoder-SNAPSHOT.jar |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 271 | LOCAL_UNINSTALLABLE_MODULE := true |
| 272 | |
| 273 | include $(BUILD_PREBUILT) |
| 274 | |
| 275 | include $(CLEAR_VARS) |
| 276 | |
| 277 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 278 | LOCAL_MODULE := dialer-glide-target |
| 279 | LOCAL_SDK_VERSION := current |
Colin Cross | c87db95 | 2017-12-13 20:41:25 -0800 | [diff] [blame] | 280 | LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/glide/SNAPSHOT/glide-SNAPSHOT.jar |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 281 | LOCAL_UNINSTALLABLE_MODULE := true |
| 282 | |
| 283 | include $(BUILD_PREBUILT) |
| 284 | |
| 285 | include $(CLEAR_VARS) |
| 286 | |
| 287 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
Ta-wei Yen | ea7ea2b | 2018-02-08 18:03:40 -0800 | [diff] [blame] | 288 | LOCAL_MODULE := dialer-glide-annotation-target |
| 289 | LOCAL_SDK_VERSION := current |
| 290 | LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/annotation/SNAPSHOT/annotation-SNAPSHOT.jar |
| 291 | LOCAL_UNINSTALLABLE_MODULE := true |
| 292 | |
| 293 | include $(BUILD_PREBUILT) |
| 294 | |
| 295 | include $(CLEAR_VARS) |
| 296 | |
| 297 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 298 | LOCAL_MODULE := dialer-javax-annotation-api-target |
| 299 | LOCAL_SDK_VERSION := current |
Colin Cross | c87db95 | 2017-12-13 20:41:25 -0800 | [diff] [blame] | 300 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2.jar |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 301 | LOCAL_UNINSTALLABLE_MODULE := true |
| 302 | |
| 303 | include $(BUILD_PREBUILT) |
| 304 | |
| 305 | include $(CLEAR_VARS) |
| 306 | |
| 307 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 308 | LOCAL_MODULE := dialer-libshortcutbadger-target |
| 309 | LOCAL_SDK_VERSION := current |
Colin Cross | c87db95 | 2017-12-13 20:41:25 -0800 | [diff] [blame] | 310 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/me/leolin/ShortcutBadger/1.1.13/ShortcutBadger-1.1.13.jar |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 311 | LOCAL_UNINSTALLABLE_MODULE := true |
| 312 | |
| 313 | include $(BUILD_PREBUILT) |
| 314 | |
| 315 | include $(CLEAR_VARS) |
| 316 | |
| 317 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 318 | LOCAL_MODULE := dialer-javax-inject-target |
| 319 | LOCAL_SDK_VERSION := current |
Colin Cross | c87db95 | 2017-12-13 20:41:25 -0800 | [diff] [blame] | 320 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 321 | LOCAL_UNINSTALLABLE_MODULE := true |
| 322 | |
| 323 | include $(BUILD_PREBUILT) |
| 324 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 325 | include $(CLEAR_VARS) |
Eric Erfanian | cdb1edf | 2017-03-29 10:20:40 -0700 | [diff] [blame] | 326 | |
Eric Erfanian | cdb1edf | 2017-03-29 10:20:40 -0700 | [diff] [blame] | 327 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 328 | LOCAL_MODULE := dialer-commons-io-target |
| 329 | LOCAL_SDK_VERSION := current |
Colin Cross | c87db95 | 2017-12-13 20:41:25 -0800 | [diff] [blame] | 330 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar |
Eric Erfanian | cdb1edf | 2017-03-29 10:20:40 -0700 | [diff] [blame] | 331 | LOCAL_UNINSTALLABLE_MODULE := true |
| 332 | |
| 333 | include $(BUILD_PREBUILT) |
| 334 | |
| 335 | include $(CLEAR_VARS) |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 336 | |
| 337 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 338 | LOCAL_MODULE := dialer-mime4j-core-target |
| 339 | LOCAL_SDK_VERSION := current |
Colin Cross | c87db95 | 2017-12-13 20:41:25 -0800 | [diff] [blame] | 340 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/org/apache/james/apache-mime4j-core/0.7.2/apache-mime4j-core-0.7.2.jar |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 341 | LOCAL_UNINSTALLABLE_MODULE := true |
| 342 | |
| 343 | include $(BUILD_PREBUILT) |
| 344 | |
| 345 | include $(CLEAR_VARS) |
| 346 | |
| 347 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 348 | LOCAL_MODULE := dialer-mime4j-dom-target |
| 349 | LOCAL_SDK_VERSION := current |
Colin Cross | c87db95 | 2017-12-13 20:41:25 -0800 | [diff] [blame] | 350 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/org/apache/james/apache-mime4j-dom/0.7.2/apache-mime4j-dom-0.7.2.jar |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 351 | LOCAL_UNINSTALLABLE_MODULE := true |
| 352 | |
| 353 | include $(BUILD_PREBUILT) |
| 354 | |
Ta-wei Yen | 6af9c02 | 2017-05-25 14:57:51 -0700 | [diff] [blame] | 355 | include $(CLEAR_VARS) |
Eric Erfanian | 2f1c758 | 2017-06-19 11:26:01 -0700 | [diff] [blame] | 356 | |
| 357 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 358 | LOCAL_MODULE := dialer-grpc-core-target |
| 359 | LOCAL_SDK_VERSION := current |
Colin Cross | c87db95 | 2017-12-13 20:41:25 -0800 | [diff] [blame] | 360 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-core/1.0.3/grpc-core-1.0.3.jar |
Eric Erfanian | 2f1c758 | 2017-06-19 11:26:01 -0700 | [diff] [blame] | 361 | LOCAL_UNINSTALLABLE_MODULE := true |
| 362 | |
| 363 | include $(BUILD_PREBUILT) |
| 364 | |
| 365 | include $(CLEAR_VARS) |
| 366 | |
| 367 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 368 | LOCAL_MODULE := dialer-grpc-okhttp-target |
| 369 | LOCAL_SDK_VERSION := current |
Colin Cross | c87db95 | 2017-12-13 20:41:25 -0800 | [diff] [blame] | 370 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-okhttp/1.0.3/grpc-okhttp-1.0.3.jar |
Eric Erfanian | 2f1c758 | 2017-06-19 11:26:01 -0700 | [diff] [blame] | 371 | LOCAL_UNINSTALLABLE_MODULE := true |
| 372 | |
| 373 | include $(BUILD_PREBUILT) |
| 374 | |
| 375 | include $(CLEAR_VARS) |
| 376 | |
| 377 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 378 | LOCAL_MODULE := dialer-grpc-protobuf-lite-target |
| 379 | LOCAL_SDK_VERSION := current |
Colin Cross | c87db95 | 2017-12-13 20:41:25 -0800 | [diff] [blame] | 380 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-protobuf-lite/1.0.3/grpc-protobuf-lite-1.0.3.jar |
Eric Erfanian | 2f1c758 | 2017-06-19 11:26:01 -0700 | [diff] [blame] | 381 | LOCAL_UNINSTALLABLE_MODULE := true |
| 382 | |
| 383 | include $(BUILD_PREBUILT) |
| 384 | |
| 385 | include $(CLEAR_VARS) |
| 386 | |
| 387 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 388 | LOCAL_MODULE := dialer-grpc-stub-target |
| 389 | LOCAL_SDK_VERSION := current |
Colin Cross | c87db95 | 2017-12-13 20:41:25 -0800 | [diff] [blame] | 390 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-stub/1.0.3/grpc-stub-1.0.3.jar |
Eric Erfanian | 2f1c758 | 2017-06-19 11:26:01 -0700 | [diff] [blame] | 391 | LOCAL_UNINSTALLABLE_MODULE := true |
| 392 | |
| 393 | include $(BUILD_PREBUILT) |
| 394 | |
| 395 | include $(CLEAR_VARS) |
| 396 | |
| 397 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 398 | LOCAL_MODULE := dialer-grpc-all-target |
| 399 | LOCAL_SDK_VERSION := current |
Colin Cross | c87db95 | 2017-12-13 20:41:25 -0800 | [diff] [blame] | 400 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-all/1.0.3/grpc-all-1.0.3.jar |
Eric Erfanian | 2f1c758 | 2017-06-19 11:26:01 -0700 | [diff] [blame] | 401 | LOCAL_UNINSTALLABLE_MODULE := true |
| 402 | |
| 403 | include $(BUILD_PREBUILT) |
| 404 | |
| 405 | include $(CLEAR_VARS) |
Eric Erfanian | 3bb9641 | 2017-06-22 10:19:53 -0700 | [diff] [blame] | 406 | |
| 407 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 408 | LOCAL_MODULE := dialer-grpc-context-target |
| 409 | LOCAL_SDK_VERSION := current |
Colin Cross | c87db95 | 2017-12-13 20:41:25 -0800 | [diff] [blame] | 410 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-context/1.0.3/grpc-context-1.0.3.jar |
Eric Erfanian | 3bb9641 | 2017-06-22 10:19:53 -0700 | [diff] [blame] | 411 | LOCAL_UNINSTALLABLE_MODULE := true |
| 412 | |
| 413 | include $(BUILD_PREBUILT) |
| 414 | |
wangqi | 6967466 | 2017-06-29 13:14:51 -0700 | [diff] [blame] | 415 | include $(CLEAR_VARS) |
Roland Levillain | 05d6361 | 2017-08-24 14:41:12 +0100 | [diff] [blame] | 416 | |
| 417 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 418 | LOCAL_MODULE := dialer-auto-value-target |
| 419 | LOCAL_SDK_VERSION := current |
zachh | 3fcd708 | 2018-01-08 20:10:30 +0000 | [diff] [blame] | 420 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/auto/value/auto-value/1.5.2/auto-value-1.5.2.jar |
Roland Levillain | 05d6361 | 2017-08-24 14:41:12 +0100 | [diff] [blame] | 421 | LOCAL_UNINSTALLABLE_MODULE := true |
| 422 | |
| 423 | include $(BUILD_PREBUILT) |
| 424 | |
| 425 | include $(CLEAR_VARS) |
roldenburg | 9c9175f | 2018-02-15 15:22:24 -0800 | [diff] [blame] | 426 | |
| 427 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 428 | LOCAL_MODULE := dialer-zxing-target |
| 429 | LOCAL_SDK_VERSION := current |
| 430 | LOCAL_SRC_FILES := ../../../external/zxing/core/core.jar |
| 431 | LOCAL_UNINSTALLABLE_MODULE := true |
| 432 | |
| 433 | include $(BUILD_PREBUILT) |
| 434 | |
| 435 | include $(CLEAR_VARS) |
| 436 | |
Weijia Xu | cac4acd | 2018-03-23 18:13:41 -0700 | [diff] [blame] | 437 | LOCAL_MODULE := dialer-rootcomponentprocessor |
| 438 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 439 | LOCAL_IS_HOST_MODULE := true |
| 440 | BASE_DIR := java/com/android |
| 441 | |
| 442 | LOCAL_SRC_FILES := \ |
Zachary Heidepriem | 7acd97f | 2018-04-06 12:28:36 -0700 | [diff] [blame] | 443 | $(call all-java-files-under, $(BASE_DIR)/dialer/rootcomponentgenerator) \ |
| 444 | $(BASE_DIR)/dialer/inject/DialerRootComponent.java \ |
| 445 | $(BASE_DIR)/dialer/inject/DialerVariant.java \ |
| 446 | $(BASE_DIR)/dialer/inject/HasRootComponent.java \ |
| 447 | $(BASE_DIR)/dialer/inject/IncludeInDialerRoot.java \ |
| 448 | $(BASE_DIR)/dialer/inject/InstallIn.java \ |
| 449 | $(BASE_DIR)/dialer/inject/RootComponentGeneratorMetadata.java |
Weijia Xu | cac4acd | 2018-03-23 18:13:41 -0700 | [diff] [blame] | 450 | |
| 451 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
| 452 | dialer-guava \ |
| 453 | dialer-dagger2 \ |
Tony Mantler | 0f8a28a | 2018-03-29 14:23:58 -0700 | [diff] [blame] | 454 | javapoet-prebuilt-jar \ |
Weijia Xu | cac4acd | 2018-03-23 18:13:41 -0700 | [diff] [blame] | 455 | dialer-auto-service \ |
| 456 | dialer-auto-common \ |
| 457 | dialer-javax-annotation-api \ |
| 458 | dialer-javax-inject |
| 459 | |
Weijia Xu | cac4acd | 2018-03-23 18:13:41 -0700 | [diff] [blame] | 460 | LOCAL_JAVA_LANGUAGE_VERSION := 1.8 |
| 461 | |
| 462 | include $(BUILD_HOST_JAVA_LIBRARY) |
| 463 | |
| 464 | include $(CLEAR_VARS) |