Chromium Code Reviews| Index: android_webview/apk/java/proguard.flags |
| diff --git a/android_webview/apk/java/proguard.flags b/android_webview/apk/java/proguard.flags |
| index 3b3f2c6332c785919eb2762e8f1b48b528df1f42..9d3af7071750cc97654b1581ad2a69db571f9022 100644 |
| --- a/android_webview/apk/java/proguard.flags |
| +++ b/android_webview/apk/java/proguard.flags |
| @@ -8,10 +8,9 @@ |
| # Keep all runtime visible annotations. |
| -keepattributes RuntimeVisibleAnnotations |
| - |
| -# Disable optimization as this causes proguard to remove seemingly random stuff, |
| -# including things explicitly kept in this configuration. |
| --dontoptimize |
| +-keep @interface **.AccessedBy* |
|
agrieve
2016/07/13 13:42:29
nit: Can you add a comment warning that removing t
|
| +-keep @interface **.CalledBy* |
| +-keep @interface **.UsedBy* |
| # Keep the factory and its public members; it's the main entry point used by the |
| # framework. |
| @@ -39,7 +38,10 @@ |
| native <methods>; |
| } |
| -# Keep things explicitly marked as used by reflection |
| +# Keep classes marked as used by reflection |
| +-keep @**.UsedByReflection class * |
| + |
| +# Keep members explicitly marked as used by reflection |
| -keepclasseswithmembers class com.android.webview.chromium.**,org.chromium.** { |
| @**.UsedByReflection *; |
| } |