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

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: Synced to 0855f910f2561da7beb87578f4af99faa6db75ec Created 4 years, 3 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 | « components/cronet/android/BUILD.gn ('k') | components/cronet/android/sample/javatests/proguard.cfg » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/android/proguard.cfg
diff --git a/components/cronet/android/proguard.cfg b/components/cronet/android/proguard.cfg
index 853747da727ba837b7ba46d15954389f0584a4a1..4ca24c078c6a2bfa0b693e96c958836c845a2750 100644
--- a/components/cronet/android/proguard.cfg
+++ b/components/cronet/android/proguard.cfg
@@ -1,35 +1,6 @@
-# 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*
-
-# 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
« no previous file with comments | « components/cronet/android/BUILD.gn ('k') | components/cronet/android/sample/javatests/proguard.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698