Index: testing/android/proguard_for_tests.flags |
diff --git a/testing/android/proguard_for_tests.flags b/testing/android/proguard_for_tests.flags |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e45959fe6a5d29df6506abdf54ee651839e83f58 |
--- /dev/null |
+++ b/testing/android/proguard_for_tests.flags |
@@ -0,0 +1,25 @@ |
+# Copyright 2016 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+# No need to cut stuff out of the instrumentation tests. |
+-dontoptimize |
+-dontshrink |
+-dontskipnonpubliclibraryclassmembers |
+ |
+-dontwarn android.webkit.WebView* |
+-dontwarn org.apache.http.conn.scheme.LayeredSocketFactory |
+-dontwarn org.chromium.chrome.browser.notifications.WebApkNotificationClient$* |
+-dontwarn org.chromium.webapk.lib.client.WebApkServiceConnectionManager$* |
+ |
+-keep class * extends junit.framework.TestCase { |
+ *; |
+} |
+ |
+# We don't want BasicHttpParams or AbstractHttpParams to get renamed since that |
+# then makes our calls to them use the implementation that we find in our .dex |
+# file, which is broken. We need to rely on these calls resolving to the |
+# system's implementation. See crbug.com/488192#c36. |
+-keep class org.apache.** { |
+ *; |
+} |