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

Side by Side Diff: chrome/android/java_staging/proguard.flags

Issue 1141283003: Upstream oodles of Chrome for Android code into Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: final patch? Created 5 years, 7 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 | « chrome/android/java_staging/DEPS ('k') | chrome/android/java_staging/res/OWNERS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Keep line number information, useful for stack traces.
2 -keepattributes SourceFile,LineNumberTable
3
4 # Keep the annotations.
5 -keep @interface ***
6
7 # Disable obfuscation for the following two packages.
8 -keepnames class com.google.android.apps.chrome.**,org.chromium.** {
9 *;
10 }
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 # Keep code annotated with the following annotations.
19 -keep class com.google.android.apps.chrome.**,org.chromium.** {
20 @**.AccessedByNative <fields>;
21 @**.CalledByNative <methods>;
22 @**.CalledByNativeUnchecked <methods>;
23 @**.JavascriptInterface <methods>;
24 @**.NativeCall <methods>;
25 @**.UsedByReflection <methods>;
26 @**.VisibleForTesting *;
27 native <methods>;
28 }
29
30 # Keep all runtime visible annotations
31 -keepattributes RuntimeVisibleAnnotations
32
33 # Tell proguard to remove those if the return values are unused. Allow to get
34 # rid of verbose and debug logs and eventually functions used to build messages.
35 -assumenosideeffects class * {
36 @org.chromium.base.annotations.NoSideEffects <methods>;
37 }
38 -assumenosideeffects class org.chromium.base.Log,
39 com.google.android.apps.chrome.ILog {
40 public *** d(...);
41 public *** v(...);
42 private *** debug(...);
43 private *** verbose(...);
44 }
45
46 # TODO(aurimas): figure out why we need to keep these classes.
47 -keep class org.chromium.base.test.** {
48 *;
49 }
50
51 # Keep protobuf code used via reflection
52 # TODO(tonyg): Removing these -keeps results in new notes, but nothing seems to
53 # break. This exclusion costs almost 100k of dex size so consider replacing it
54 # with a -dontnote after more testing.
55 -keep class com.google.protobuf.** {
56 *** newBuilder();
57 *** parseFrom(java.io.InputStream);
58 }
59
60 # Keep the client interfaces for cacheinvalidation as they are used as
61 # argument types for some of our code that we're keeping and proguard warns
62 # otherwise.
63 -keep class com.google.ipc.invalidation.external.client.** {
64 *;
65 }
66
67 # Keep all enum values and valueOf methods. See
68 # http://proguard.sourceforge.net/index.html#manual/examples.html
69 # for the reason for this. Also, see http://crbug.com/248037.
70 -keepclassmembers enum * {
71 public static **[] values();
72 public static ** valueOf(java.lang.String);
73 }
74
75 # Keep all Parcelables as they might be marshalled outside Chrome.
76 -keepnames class * implements android.os.Parcelable {
77 public static final ** CREATOR;
78 }
79
80 # SearchView is used in website_preferences_menu.xml and is constructed by
81 # Android using reflection.
82 -keep class android.support.v7.widget.SearchView {
83 public <init>(...);
84 }
85
86 # Google Play Services warnings are about its resources.
87 -dontwarn com.google.android.gms.R**
88
89 # The support library contains references to newer platform versions.
90 # Don't warn about those in case this app is linking against an older
91 # platform version. We know about them, and they are safe.
92 -dontwarn android.support.**
93
94 # Everything below this is kept because they are referenced by the test APK.
95 -dontwarn javax.annotation.Nullable
96
97 -keep class android.support.v7.mediarouter.R* {
98 *;
99 }
100
101 -keep class android.support.v7.media.MediaRouteProvider** {
102 *;
103 }
104
105 -keep class android.support.v4.app.FragmentManager** {
106 *;
107 }
108
109 -keep class android.support.v4.app.DialogFragment** {
110 *;
111 }
112
113 -keep class android.support.v7.app.AlertDialog** {
114 *;
115 }
116
117 -keep class com.google.android.gms.cast.CastMediaControlIntent* {
118 *;
119 }
OLDNEW
« no previous file with comments | « chrome/android/java_staging/DEPS ('k') | chrome/android/java_staging/res/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698