OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |