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

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

Issue 2127973003: Turning on optimizations for chromium code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@testapk
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
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,allowoptimization class com.google.android.apps.chrome.**,org.chromiu m.** {
9 *; 9 *;
10 } 10 }
11 11
12 # Keep all the primitive and String constants for for the following two packages . 12 # Keep all the primitive and String constants for for the following two packages .
13 -keepclassmembers class com.google.android.apps.chrome.**,org.chromium.** { 13 -keepclassmembers class com.google.android.apps.chrome.**,org.chromium.** {
14 !private static final % *; 14 !private static final % *;
15 !private static final java.lang.String *; 15 !private static final java.lang.String *;
16 } 16 }
17 17
18 # Fragments are loaded using reflection via Fragment.instantiate(Context,String) 18 # Fragments are loaded using reflection via Fragment.instantiate(Context,String)
(...skipping 204 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 223 # Needed for chrome_sync_shell_test_apk. Note - these do no affect chrome_apk's
224 # size. 224 # size.
225 -keep class org.chromium.sync.protocol.* { *; } 225 -keep class org.chromium.sync.protocol.* { *; }
226 226
227 # These resources are referenced in tests, but not in the real application. 227 # These resources are referenced in tests, but not in the real application.
228 -keepclassmembers class org.chromium.chrome.R$id { 228 -keepclassmembers class org.chromium.chrome.R$id {
229 int webapp_splash_space; 229 int webapp_splash_space;
230 int mr_chooser_list; 230 int mr_chooser_list;
231 int find_toolbar; 231 int find_toolbar;
232 } 232 }
OLDNEW
« build/android/gyp/util/proguard_util.py ('K') | « build/config/android/internal_rules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698