Merge "Use platform error_prone_annotations, add it to dialer-rootcomponentprocessor"
diff --git a/Android.mk b/Android.mk
index 7736fd6..c842c5e 100644
--- a/Android.mk
+++ b/Android.mk
@@ -122,11 +122,11 @@
dialer-mime4j-dom-target \
dialer-okhttp-target \
dialer-okio-target \
- dialer-error-prone-target \
dialer-guava-target \
dialer-glide-target \
dialer-glide-annotation-target \
dialer-zxing-target \
+ error_prone_annotations \
jsr305 \
libbackup \
libphonenumber \
@@ -229,19 +229,6 @@
include $(CLEAR_VARS)
LOCAL_MODULE_CLASS := JAVA_LIBRARIES
-LOCAL_MODULE := dialer-error-prone-target
-LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
-LOCAL_LICENSE_CONDITIONS := notice
-LOCAL_NOTICE_FILE := $(LOCAL_PATH)/LICENSE
-LOCAL_SDK_VERSION := current
-LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/errorprone/error_prone_annotations/2.0.18/error_prone_annotations-2.0.18.jar
-LOCAL_UNINSTALLABLE_MODULE := true
-
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-
-LOCAL_MODULE_CLASS := JAVA_LIBRARIES
LOCAL_MODULE := dialer-dagger2-target
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
@@ -552,7 +539,8 @@
auto_service_annotations \
auto_common \
dialer-javax-annotation-api \
- dialer-javax-inject
+ dialer-javax-inject \
+ error_prone_annotations
LOCAL_JAVA_LANGUAGE_VERSION := 1.8