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

Unified Diff: components/cronet/android/proguard.cfg

Issue 2214013002: [Cronet] add base proguard flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self review 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
Index: components/cronet/android/proguard.cfg
diff --git a/components/cronet/android/proguard.cfg b/components/cronet/android/proguard.cfg
index 853747da727ba837b7ba46d15954389f0584a4a1..3281ebc02325683ded6cbb1916bbefd253d8f0e3 100644
--- a/components/cronet/android/proguard.cfg
+++ b/components/cronet/android/proguard.cfg
@@ -1,35 +1,9 @@
-# Keep annotations used by chromium to keep members referenced by native code
--keep class org.chromium.base.annotations.*Native*
--keep class org.chromium.base.annotations.JNINamespace
--keepclasseswithmembers class org.chromium.** {
- @org.chromium.base.annotations.AccessedByNative <fields>;
-}
--keepclasseswithmembers class org.chromium.** {
- @org.chromium.base.annotations.*Native* <methods>;
-}
-
-# TODO(mef) remove unnecessary classes from base, so we don't have to preserve
-# their methods
--keepclasseswithmembers class org.chromium.** {
- native <methods>;
-}
-
-# TODO(xunjieli): Find an alternative to explictly preserving public classes.
--keep public class org.chromium.net.*
-
-keep class org.chromium.net.impl.CronetUrlRequest$HeadersList
-keep class org.chromium.net.impl.ChromiumUrlRequest$ResponseHeadersMap
# Needed so that multiple optimization passes will detect annotations
-keepattributes *Annotation*
smaier 2016/08/11 16:08:29 I'd wager you'll be able to remove this line. base
xunjieli 2016/08/11 21:05:53 Done. Thanks for pointing that out and explaining
-# Keep methods used by reflection
--keep class org.chromium.base.annotations.UsedByReflection
--keep @org.chromium.base.annotations.UsedByReflection class *
--keepclassmembers class * {
- @org.chromium.base.annotations.UsedByReflection *;
-}
-
# Suppress unnecessary warnings.
-dontnote org.chromium.net.ProxyChangeListener$ProxyReceiver
-dontnote org.chromium.net.AndroidKeyStore

Powered by Google App Engine
This is Rietveld 408576698