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

Side by Side Diff: chrome/android/java/proguard.flags

Issue 2147583003: Removed keeps for unused member variables. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 # Keep line number information, useful for stack traces. 1 # Keep line number information, useful for stack traces.
2 -keepattributes SourceFile,LineNumberTable 2 -keepattributes SourceFile,LineNumberTable
3 3
4 # Keep the annotations. 4 # Keep the annotations.
5 -keep @interface *** 5 -keep @interface ***
6 6
7 # Disable obfuscation for the following two packages. 7 # Disable obfuscation for the following two packages.
8 -keepnames class com.google.android.apps.chrome.**,org.chromium.** { 8 -keepnames class com.google.android.apps.chrome.**,org.chromium.** {
9 *; 9 *;
10 } 10 }
11 11
12 # Keep all the primitive and String constants for for the following two packages .
13 -keepclassmembers class com.google.android.apps.chrome.**,org.chromium.** {
14 !private static final % *;
15 !private static final java.lang.String *;
16 }
17
18 # Fragments are loaded using reflection via Fragment.instantiate(Context,String) 12 # Fragments are loaded using reflection via Fragment.instantiate(Context,String)
19 # This can be improved upon - see crbug.com/622023. 13 # This can be improved upon - see crbug.com/622023.
20 -keep public class com.google.android.apps.chrome** extends android.app.Fragment 14 -keep public class com.google.android.apps.chrome** extends android.app.Fragment
21 -keep public class org.chromium** extends android.app.Fragment 15 -keep public class org.chromium** extends android.app.Fragment
22 16
23 # Keeps for class level annotations. 17 # Keeps for class level annotations.
24 -keep @**.UsedByReflection class * 18 -keep @**.UsedByReflection class *
25 -keep @**.VisibleForTesting class * 19 -keep @**.VisibleForTesting class *
26 20
27 # Keeps for method level annotations. 21 # Keeps for method level annotations.
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 # Needed for chrome_sync_shell_test_apk. Note - these do no affect chrome_apk's 217 # Needed for chrome_sync_shell_test_apk. Note - these do no affect chrome_apk's
224 # size. 218 # size.
225 -keep class org.chromium.sync.protocol.* { *; } 219 -keep class org.chromium.sync.protocol.* { *; }
226 220
227 # These resources are referenced in tests, but not in the real application. 221 # These resources are referenced in tests, but not in the real application.
228 -keepclassmembers class org.chromium.chrome.R$id { 222 -keepclassmembers class org.chromium.chrome.R$id {
229 int webapp_splash_space; 223 int webapp_splash_space;
230 int mr_chooser_list; 224 int mr_chooser_list;
231 int find_toolbar; 225 int find_toolbar;
232 } 226 }
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