| 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. However, we don't want to lose out on optimizations, so although they | 3 # tables. However, we don't want to lose out on optimizations, so although they |
| 4 # can occasionally make the stack trace a bit stranger with inlining, it won't | 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 | 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. | 6 # build/android/stacktrace/java_deobfuscate.py to fix the stacktrace up for us. |
| 7 -keepnames,allowoptimization class *** { *; } | 7 -keepnames,allowoptimization class *** { *; } |
| 8 | 8 |
| 9 # Keep the factory and its public members; it's the main entry point used by the | 9 # Keep the factory and its public members; it's the main entry point used by the |
| 10 # framework. | 10 # framework. |
| 11 -keep class com.android.webview.chromium.WebViewChromiumFactoryProvider { | 11 -keep class com.android.webview.chromium.WebViewChromiumFactoryProvider { |
| 12 public *; | 12 public *; |
| 13 } | 13 } |
| 14 | 14 |
| 15 -keep class com.android.webview.chromium.WebViewDatabaseAdapter { |
| 16 public *; |
| 17 } |
| 18 |
| 15 # This is the main entry point for APIs. It is kept to make developing with | 19 # This is the main entry point for APIs. It is kept to make developing with |
| 16 # unreleased Android easier. | 20 # unreleased Android easier. |
| 17 -keep class com.android.webview.chromium.WebViewChromium { | 21 -keep class com.android.webview.chromium.WebViewChromium { |
| 18 public *; | 22 public *; |
| 19 } | 23 } |
| 20 | 24 |
| 21 # Linker dynamically casts to $TestRunner when running tests. We don't run these | 25 # Linker dynamically casts to $TestRunner when running tests. We don't run these |
| 22 # tests in WebView. | 26 # tests in WebView. |
| 23 -dontnote org.chromium.base.library_loader.Linker$TestRunner | 27 -dontnote org.chromium.base.library_loader.Linker$TestRunner |
| 24 | 28 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 52 void setMetricsSettingListener(...); | 56 void setMetricsSettingListener(...); |
| 53 PlatformServiceBridgeGoogle(...); | 57 PlatformServiceBridgeGoogle(...); |
| 54 } | 58 } |
| 55 -dontnote com.android.webview.chromium.PlatformServiceBridgeGoogle | 59 -dontnote com.android.webview.chromium.PlatformServiceBridgeGoogle |
| 56 | 60 |
| 57 #TODO(hush): remove after N release. crbug.com/546762 | 61 #TODO(hush): remove after N release. crbug.com/546762 |
| 58 -keep class com.android.webview.chromium.ContentSettingsAdapter { | 62 -keep class com.android.webview.chromium.ContentSettingsAdapter { |
| 59 public void setDisabledActionModeMenuItems(int); | 63 public void setDisabledActionModeMenuItems(int); |
| 60 public int getDisabledActionModeMenuItems(); | 64 public int getDisabledActionModeMenuItems(); |
| 61 } | 65 } |
| OLD | NEW |