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

Unified Diff: base/android/base_proguard_config.flags

Issue 2251213003: Don't let proguard rename the CREATOR static of any Parcelable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment #8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/android/java/proguard.flags » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/base_proguard_config.flags
diff --git a/base/android/base_proguard_config.flags b/base/android/base_proguard_config.flags
index c01cc200f3be24fb7687beb9c37457f23d9904e9..e05cce3a0b68757e4a7b4fd5b3f90435c501a124 100644
--- a/base/android/base_proguard_config.flags
+++ b/base/android/base_proguard_config.flags
@@ -37,6 +37,11 @@
native <methods>;
}
+# Keep all Parcelables as they might be marshalled outside Chrome.
+-keepclassmembers class * implements android.os.Parcelable {
+ public static *** CREATOR;
+}
+
# Remove methods annotated with this if their return value is unused
-assumenosideeffects class ** {
@org.chromium.base.annotations.RemovableInRelease <methods>;
@@ -57,3 +62,4 @@
-keepclassmembers enum * {
public static **[] values();
}
+
« no previous file with comments | « no previous file | chrome/android/java/proguard.flags » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698