blob: d2034aaec32e6c289b3909a9410b2c5564065a76 [file] [log] [blame]
# Don't rename anything, it makes stack traces unintelligible. We only allow the
# obfuscation pass to run so that we can discard attributes like local variable
# tables. However, we don't want to lose out on optimizations, so although they
# can occasionally make the stack trace a bit stranger with inlining, it won't
# make a big difference for the users seeing the stacktraces. We can always use
# build/android/stacktrace/ to fix the stacktrace up for us.
-keepnames,allowoptimization class *** { *; }
# Keep the factory and its public members; it's the main entry point used by the
# framework.
-keep class {
public *;
# This is the main entry point for APIs. It is kept to make developing with
# unreleased Android easier.
-keep class {
public *;
# Linker dynamically casts to $TestRunner when running tests. We don't run these
# tests in WebView.
-dontnote org.chromium.base.library_loader.Linker$TestRunner
# Don't note about the API 21 compatibility code which references various
# hidden APIs via reflection.
# DefaultAndroidKeyStore uses reflection to access internal OpenSSL state.
# MediaPlayerBridge uses reflection to access internal metadata.
# ProxyChangeListener$ProxyReceiver uses reflection to access internal
# Silence warnings about reflection used to check for onShow/HideCustomView.
# This class is not really kept since it's in a library jar.
-keep class android.webkit.WebChromeClient {
void onShowCustomView(...);
void onHideCustomView();
# Accessed via reflection but not present in all builds
-keep class {
void setMetricsSettingListener(...);
#TODO(hush): remove after N release.
-keep class {
public void setDisabledActionModeMenuItems(int);
public int getDisabledActionModeMenuItems();