Chromium Code Reviews| 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 all runtime visible annotations | 4 # Keep all annotation related attributes |
| 5 -keepattributes RuntimeVisibleAnnotations | 5 -keepattributes *Annotation* |
|
agrieve
2016/07/28 01:30:57
From what I can tell here:
http://proguard.sourcef
smaier
2016/07/28 15:27:18
Done.
| |
| 6 | 6 |
| 7 # Keep the annotations, because if we don't, the ProGuard rules that use them | 7 # Keep the annotations, because if we don't, the ProGuard rules that use them |
| 8 # will not be respected. These classes then show up in our final dex, which we | 8 # will not be respected. These classes then show up in our final dex, which we |
| 9 # do not want - see crbug.com/628226. | 9 # do not want - see crbug.com/628226. |
| 10 -keep @interface org.chromium.base.annotations.AccessedByNative | 10 -keep @interface org.chromium.base.annotations.AccessedByNative |
| 11 -keep @interface org.chromium.base.annotations.CalledByNative | 11 -keep @interface org.chromium.base.annotations.CalledByNative |
| 12 -keep @interface org.chromium.base.annotations.CalledByNativeUnchecked | 12 -keep @interface org.chromium.base.annotations.CalledByNativeUnchecked |
| 13 -keep @interface org.chromium.base.annotations.RemovableInRelease | 13 -keep @interface org.chromium.base.annotations.RemovableInRelease |
| 14 -keep @interface org.chromium.base.annotations.UsedByReflection | 14 -keep @interface org.chromium.base.annotations.UsedByReflection |
| 15 | 15 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 60 # ~1.1%, and reduces the method count by ~4.3%. | 60 # ~1.1%, and reduces the method count by ~4.3%. |
| 61 -allowaccessmodification | 61 -allowaccessmodification |
| 62 | 62 |
| 63 # Keep all enum values and valueOf methods. See | 63 # Keep all enum values and valueOf methods. See |
| 64 # http://proguard.sourceforge.net/index.html#manual/examples.html | 64 # http://proguard.sourceforge.net/index.html#manual/examples.html |
| 65 # for the reason for this. Also, see http://crbug.com/248037. | 65 # for the reason for this. Also, see http://crbug.com/248037. |
| 66 -keepclassmembers enum * { | 66 -keepclassmembers enum * { |
| 67 public static **[] values(); | 67 public static **[] values(); |
| 68 public static ** valueOf(java.lang.String); | 68 public static ** valueOf(java.lang.String); |
| 69 } | 69 } |
| OLD | NEW |