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

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

Issue 1107653003: Enable proguard for ChromeShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@proguard-refactor
Patch Set: Created 5 years, 8 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
(Empty)
1 # Keep line number information, useful for stack traces.
2 -keepattributes SourceFile,LineNumberTable
3
4 # Keep all runtime visible annotations
5 -keepattributes RuntimeVisibleAnnotations
6
7 # Keep the annotations.
8 -keep @interface ***
9
10 # A lot of code in org.chromium is used by both the internal Chrome code and by
11 # ChromeShell tests. It doesn't make sense to mark such things as
12 # @VisibleForTesting. For now, just keep everything in org.chromium.
13 -keep class org.chromium.** {
14 *;
15 }
16
17 # Keep code annotated with the following annotations.
18 -keep class * {
19 @**.AccessedByNative <fields>;
20 @**.CalledByNative <methods>;
21 @**.CalledByNativeUnchecked <methods>;
22 @**.JavascriptInterface <methods>;
23 @**.NativeCall <methods>;
24 @**.UsedByReflection <methods>;
25 @**.VisibleForTesting *;
26 native <methods>;
27 }
28
29 # Keep the client interfaces for cacheinvalidation as they are used as
30 # argument types for some of our code that we're keeping and proguard warns
31 # otherwise.
32 -keep class com.google.ipc.invalidation.external.client.** {
33 *;
34 }
35
36 # Keep all enum values and valueOf methods. See
37 # http://proguard.sourceforge.net/index.html#manual/examples.html
38 # for the reason for this. Also, see http://crbug.com/248037.
39 -keepclassmembers enum * {
40 public static **[] values();
41 public static ** valueOf(java.lang.String);
42 }
43
44 # Keep all Parcelables as they might be marshalled outside Chrome.
45 -keep class * implements android.os.Parcelable {
46 public static final ** CREATOR;
47 }
48
49 # SearchView is used in website_preferences_menu.xml and is constructed by
50 # Android using reflection.
51 -keep class android.support.v7.widget.SearchView {
52 public <init>(...);
53 }
54
55 # Google Play Services warnings are about its resources.
56 -dontwarn com.google.android.gms.R**
57
58 # The support library contains references to newer platform versions.
59 # Don't warn about those in case this app is linking against an older
60 # platform version. We know about them, and they are safe.
61 -dontwarn android.support.**
62
63 -dontwarn javax.annotation.Nullable
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698