| 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 # Keep source file and line number information for stack traces. | 6 # Keep source file and line number information for stack traces. |
| 7 -keepattributes SourceFile,LineNumberTable | 7 -keepattributes SourceFile,LineNumberTable |
| 8 | 8 |
| 9 # Keep all runtime visible annotations. | 9 # Keep all runtime visible annotations. |
| 10 -keepattributes RuntimeVisibleAnnotations | 10 -keepattributes RuntimeVisibleAnnotations |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 -keep class com.android.webview.chromium.WebViewChromium { | 78 -keep class com.android.webview.chromium.WebViewChromium { |
| 79 public void extractSmartClipData(int,int,int,int); | 79 public void extractSmartClipData(int,int,int,int); |
| 80 public void setSmartClipResultHandler(android.os.Handler); | 80 public void setSmartClipResultHandler(android.os.Handler); |
| 81 } | 81 } |
| 82 | 82 |
| 83 # AwDebug is accessed by reflection. | 83 # AwDebug is accessed by reflection. |
| 84 -keep class org.chromium.android_webview.AwDebug { | 84 -keep class org.chromium.android_webview.AwDebug { |
| 85 public static boolean dumpWithoutCrashing(...); | 85 public static boolean dumpWithoutCrashing(...); |
| 86 } | 86 } |
| 87 | 87 |
| 88 #TODO(hush): remove after N release. crbug.com/543272, crbug.com/584789 | 88 #TODO(hush): remove after N release. crbug.com/543272, crbug.com/584789. |
| 89 #TODO(hush): Also remove getHandler and findFocus when removing others here |
| 90 # and add @Override to these methods. |
| 89 -keep class com.android.webview.chromium.WebViewChromium { | 91 -keep class com.android.webview.chromium.WebViewChromium { |
| 90 public void onActivityResult(int,int,android.content.Intent); | 92 public void onActivityResult(int,int,android.content.Intent); |
| 91 public boolean onDragEvent(android.view.DragEvent); | 93 public boolean onDragEvent(android.view.DragEvent); |
| 94 public android.os.Handler getHandler(android.os.Handler); |
| 95 public android.view.View findFocus(android.view.View); |
| 92 } | 96 } |
| 93 | 97 |
| 94 #TODO(hush): remove after N release. crbug.com/546762 | 98 #TODO(hush): remove after N release. crbug.com/546762 |
| 95 -keep class com.android.webview.chromium.ContentSettingsAdapter { | 99 -keep class com.android.webview.chromium.ContentSettingsAdapter { |
| 96 public void setDisabledActionModeMenuItems(int); | 100 public void setDisabledActionModeMenuItems(int); |
| 97 public int getDisabledActionModeMenuItems(); | 101 public int getDisabledActionModeMenuItems(); |
| 98 } | 102 } |
| 99 | 103 |
| 100 # Ignore notes and warnings about the support library, which uses reflection and | 104 # Ignore notes and warnings about the support library, which uses reflection and |
| 101 # may reference classes no longer in the SDK. | 105 # may reference classes no longer in the SDK. |
| 102 -dontnote android.support.** | 106 -dontnote android.support.** |
| 103 -dontwarn android.support.** | 107 -dontwarn android.support.** |
| 104 | 108 |
| 105 # Keep all enum values and valueOf methods. See | 109 # Keep all enum values and valueOf methods. See |
| 106 # http://proguard.sourceforge.net/index.html#manual/examples.html | 110 # http://proguard.sourceforge.net/index.html#manual/examples.html |
| 107 # for the reason for this. Also, see http://crbug.com/248037. | 111 # for the reason for this. Also, see http://crbug.com/248037. |
| 108 -keepclassmembers enum * { | 112 -keepclassmembers enum * { |
| 109 public static **[] values(); | 113 public static **[] values(); |
| 110 public static ** valueOf(java.lang.String); | 114 public static ** valueOf(java.lang.String); |
| 111 } | 115 } |
| OLD | NEW |