summaryrefslogtreecommitdiff
path: root/proguard.flags
diff options
context:
space:
mode:
Diffstat (limited to 'proguard.flags')
-rw-r--r--proguard.flags16
1 files changed, 16 insertions, 0 deletions
diff --git a/proguard.flags b/proguard.flags
new file mode 100644
index 000000000..9e9ed6441
--- /dev/null
+++ b/proguard.flags
@@ -0,0 +1,16 @@
+# Xml files containing onClick (menus and layouts) require that proguard not
+# remove their handlers.
+-keepclassmembers class * extends android.app.Activity {
+ public void *(android.view.View);
+ public void *(android.view.MenuItem);
+}
+
+# Any class or method annotated with NeededForTesting or NeededForReflection.
+-keep @com.android.contacts.test.NeededForTesting class *
+-keep @com.android.contacts.test.NeededForReflection class *
+-keepclassmembers class * {
+@com.android.contacts.test.NeededForTesting *;
+@com.android.contacts.test.NeededForReflection *;
+}
+
+-verbose