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