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

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

Issue 2250963004: Use keepclassmembers for android.webkit.JavascriptInterface in proguard (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address smaier comments 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.
11 -keep @interface org.chromium.base.annotations.AccessedByNative 11 -keep @interface org.chromium.base.annotations.AccessedByNative
12 -keep @interface org.chromium.base.annotations.CalledByNative 12 -keep @interface org.chromium.base.annotations.CalledByNative
13 -keep @interface org.chromium.base.annotations.CalledByNativeUnchecked 13 -keep @interface org.chromium.base.annotations.CalledByNativeUnchecked
14 -keep @interface org.chromium.base.annotations.RemovableInRelease 14 -keep @interface org.chromium.base.annotations.RemovableInRelease
15 -keep @interface org.chromium.base.annotations.UsedByReflection 15 -keep @interface org.chromium.base.annotations.UsedByReflection
16 16
17 # Keeps for class level annotations. 17 # Keeps for class level annotations.
18 -keep @org.chromium.base.annotations.UsedByReflection class * 18 -keep @org.chromium.base.annotations.UsedByReflection class *
19 19
20 # Keeps for method level annotations. 20 # Keeps for method level annotations.
21 -keepclasseswithmembers class * { 21 -keepclassmembers class * {
22 @android.webkit.JavascriptInterface <methods>; 22 @android.webkit.JavascriptInterface <methods>;
23 } 23 }
24 -keepclasseswithmembers class * { 24 -keepclasseswithmembers class * {
25 @org.chromium.base.annotations.AccessedByNative <fields>; 25 @org.chromium.base.annotations.AccessedByNative <fields>;
26 } 26 }
27 -keepclasseswithmembers,includedescriptorclasses class * { 27 -keepclasseswithmembers,includedescriptorclasses class * {
28 @org.chromium.base.annotations.CalledByNative <methods>; 28 @org.chromium.base.annotations.CalledByNative <methods>;
29 } 29 }
30 -keepclasseswithmembers,includedescriptorclasses class * { 30 -keepclasseswithmembers,includedescriptorclasses class * {
31 @org.chromium.base.annotations.CalledByNativeUnchecked <methods>; 31 @org.chromium.base.annotations.CalledByNativeUnchecked <methods>;
(...skipping 19 matching lines...) Expand all
51 static *** isLoggable(...); 51 static *** isLoggable(...);
52 } 52 }
53 53
54 # Keep all enum values and valueOf methods. See 54 # Keep all enum values and valueOf methods. See
55 # http://proguard.sourceforge.net/index.html#manual/examples.html 55 # http://proguard.sourceforge.net/index.html#manual/examples.html
56 # for the reason for this. Also, see http://crbug.com/248037. 56 # for the reason for this. Also, see http://crbug.com/248037.
57 -keepclassmembers enum * { 57 -keepclassmembers enum * {
58 public static **[] values(); 58 public static **[] values();
59 public static ** valueOf(java.lang.String); 59 public static ** valueOf(java.lang.String);
60 } 60 }
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