OLD | NEW |
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 Loading... |
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 |
87 # The support library contains references to newer platform versions. | 90 # The support library contains references to newer platform versions. |
88 # Don't warn about those in case this app is linking against an older | 91 # Don't warn about those in case this app is linking against an older |
89 # platform version. We know about them, and they are safe. | 92 # platform version. We know about them, and they are safe. |
90 -dontwarn android.support.** | 93 -dontwarn android.support.** |
91 | 94 |
92 # Proguard mistakenly optimizes away some null checks on final fields | 95 # Proguard mistakenly optimizes away some null checks on final fields |
93 # in the support library. | 96 # in the support library. |
94 # See https://sourceforge.net/p/proguard/bugs/531/#fdc9/41e2 | 97 # See https://sourceforge.net/p/proguard/bugs/531/#fdc9/41e2 |
95 -keepclassmembers,allowshrinking,allowobfuscation class android.support.v7.widge
t.AppCompatButton { | 98 -keepclassmembers,allowshrinking,allowobfuscation class android.support.v7.widge
t.AppCompatButton { |
96 !static final <fields>; | 99 !static final <fields>; |
97 } | 100 } |
98 | 101 |
99 # Everything below this is kept because they are referenced by the test APK. | 102 # Everything below this is kept because they are referenced by the test APK. |
| 103 -dontwarn javax.annotation.Nullable |
| 104 |
100 -keep class android.support.v7.mediarouter.R* { | 105 -keep class android.support.v7.mediarouter.R* { |
101 *; | 106 *; |
102 } | 107 } |
103 | 108 |
104 -keep class android.support.v7.media.MediaRouteProvider** { | 109 -keep class android.support.v7.media.MediaRouteProvider** { |
105 *; | 110 *; |
106 } | 111 } |
107 | 112 |
108 -keep class android.support.v4.app.FragmentManager** { | 113 -keep class android.support.v4.app.FragmentManager** { |
109 *; | 114 *; |
(...skipping 30 matching lines...) Expand all Loading... |
140 # Used in tests. | 145 # Used in tests. |
141 -keep class android.support.v4.view.ViewCompat { | 146 -keep class android.support.v4.view.ViewCompat { |
142 public static int getLayoutDirection(android.view.View); | 147 public static int getLayoutDirection(android.view.View); |
143 } | 148 } |
144 | 149 |
145 # flingViewport is used by Android WebView and a Chrome test. | 150 # flingViewport is used by Android WebView and a Chrome test. |
146 -keepclassmembers class org.chromium.content.browser.ContentViewCore { | 151 -keepclassmembers class org.chromium.content.browser.ContentViewCore { |
147 public void flingViewport(long, int, int); | 152 public void flingViewport(long, int, int); |
148 } | 153 } |
149 | 154 |
| 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 |
150 # Needed to compile ChromeTest.apk | 162 # Needed to compile ChromeTest.apk |
151 -keep class android.support.customtabs.** { | 163 -keep class android.support.customtabs.** { |
152 *; | 164 *; |
153 } | 165 } |
154 | 166 |
155 # TODO(yfriedman): Remove when crbug.com/488192 is fixed. | |
156 -dontwarn org.apache.http.conn.scheme.LayeredSocketFactory | |
157 | |
158 # Needed to run ChromeTest.apk | 167 # Needed to run ChromeTest.apk |
159 -keepnames class com.google.android.gms.common.GoogleApiAvailability { | 168 -keepnames class com.google.android.gms.common.GoogleApiAvailability { |
160 *; | 169 *; |
161 } | 170 } |
| 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 |
OLD | NEW |