Use the commons-io prebuilt instead of local source for voicemail.
Test: treehugger, make
This change removes part of the local apache source and depends on
a prebuilt jar.
In a future change, the rest of the apache code will be removed
from Dialer and also replaced with prebuilts.
Bug: 35391680
Change-Id: Ibbc4e62a23f30de5a11c07cb6cc4c00365c4f415
diff --git a/Android.mk b/Android.mk
index 2310d56..b5b7198 100644
--- a/Android.mk
+++ b/Android.mk
@@ -219,6 +219,7 @@
android-support-v7-cardview \
android-support-v7-recyclerview \
com.android.vcard \
+ dialer-commons-io-target \
dialer-dagger2-target \
dialer-disklrucache-target \
dialer-gifdecoder-target \
@@ -230,7 +231,7 @@
jsr305 \
libphonenumber \
libprotobuf-java-nano \
- volley
+ volley \
LOCAL_JAVA_LIBRARIES := \
org.apache.http.legacy \
@@ -376,3 +377,15 @@
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE_CLASS := JAVA_LIBRARIES
+LOCAL_MODULE := dialer-commons-io-target
+LOCAL_SDK_VERSION := current
+LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/commons-io/commons-io/2.4/commons-io-2.4$(COMMON_JAVA_PACKAGE_SUFFIX)
+LOCAL_UNINSTALLABLE_MODULE := true
+
+include $(BUILD_PREBUILT)
+
+include $(CLEAR_VARS)