OLD | NEW |
1 # Don't rename anything, it makes stack traces unintelligible. We only allow the | 1 # Don't rename anything, it makes stack traces unintelligible. We only allow the |
2 # obfuscation pass to run so that we can discard attributes like local variable | 2 # obfuscation pass to run so that we can discard attributes like local variable |
3 # tables. | 3 # tables. |
4 -keepnames class *** { *; } | 4 -keepnames class *** { *; } |
5 | 5 |
6 # The following chart was created on Aug. 11, 2016, to decide on 3 optimization | 6 # The following chart was created on Aug. 11, 2016, to decide on 3 optimization |
7 # passes. | 7 # passes. |
8 # optimization passes | time | .dex size | dirty memory | 8 # optimization passes | time | .dex size | dirty memory |
9 # ----------------------------------------------------------------- | 9 # ----------------------------------------------------------------- |
10 # 1 | 0:13 | 1022588 | 97772 | 10 # 1 | 0:13 | 1022588 | 97772 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 -keep class org.chromium.android_webview.AwDebug { | 70 -keep class org.chromium.android_webview.AwDebug { |
71 public static boolean dumpWithoutCrashing(...); | 71 public static boolean dumpWithoutCrashing(...); |
72 } | 72 } |
73 | 73 |
74 #TODO(hush): remove after N release. crbug.com/546762 | 74 #TODO(hush): remove after N release. crbug.com/546762 |
75 -keep class com.android.webview.chromium.ContentSettingsAdapter { | 75 -keep class com.android.webview.chromium.ContentSettingsAdapter { |
76 public void setDisabledActionModeMenuItems(int); | 76 public void setDisabledActionModeMenuItems(int); |
77 public int getDisabledActionModeMenuItems(); | 77 public int getDisabledActionModeMenuItems(); |
78 } | 78 } |
79 | 79 |
| 80 # Keeps for method level annotations. |
| 81 -keepclasseswithmembers class * { |
| 82 @android.webkit.JavascriptInterface <methods>; |
| 83 } |
| 84 |
80 # Ignore notes and warnings about the support library, which uses reflection and | 85 # Ignore notes and warnings about the support library, which uses reflection and |
81 # may reference classes no longer in the SDK. | 86 # may reference classes no longer in the SDK. |
82 -dontnote android.support.** | 87 -dontnote android.support.** |
83 -dontwarn android.support.** | 88 -dontwarn android.support.** |
OLD | NEW |