Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Side by Side Diff: android_webview/apk/java/proguard.flags

Issue 1765333002: Add proguard definitions to prevent stripping of methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698