| 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. However, we don't want to lose out on optimizations, so although they |
| 4 -keepnames class *** { *; } | 4 # can occasionally make the stack trace a bit stranger with inlining, it won't |
| 5 # make a big difference for the users seeing the stacktraces. We can always use |
| 6 # build/android/stacktrace/java_deobfuscate.py to fix the stacktrace up for us. |
| 7 -keepnames,allowoptimization class *** { *; } |
| 5 | 8 |
| 6 # The following chart was created on Aug. 11, 2016, to decide on 3 optimization | 9 # The following chart was created on Aug. 11, 2016, to decide on 3 optimization |
| 7 # passes. | 10 # passes. |
| 8 # optimization passes | time | .dex size | dirty memory | 11 # optimization passes | time | .dex size | dirty memory |
| 9 # ----------------------------------------------------------------- | 12 # ----------------------------------------------------------------- |
| 10 # 1 | 0:13 | 1022588 | 97772 | 13 # 1 | 0:13 | 1022588 | 97772 |
| 11 # 2 | 0:17 | 1019200 | 97472 | 14 # 2 | 0:17 | 1019200 | 97472 |
| 12 # 3 | 0:18 | 1018472 | 97424 | 15 # 3 | 0:18 | 1018472 | 97424 |
| 13 # 4 | 0:21 | 1018392 | 97416 | 16 # 4 | 0:21 | 1018392 | 97416 |
| 14 # 5 | 0:26 | 1018360 | 97416 | 17 # 5 | 0:26 | 1018360 | 97416 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 #TODO(hush): remove after N release. crbug.com/546762 | 77 #TODO(hush): remove after N release. crbug.com/546762 |
| 75 -keep class com.android.webview.chromium.ContentSettingsAdapter { | 78 -keep class com.android.webview.chromium.ContentSettingsAdapter { |
| 76 public void setDisabledActionModeMenuItems(int); | 79 public void setDisabledActionModeMenuItems(int); |
| 77 public int getDisabledActionModeMenuItems(); | 80 public int getDisabledActionModeMenuItems(); |
| 78 } | 81 } |
| 79 | 82 |
| 80 # Ignore notes and warnings about the support library, which uses reflection and | 83 # Ignore notes and warnings about the support library, which uses reflection and |
| 81 # may reference classes no longer in the SDK. | 84 # may reference classes no longer in the SDK. |
| 82 -dontnote android.support.** | 85 -dontnote android.support.** |
| 83 -dontwarn android.support.** | 86 -dontwarn android.support.** |
| OLD | NEW |