| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 -keep class com.android.webview.chromium.WebViewChromium { | 73 -keep class com.android.webview.chromium.WebViewChromium { |
| 74 public void extractSmartClipData(int,int,int,int); | 74 public void extractSmartClipData(int,int,int,int); |
| 75 public void setSmartClipResultHandler(android.os.Handler); | 75 public void setSmartClipResultHandler(android.os.Handler); |
| 76 } | 76 } |
| 77 | 77 |
| 78 # AwDebug is accessed by reflection. | 78 # AwDebug is accessed by reflection. |
| 79 -keep class org.chromium.android_webview.AwDebug { | 79 -keep class org.chromium.android_webview.AwDebug { |
| 80 public static boolean dumpWithoutCrashing(...); | 80 public static boolean dumpWithoutCrashing(...); |
| 81 } | 81 } |
| 82 | 82 |
| 83 #TODO(hush): remove after N release. crbug.com/543272 |
| 84 -keep class com.android.webview.chromium.WebViewChromium { |
| 85 public void onActivityResult(int,int,android.content.Intent); |
| 86 } |
| 87 |
| 83 # Ignore notes and warnings about the support library, which uses reflection and | 88 # Ignore notes and warnings about the support library, which uses reflection and |
| 84 # may reference classes no longer in the SDK. | 89 # may reference classes no longer in the SDK. |
| 85 -dontnote android.support.** | 90 -dontnote android.support.** |
| 86 -dontwarn android.support.** | 91 -dontwarn android.support.** |
| 87 | 92 |
| 88 # Keep all enum values and valueOf methods. See | 93 # Keep all enum values and valueOf methods. See |
| 89 # http://proguard.sourceforge.net/index.html#manual/examples.html | 94 # http://proguard.sourceforge.net/index.html#manual/examples.html |
| 90 # for the reason for this. Also, see http://crbug.com/248037. | 95 # for the reason for this. Also, see http://crbug.com/248037. |
| 91 -keepclassmembers enum * { | 96 -keepclassmembers enum * { |
| 92 public static **[] values(); | 97 public static **[] values(); |
| 93 public static ** valueOf(java.lang.String); | 98 public static ** valueOf(java.lang.String); |
| 94 } | 99 } |
| 95 | 100 |
| 96 # Remove when ViewStructure is no longer duplicated (crbug.com/513229) | 101 # Remove when ViewStructure is no longer duplicated (crbug.com/513229) |
| 97 -dontwarn android.view.* | 102 -dontwarn android.view.* |
| 98 -dontwarn android.app.assist.* | 103 -dontwarn android.app.assist.* |
| 99 -dontwarn android.webkit.* | 104 -dontwarn android.webkit.* |
| OLD | NEW |