Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(521)

Side by Side Diff: chrome/android/java/proguard.flags

Issue 2069213002: Proguard warning suppresions removed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re added org.apache dontwarn Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Keep line number information, useful for stack traces. 1 # Keep line number information, useful for stack traces.
2 -keepattributes SourceFile,LineNumberTable 2 -keepattributes SourceFile,LineNumberTable
3 3
4 # Keep the annotations. 4 # Keep the annotations.
5 -keep @interface *** 5 -keep @interface ***
6 6
7 # Disable obfuscation for the following two packages. 7 # Disable obfuscation for the following two packages.
8 -keepnames class com.google.android.apps.chrome.**,org.chromium.** { 8 -keepnames class com.google.android.apps.chrome.**,org.chromium.** {
9 *; 9 *;
10 } 10 }
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 # SearchView is used in website_preferences_menu.xml and is constructed by 78 # SearchView is used in website_preferences_menu.xml and is constructed by
79 # Android using reflection. 79 # Android using reflection.
80 -keep class android.support.v7.widget.SearchView { 80 -keep class android.support.v7.widget.SearchView {
81 public <init>(...); 81 public <init>(...);
82 } 82 }
83 83
84 # Google Play Services warnings are about its resources. 84 # Google Play Services warnings are about its resources.
85 -dontwarn com.google.android.gms.R** 85 -dontwarn com.google.android.gms.R**
86 86
87 # TODO(yfriedman): Remove when crbug.com/488192 is fixed.
88 -dontwarn org.apache.http.**
89
90 # The support library contains references to newer platform versions. 87 # The support library contains references to newer platform versions.
91 # Don't warn about those in case this app is linking against an older 88 # Don't warn about those in case this app is linking against an older
92 # platform version. We know about them, and they are safe. 89 # platform version. We know about them, and they are safe.
93 -dontwarn android.support.** 90 -dontwarn android.support.**
94 91
95 # Proguard mistakenly optimizes away some null checks on final fields 92 # Proguard mistakenly optimizes away some null checks on final fields
96 # in the support library. 93 # in the support library.
97 # See https://sourceforge.net/p/proguard/bugs/531/#fdc9/41e2 94 # See https://sourceforge.net/p/proguard/bugs/531/#fdc9/41e2
98 -keepclassmembers,allowshrinking,allowobfuscation class android.support.v7.widge t.AppCompatButton { 95 -keepclassmembers,allowshrinking,allowobfuscation class android.support.v7.widge t.AppCompatButton {
99 !static final <fields>; 96 !static final <fields>;
100 } 97 }
101 98
102 # Everything below this is kept because they are referenced by the test APK. 99 # Everything below this is kept because they are referenced by the test APK.
103 -dontwarn javax.annotation.Nullable
104
105 -keep class android.support.v7.mediarouter.R* { 100 -keep class android.support.v7.mediarouter.R* {
106 *; 101 *;
107 } 102 }
108 103
109 -keep class android.support.v7.media.MediaRouteProvider** { 104 -keep class android.support.v7.media.MediaRouteProvider** {
110 *; 105 *;
111 } 106 }
112 107
113 -keep class android.support.v4.app.FragmentManager** { 108 -keep class android.support.v4.app.FragmentManager** {
114 *; 109 *;
(...skipping 30 matching lines...) Expand all
145 # Used in tests. 140 # Used in tests.
146 -keep class android.support.v4.view.ViewCompat { 141 -keep class android.support.v4.view.ViewCompat {
147 public static int getLayoutDirection(android.view.View); 142 public static int getLayoutDirection(android.view.View);
148 } 143 }
149 144
150 # flingViewport is used by Android WebView and a Chrome test. 145 # flingViewport is used by Android WebView and a Chrome test.
151 -keepclassmembers class org.chromium.content.browser.ContentViewCore { 146 -keepclassmembers class org.chromium.content.browser.ContentViewCore {
152 public void flingViewport(long, int, int); 147 public void flingViewport(long, int, int);
153 } 148 }
154 149
155 # TODO(aurimas): remove this when Google Play Services no longer uses setLatestE ventInfo call
156 # that was deprecated in Android M. It is save to suppress this according to b/1 8510449.
157 -dontwarn android.app.Notification
158
159 # IntentUtils uses reflection to access a method that is hidden until API level 18.
160 -dontnote org.chromium.chrome.browser.util.IntentUtils
161
162 # Needed to compile ChromeTest.apk 150 # Needed to compile ChromeTest.apk
163 -keep class android.support.customtabs.** { 151 -keep class android.support.customtabs.** {
164 *; 152 *;
165 } 153 }
166 154
155 # TODO(yfriedman): Remove when crbug.com/488192 is fixed.
156 -dontwarn org.apache.http.conn.scheme.LayeredSocketFactory
157
167 # Needed to run ChromeTest.apk 158 # Needed to run ChromeTest.apk
168 -keepnames class com.google.android.gms.common.GoogleApiAvailability { 159 -keepnames class com.google.android.gms.common.GoogleApiAvailability {
169 *; 160 *;
170 } 161 }
171
172 #-keep public class android.net.http.SslCertificate
173 #-keep public class android.webkit.WebVie
174
175 #-dontwarn android.webkit.WebView
176 -dontwarn android.net.http.SslCertificate
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698