summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Android.mk2
-rw-r--r--proguard.flags14
2 files changed, 16 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 1af02c2e9..d574b3f71 100644
--- a/Android.mk
+++ b/Android.mk
@@ -10,6 +10,8 @@ LOCAL_STATIC_JAVA_LIBRARIES := com.android.phone.common
LOCAL_PACKAGE_NAME := Contacts
LOCAL_CERTIFICATE := shared
+LOCAL_PROGUARD_FLAGS := -include $(LOCAL_PATH)/proguard.flags
+
include $(BUILD_PACKAGE)
# Use the folloing include to make our test apk.
diff --git a/proguard.flags b/proguard.flags
new file mode 100644
index 000000000..6cc704cc0
--- /dev/null
+++ b/proguard.flags
@@ -0,0 +1,14 @@
+-keep class com.android.contacts.model.Sources {
+ public <init>(...);
+}
+
+# TODO: Instead of keeping the following two functions we could as well just remove them completely
+# as they are only used in test code
+
+-keep class com.android.contacts.model.EntityDelta {
+ public com.android.contacts.model.EntityDelta$ValuesDelta getSuperPrimaryEntry(java.lang.String,boolean);
+}
+
+-keep class com.android.contacts.model.EntityDelta$ValuesDelta {
+ public android.content.ContentValues getAfter();
+}