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