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

Side by Side Diff: base/android/base_proguard_config.flags

Issue 2269553003: Don't allow proguard to rename Parcelables at all. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 all annotation related attributes that can affect runtime 4 # Keep all annotation related attributes that can affect runtime
5 -keepattributes RuntimeVisible*Annotations 5 -keepattributes RuntimeVisible*Annotations
6 -keepattributes AnnotationDefault 6 -keepattributes AnnotationDefault
7 7
8 # Keep the annotations, because if we don't, the ProGuard rules that use them 8 # Keep the annotations, because if we don't, the ProGuard rules that use them
9 # will not be respected. These classes then show up in our final dex, which we 9 # will not be respected. These classes then show up in our final dex, which we
10 # do not want - see crbug.com/628226. 10 # do not want - see crbug.com/628226.
(...skipping 20 matching lines...) Expand all
31 @org.chromium.base.annotations.CalledByNativeUnchecked <methods>; 31 @org.chromium.base.annotations.CalledByNativeUnchecked <methods>;
32 } 32 }
33 -keepclasseswithmembers class * { 33 -keepclasseswithmembers class * {
34 @org.chromium.base.annotations.UsedByReflection <methods>; 34 @org.chromium.base.annotations.UsedByReflection <methods>;
35 } 35 }
36 -keepclasseswithmembers,includedescriptorclasses class * { 36 -keepclasseswithmembers,includedescriptorclasses class * {
37 native <methods>; 37 native <methods>;
38 } 38 }
39 39
40 # Keep all Parcelables as they might be marshalled outside Chrome. 40 # Keep all Parcelables as they might be marshalled outside Chrome.
41 -keepnames class * implements android.os.Parcelable
42
41 -keepclassmembers class * implements android.os.Parcelable { 43 -keepclassmembers class * implements android.os.Parcelable {
42 public static *** CREATOR; 44 public static *** CREATOR;
43 } 45 }
44 46
45 # Remove methods annotated with this if their return value is unused 47 # Remove methods annotated with this if their return value is unused
46 -assumenosideeffects class ** { 48 -assumenosideeffects class ** {
47 @org.chromium.base.annotations.RemovableInRelease <methods>; 49 @org.chromium.base.annotations.RemovableInRelease <methods>;
48 } 50 }
49 51
50 # Keep all enum values and valueOf methods. See 52 # Keep all enum values and valueOf methods. See
51 # http://proguard.sourceforge.net/index.html#manual/examples.html 53 # http://proguard.sourceforge.net/index.html#manual/examples.html
52 # for the reason for this. Also, see http://crbug.com/248037. 54 # for the reason for this. Also, see http://crbug.com/248037.
53 -keepclassmembers enum * { 55 -keepclassmembers enum * {
54 public static **[] values(); 56 public static **[] values();
55 } 57 }
56 58
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