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 | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 18 | # Primary dialer module sources. |
| 19 | SRC_DIRS := \ |
| 20 | $(BASE_DIR)/contacts/common \ |
| 21 | $(BASE_DIR)/dialer \ |
Eric Erfanian | 2f1c758 | 2017-06-19 11:26:01 -0700 | [diff] [blame] | 22 | $(BASE_DIR)/dialershared \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 23 | $(BASE_DIR)/incallui \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 24 | $(BASE_DIR)/voicemail |
| 25 | |
| 26 | # Exclude files incompatible with AOSP. |
| 27 | EXCLUDE_FILES := \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 28 | $(BASE_DIR)/incallui/calllocation/impl/AuthException.java \ |
| 29 | $(BASE_DIR)/incallui/calllocation/impl/CallLocationImpl.java \ |
| 30 | $(BASE_DIR)/incallui/calllocation/impl/CallLocationModule.java \ |
| 31 | $(BASE_DIR)/incallui/calllocation/impl/DownloadMapImageTask.java \ |
| 32 | $(BASE_DIR)/incallui/calllocation/impl/GoogleLocationSettingHelper.java \ |
| 33 | $(BASE_DIR)/incallui/calllocation/impl/HttpFetcher.java \ |
| 34 | $(BASE_DIR)/incallui/calllocation/impl/LocationFragment.java \ |
| 35 | $(BASE_DIR)/incallui/calllocation/impl/LocationHelper.java \ |
| 36 | $(BASE_DIR)/incallui/calllocation/impl/LocationPresenter.java \ |
| 37 | $(BASE_DIR)/incallui/calllocation/impl/LocationUrlBuilder.java \ |
| 38 | $(BASE_DIR)/incallui/calllocation/impl/ReverseGeocodeTask.java \ |
| 39 | $(BASE_DIR)/incallui/calllocation/impl/TrafficStatsTags.java \ |
| 40 | $(BASE_DIR)/incallui/maps/impl/MapsImpl.java \ |
| 41 | $(BASE_DIR)/incallui/maps/impl/MapsModule.java \ |
Eric Erfanian | 2f1c758 | 2017-06-19 11:26:01 -0700 | [diff] [blame] | 42 | $(BASE_DIR)/incallui/maps/impl/StaticMapFragment.java \ |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 43 | |
Paul Duffin | 922b108 | 2017-05-05 15:05:47 +0100 | [diff] [blame] | 44 | # Exclude testing only class, not used anywhere here |
| 45 | EXCLUDE_FILES += \ |
| 46 | $(BASE_DIR)/contacts/common/format/testing/SpannedTestUtils.java |
| 47 | |
Eric Erfanian | 3bb9641 | 2017-06-22 10:19:53 -0700 | [diff] [blame] | 48 | # Exclude build variants for now |
| 49 | EXCLUDE_FILES += \ |
| 50 | $(BASE_DIR)/dialer/buildtype/bugfood/BuildTypeAccessorImpl.java \ |
| 51 | $(BASE_DIR)/dialer/buildtype/dogfood/BuildTypeAccessorImpl.java \ |
| 52 | $(BASE_DIR)/dialer/buildtype/fishfood/BuildTypeAccessorImpl.java \ |
| 53 | $(BASE_DIR)/dialer/buildtype/test/BuildTypeAccessorImpl.java \ |
| 54 | $(BASE_DIR)/dialer/constants/googledialer/ConstantsImpl.java \ |
| 55 | $(BASE_DIR)/dialer/binary/google/GoogleStubDialerRootComponent.java \ |
Eric Erfanian | 939cdf0 | 2017-08-29 08:49:58 -0700 | [diff] [blame] | 56 | $(BASE_DIR)/dialer/binary/google/GoogleStubDialerApplication.java \ |
| 57 | |
| 58 | # * b/62875795 |
| 59 | ifneq ($(wildcard packages/apps/Dialer/java/com/android/voicemail/impl/com/google/internal/communications/voicemailtranscription/v1/VoicemailTranscriptionServiceGrpc.java),) |
| 60 | $(error Please remove file packages/apps/Dialer/java/com/android/voicemail/impl/com/google/internal/communications/voicemailtranscription/v1/VoicemailTranscriptionServiceGrpc.java ) |
| 61 | endif |
Eric Erfanian | 3bb9641 | 2017-06-22 10:19:53 -0700 | [diff] [blame] | 62 | |
Eric Erfanian | 415dffb | 2017-08-08 14:32:39 -0700 | [diff] [blame] | 63 | EXCLUDE_RESOURCE_DIRECTORIES := \ |
| 64 | java/com/android/incallui/maps/impl/res \ |
| 65 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 66 | # All Dialers resources. |
Eric Erfanian | 415dffb | 2017-08-08 14:32:39 -0700 | [diff] [blame] | 67 | RES_DIRS := $(call all-subdir-named-dirs,res,.) |
| 68 | RES_DIRS := $(filter-out $(EXCLUDE_RESOURCE_DIRECTORIES),$(RES_DIRS)) |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 69 | |
Eric Erfanian | 415dffb | 2017-08-08 14:32:39 -0700 | [diff] [blame] | 70 | EXCLUDE_MANIFESTS := \ |
| 71 | $(BASE_DIR)/dialer/binary/aosp/testing/AndroidManifest.xml \ |
| 72 | $(BASE_DIR)/dialer/binary/google/AndroidManifest.xml \ |
| 73 | $(BASE_DIR)/incallui/calllocation/impl/AndroidManifest.xml \ |
| 74 | $(BASE_DIR)/incallui/maps/impl/AndroidManifest.xml \ |
Eric Erfanian | 9b4d9bc | 2017-07-25 09:36:19 -0700 | [diff] [blame] | 75 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 76 | # Dialer manifest files to merge. |
Eric Erfanian | 415dffb | 2017-08-08 14:32:39 -0700 | [diff] [blame] | 77 | DIALER_MANIFEST_FILES := $(call all-named-files-under,AndroidManifest.xml,.) |
| 78 | DIALER_MANIFEST_FILES := $(filter-out $(EXCLUDE_MANIFESTS),$(DIALER_MANIFEST_FILES)) |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 79 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 80 | # Merge all manifest files. |
| 81 | LOCAL_FULL_LIBS_MANIFEST_FILES := \ |
| 82 | $(addprefix $(LOCAL_PATH)/, $(DIALER_MANIFEST_FILES)) |
Eric Erfanian | 1ce79b9 | 2017-08-10 08:11:26 -0700 | [diff] [blame] | 83 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 84 | LOCAL_SRC_FILES := $(call all-java-files-under, $(SRC_DIRS)) |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 85 | LOCAL_SRC_FILES += $(call all-proto-files-under, $(SRC_DIRS)) |
Eric Erfanian | 939cdf0 | 2017-08-29 08:49:58 -0700 | [diff] [blame] | 86 | LOCAL_SRC_FILES := $(filter-out $(EXCLUDE_FILES),$(LOCAL_SRC_FILES)) |
Eric Erfanian | 9bdb503 | 2017-08-09 15:37:50 -0700 | [diff] [blame] | 87 | |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 88 | LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH) |
| 89 | |
Eric Erfanian | 415dffb | 2017-08-08 14:32:39 -0700 | [diff] [blame] | 90 | LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(RES_DIRS)) |
| 91 | |
| 92 | define all-dialer-manifest-extra-packages |
| 93 | $(shell cd $(LOCAL_PATH) ; \ |
| 94 | find . -type f -name "AndroidManifest.xml" | uniq | sort | cut -c 8- | rev | cut -c 21- | rev | sed 's/\//./g') |
| 95 | endef |
| 96 | |
| 97 | EXCLUDE_EXTRA_PACKAGES := \ |
| 98 | com.android.dialer.binary.aosp.testing \ |
| 99 | com.android.dialer.binary.google \ |
| 100 | com.android.incallui.calllocation.impl \ |
| 101 | com.android.incallui.maps.impl \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 102 | |
| 103 | # We specify each package explicitly to glob resource files. |
Eric Erfanian | 415dffb | 2017-08-08 14:32:39 -0700 | [diff] [blame] | 104 | LOCAL_AAPT_FLAGS := $(call all-dialer-manifest-extra-packages) |
| 105 | LOCAL_AAPT_FLAGS := $(filter-out $(EXCLUDE_EXTRA_PACKAGES),$(LOCAL_AAPT_FLAGS)) |
| 106 | LOCAL_AAPT_FLAGS := $(addprefix --extra-packages , $(LOCAL_AAPT_FLAGS)) |
| 107 | LOCAL_AAPT_FLAGS += \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 108 | --auto-add-overlay \ |
Eric Erfanian | 3bb9641 | 2017-06-22 10:19:53 -0700 | [diff] [blame] | 109 | --extra-packages me.leolin.shortcutbadger \ |
| 110 | |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 111 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 112 | android-common \ |
Eric Erfanian | 2f1c758 | 2017-06-19 11:26:01 -0700 | [diff] [blame] | 113 | android-support-dynamic-animation \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 114 | com.android.vcard \ |
Eric Erfanian | cdb1edf | 2017-03-29 10:20:40 -0700 | [diff] [blame] | 115 | dialer-commons-io-target \ |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 116 | dialer-dagger2-target \ |
| 117 | dialer-disklrucache-target \ |
| 118 | dialer-gifdecoder-target \ |
| 119 | dialer-glide-target \ |
Eric Erfanian | 1ce79b9 | 2017-08-10 08:11:26 -0700 | [diff] [blame] | 120 | dialer-grpc-all-target \ |
| 121 | dialer-grpc-context-target \ |
| 122 | dialer-grpc-core-target \ |
Eric Erfanian | 2f1c758 | 2017-06-19 11:26:01 -0700 | [diff] [blame] | 123 | dialer-grpc-okhttp-target \ |
| 124 | dialer-grpc-protobuf-lite-target \ |
Eric Erfanian | 1ce79b9 | 2017-08-10 08:11:26 -0700 | [diff] [blame] | 125 | dialer-grpc-stub-target \ |
Eric Erfanian | 3bb9641 | 2017-06-22 10:19:53 -0700 | [diff] [blame] | 126 | dialer-guava-target \ |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 127 | dialer-javax-annotation-api-target \ |
| 128 | dialer-javax-inject-target \ |
| 129 | dialer-libshortcutbadger-target \ |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 130 | dialer-mime4j-core-target \ |
| 131 | dialer-mime4j-dom-target \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 132 | jsr305 \ |
| 133 | libphonenumber \ |
Eric Erfanian | cdb1edf | 2017-03-29 10:20:40 -0700 | [diff] [blame] | 134 | volley \ |
Eric Erfanian | d3dafe1 | 2017-08-18 08:20:09 -0700 | [diff] [blame] | 135 | libbackup \ |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 136 | |
Alan Viverette | b5870be | 2017-04-26 11:15:10 -0400 | [diff] [blame] | 137 | LOCAL_STATIC_ANDROID_LIBRARIES := \ |
Eric Erfanian | 415dffb | 2017-08-08 14:32:39 -0700 | [diff] [blame] | 138 | android-support-core-ui \ |
Alan Viverette | b5870be | 2017-04-26 11:15:10 -0400 | [diff] [blame] | 139 | android-support-design \ |
| 140 | android-support-transition \ |
| 141 | android-support-v13 \ |
| 142 | android-support-v4 \ |
| 143 | android-support-v7-appcompat \ |
| 144 | android-support-v7-cardview \ |
| 145 | android-support-v7-recyclerview \ |
| 146 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 147 | LOCAL_JAVA_LIBRARIES := \ |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 148 | dialer-auto-value \ |
Eric Erfanian | 3bb9641 | 2017-06-22 10:19:53 -0700 | [diff] [blame] | 149 | org.apache.http.legacy \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 150 | |
| 151 | # Libraries needed by the compiler (JACK) to generate code. |
| 152 | PROCESSOR_LIBRARIES_TARGET := \ |
Eric Erfanian | 3bb9641 | 2017-06-22 10:19:53 -0700 | [diff] [blame] | 153 | dialer-auto-value \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 154 | dialer-dagger2 \ |
Eric Erfanian | 3bb9641 | 2017-06-22 10:19:53 -0700 | [diff] [blame] | 155 | dialer-dagger2-compiler \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 156 | dialer-dagger2-producers \ |
| 157 | dialer-guava \ |
| 158 | dialer-javax-annotation-api \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 159 | dialer-javax-inject \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 160 | |
| 161 | # Resolve the jar paths. |
| 162 | PROCESSOR_JARS := $(call java-lib-deps, $(PROCESSOR_LIBRARIES_TARGET)) |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 163 | # Necessary for annotation processors to work correctly. |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 164 | LOCAL_ADDITIONAL_DEPENDENCIES += $(PROCESSOR_JARS) |
| 165 | |
| 166 | LOCAL_JACK_FLAGS += --processorpath $(call normalize-path-list,$(PROCESSOR_JARS)) |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 167 | LOCAL_JAVACFLAGS += -processorpath $(call normalize-path-list,$(PROCESSOR_JARS)) |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 168 | |
Eric Erfanian | 2f1c758 | 2017-06-19 11:26:01 -0700 | [diff] [blame] | 169 | |
| 170 | # Begin Bug: 37077388 |
Eric Erfanian | 3bb9641 | 2017-06-22 10:19:53 -0700 | [diff] [blame] | 171 | LOCAL_DX_FLAGS := --multi-dex |
Eric Erfanian | 2f1c758 | 2017-06-19 11:26:01 -0700 | [diff] [blame] | 172 | LOCAL_JACK_FLAGS := --multi-dex native |
| 173 | |
| 174 | LOCAL_PROGUARD_ENABLED := disabled |
| 175 | ifdef LOCAL_JACK_ENABLED |
Eric Erfanian | 415dffb | 2017-08-08 14:32:39 -0700 | [diff] [blame] | 176 | |
| 177 | define all-dialer-proguard-flags |
| 178 | $(shell cd $(LOCAL_PATH) ; \ |
| 179 | find . -type f -name "proguard.*flags" | uniq | sort | cut -c 3-) |
| 180 | endef |
| 181 | |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 182 | # Proguard includes |
Eric Erfanian | 415dffb | 2017-08-08 14:32:39 -0700 | [diff] [blame] | 183 | LOCAL_PROGUARD_FLAG_FILES := $(call all-dialer-proguard-flags) |
Colin Cross | f939e09 | 2017-04-05 22:13:40 -0700 | [diff] [blame] | 184 | LOCAL_PROGUARD_ENABLED := custom |
| 185 | |
Colin Cross | f939e09 | 2017-04-05 22:13:40 -0700 | [diff] [blame] | 186 | LOCAL_PROGUARD_ENABLED += optimization |
| 187 | endif |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 188 | |
Eric Erfanian | 2f1c758 | 2017-06-19 11:26:01 -0700 | [diff] [blame] | 189 | # End Bug: 37077388 |
| 190 | |
Ta-wei Yen | 6640e55 | 2017-04-21 15:33:24 -0700 | [diff] [blame] | 191 | LOCAL_SDK_VERSION := system_current |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 192 | LOCAL_MODULE_TAGS := optional |
| 193 | LOCAL_PACKAGE_NAME := Dialer |
| 194 | LOCAL_CERTIFICATE := shared |
| 195 | LOCAL_PRIVILEGED_MODULE := true |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 196 | LOCAL_USE_AAPT2 := true |
| 197 | |
| 198 | # b/37483961 - Jack Not Compiling Dagger Class Properly |
| 199 | LOCAL_JACK_ENABLED := javac_frontend |
| 200 | |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 201 | include $(BUILD_PACKAGE) |
| 202 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 203 | # Cleanup local state |
| 204 | BASE_DIR := |
| 205 | SRC_DIRS := |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 206 | EXCLUDE_FILES := |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 207 | RES_DIRS := |
| 208 | DIALER_MANIFEST_FILES := |
| 209 | PROCESSOR_LIBRARIES_TARGET := |
| 210 | PROCESSOR_JARS := |
Eric Erfanian | 415dffb | 2017-08-08 14:32:39 -0700 | [diff] [blame] | 211 | EXCLUDE_MANIFESTS := |
| 212 | EXCLUDE_EXTRA_PACKAGES := |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 213 | |
| 214 | # Create references to prebuilt libraries. |
| 215 | include $(CLEAR_VARS) |
| 216 | |
| 217 | LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \ |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 218 | dialer-auto-value:../../../prebuilts/tools/common/m2/repository/com/google/auto/value/auto-value/1.3/auto-value-1.3$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
Eric Erfanian | 3bb9641 | 2017-06-22 10:19:53 -0700 | [diff] [blame] | 219 | dialer-dagger2-compiler:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger-compiler/2.7/dagger-compiler-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 220 | dialer-dagger2:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.7/dagger-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 221 | dialer-dagger2-producers:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger-producers/2.7/dagger-producers-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
Eric Erfanian | 2f1c758 | 2017-06-19 11:26:01 -0700 | [diff] [blame] | 222 | dialer-grpc-all:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-all/1.0.3/grpc-all-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 223 | dialer-grpc-core:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-core/1.0.3/grpc-core-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 224 | dialer-grpc-okhttp:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-okhttp/1.0.3/grpc-okhttp-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 225 | dialer-grpc-protobuf-lite:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-protobuf-lite/1.0.3/grpc-protobuf-lite-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 226 | dialer-grpc-stub:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-stub/1.0.3/grpc-stub-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
Eric Erfanian | 3bb9641 | 2017-06-22 10:19:53 -0700 | [diff] [blame] | 227 | dialer-guava:../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/20.0/guava-20.0$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 228 | dialer-javax-annotation-api:../../../prebuilts/tools/common/m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 229 | dialer-javax-inject:../../../prebuilts/tools/common/m2/repository/javax/inject/javax.inject/1/javax.inject-1$(COMMON_JAVA_PACKAGE_SUFFIX) |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 230 | |
| 231 | include $(BUILD_MULTI_PREBUILT) |
| 232 | |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 233 | # Enumerate target prebuilts to avoid linker warnings like |
| 234 | # Dialer (java:sdk) should not link to dialer-guava (java:platform) |
| 235 | include $(CLEAR_VARS) |
| 236 | |
| 237 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 238 | LOCAL_MODULE := dialer-guava-target |
| 239 | LOCAL_SDK_VERSION := current |
| 240 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/20.0/guava-20.0$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 241 | LOCAL_UNINSTALLABLE_MODULE := true |
| 242 | |
| 243 | include $(BUILD_PREBUILT) |
| 244 | |
| 245 | include $(CLEAR_VARS) |
| 246 | |
| 247 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 248 | LOCAL_MODULE := dialer-dagger2-target |
| 249 | LOCAL_SDK_VERSION := current |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 250 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.7/dagger-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) |
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 |
Lujiang Xue | c0f306f | 2017-05-25 09:10:58 -0700 | [diff] [blame] | 260 | LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/disklrucache/SNAPSHOT/disklrucache-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX) |
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 |
Lujiang Xue | c0f306f | 2017-05-25 09:10:58 -0700 | [diff] [blame] | 270 | LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/gifdecoder/SNAPSHOT/gifdecoder-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX) |
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 |
Lujiang Xue | c0f306f | 2017-05-25 09:10:58 -0700 | [diff] [blame] | 280 | LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/glide/SNAPSHOT/glide-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX) |
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 |
| 288 | LOCAL_MODULE := dialer-javax-annotation-api-target |
| 289 | LOCAL_SDK_VERSION := current |
| 290 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 291 | LOCAL_UNINSTALLABLE_MODULE := true |
| 292 | |
| 293 | include $(BUILD_PREBUILT) |
| 294 | |
| 295 | include $(CLEAR_VARS) |
| 296 | |
| 297 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 298 | LOCAL_MODULE := dialer-libshortcutbadger-target |
| 299 | LOCAL_SDK_VERSION := current |
| 300 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/me/leolin/ShortcutBadger/1.1.13/ShortcutBadger-1.1.13$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 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-javax-inject-target |
| 309 | LOCAL_SDK_VERSION := current |
| 310 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/inject/javax.inject/1/javax.inject-1$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 311 | LOCAL_UNINSTALLABLE_MODULE := true |
| 312 | |
| 313 | include $(BUILD_PREBUILT) |
| 314 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 315 | include $(CLEAR_VARS) |
Eric Erfanian | cdb1edf | 2017-03-29 10:20:40 -0700 | [diff] [blame] | 316 | |
Eric Erfanian | cdb1edf | 2017-03-29 10:20:40 -0700 | [diff] [blame] | 317 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 318 | LOCAL_MODULE := dialer-commons-io-target |
| 319 | LOCAL_SDK_VERSION := current |
| 320 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/commons-io/commons-io/2.4/commons-io-2.4$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 321 | LOCAL_UNINSTALLABLE_MODULE := true |
| 322 | |
| 323 | include $(BUILD_PREBUILT) |
| 324 | |
| 325 | include $(CLEAR_VARS) |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 326 | |
| 327 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 328 | LOCAL_MODULE := dialer-mime4j-core-target |
| 329 | LOCAL_SDK_VERSION := current |
| 330 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/org/apache/james/apache-mime4j-core/0.7.2/apache-mime4j-core-0.7.2$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 331 | LOCAL_UNINSTALLABLE_MODULE := true |
| 332 | |
| 333 | include $(BUILD_PREBUILT) |
| 334 | |
| 335 | include $(CLEAR_VARS) |
| 336 | |
| 337 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 338 | LOCAL_MODULE := dialer-mime4j-dom-target |
| 339 | LOCAL_SDK_VERSION := current |
| 340 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/org/apache/james/apache-mime4j-dom/0.7.2/apache-mime4j-dom-0.7.2$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 341 | LOCAL_UNINSTALLABLE_MODULE := true |
| 342 | |
| 343 | include $(BUILD_PREBUILT) |
| 344 | |
Ta-wei Yen | 6af9c02 | 2017-05-25 14:57:51 -0700 | [diff] [blame] | 345 | include $(CLEAR_VARS) |
Eric Erfanian | 2f1c758 | 2017-06-19 11:26:01 -0700 | [diff] [blame] | 346 | |
| 347 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 348 | LOCAL_MODULE := dialer-grpc-core-target |
| 349 | LOCAL_SDK_VERSION := current |
| 350 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-core/1.0.3/grpc-core-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 351 | LOCAL_UNINSTALLABLE_MODULE := true |
| 352 | |
| 353 | include $(BUILD_PREBUILT) |
| 354 | |
| 355 | include $(CLEAR_VARS) |
| 356 | |
| 357 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 358 | LOCAL_MODULE := dialer-grpc-okhttp-target |
| 359 | LOCAL_SDK_VERSION := current |
| 360 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-okhttp/1.0.3/grpc-okhttp-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 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-protobuf-lite-target |
| 369 | LOCAL_SDK_VERSION := current |
| 370 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-protobuf-lite/1.0.3/grpc-protobuf-lite-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 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-stub-target |
| 379 | LOCAL_SDK_VERSION := current |
| 380 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-stub/1.0.3/grpc-stub-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 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-all-target |
| 389 | LOCAL_SDK_VERSION := current |
| 390 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-all/1.0.3/grpc-all-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 391 | LOCAL_UNINSTALLABLE_MODULE := true |
| 392 | |
| 393 | include $(BUILD_PREBUILT) |
| 394 | |
| 395 | include $(CLEAR_VARS) |
Eric Erfanian | 3bb9641 | 2017-06-22 10:19:53 -0700 | [diff] [blame] | 396 | |
| 397 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 398 | LOCAL_MODULE := dialer-grpc-context-target |
| 399 | LOCAL_SDK_VERSION := current |
| 400 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-context/1.0.3/grpc-context-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 401 | LOCAL_UNINSTALLABLE_MODULE := true |
| 402 | |
| 403 | include $(BUILD_PREBUILT) |
| 404 | |
wangqi | 6967466 | 2017-06-29 13:14:51 -0700 | [diff] [blame] | 405 | include $(CLEAR_VARS) |