OSDN Git Service

Fix ProGuard errors.
authorYing Wang <wangying@google.com>
Wed, 16 Dec 2015 19:42:37 +0000 (11:42 -0800)
committerYing Wang <wangying@google.com>
Wed, 16 Dec 2015 19:42:37 +0000 (11:42 -0800)
Fix ProGuard error "library class references program class" and
references of org.apache.http.legacy symobls.

Change-Id: I3a6e915b08ca5eabfa863580f489e3bf6b968e9f

Android.mk
proguard.flags

index 97570dc..745a2ad 100644 (file)
@@ -32,6 +32,9 @@ LOCAL_SDK_VERSION := current
 
 LOCAL_PROGUARD_FLAG_FILES := proguard.flags
 
+# Guava uses deprecated org.apache.http.legacy classes.
+LOCAL_JAVA_LIBRARIES += org.apache.http.legacy
+
 LOCAL_JNI_SHARED_LIBRARIES := libjni_tinyplanet libjni_jpegutil
 
 include $(BUILD_PACKAGE)
index 624af0f..9054a9a 100644 (file)
@@ -43,3 +43,6 @@
   *** closeSilently(...);
 }
 
+# TODO: remove or rename android.util.Pools.java from our source.
+-dontwarn android.util.Pools*
+