summaryrefslogtreecommitdiffstats
path: root/proguard.flags
diff options
context:
space:
mode:
authorFlavio Lerda <flerda@google.com>2011-06-27 12:22:11 +0100
committerFlavio Lerda <flerda@google.com>2011-06-27 12:22:11 +0100
commit9431911b52789c69c61f8d5bb02a33ff3e1f6fba (patch)
tree87f12432c5217f62a9bb3702dd78ac1e2bf5da39 /proguard.flags
parentc1bef1ebaa686f6e1ee0d34ca8444704d922bd7c (diff)
downloadpackages_providers_ContactsProvider-9431911b52789c69c61f8d5bb02a33ff3e1f6fba.zip
packages_providers_ContactsProvider-9431911b52789c69c61f8d5bb02a33ff3e1f6fba.tar.gz
packages_providers_ContactsProvider-9431911b52789c69c61f8d5bb02a33ff3e1f6fba.tar.bz2
Fixes NoSuchMethod errors in VCardTest.
The continuous build runs tests with ProGuard enabled. This cases problem when using methods that are not used in the main code, since ProGuard strips them from the compiled APK. This change adds a couple of methods that are needed by one of the tests. Bug: 4901557 Change-Id: I2907e3b119d2a8420bb8974a7c410f4d42dd1d67
Diffstat (limited to 'proguard.flags')
-rw-r--r--proguard.flags5
1 files changed, 5 insertions, 0 deletions
diff --git a/proguard.flags b/proguard.flags
index 3f2f6e1..f56ffff 100644
--- a/proguard.flags
+++ b/proguard.flags
@@ -2,6 +2,11 @@
<init>(...);
}
+-keep class com.android.vcard.VCardComposer {
+ boolean init();
+ int getCount();
+}
+
# Any methods whose name is '*ForTest' are preserved.
-keep class ** {
*** *ForTest(...);