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

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

Issue 2626523003: Cronet: a framework for providing alternative Cronet implementations (Closed)
Patch Set: Updated api.txt Created 3 years, 11 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/cronet_impl_common_proguard.cfg
diff --git a/components/cronet/android/cronet_impl_common_proguard.cfg b/components/cronet/android/cronet_impl_common_proguard.cfg
index a4ecdcd3f588518b21c9fd9c8c443ab8f9e89042..905eabe820676bb940a463841fd27f5bd5eefe71 100644
--- a/components/cronet/android/cronet_impl_common_proguard.cfg
+++ b/components/cronet/android/cronet_impl_common_proguard.cfg
@@ -1,10 +1,9 @@
# Proguard config for apps that depend on cronet_impl_common_java.jar.
-# This constructor is called using the reflection from Cronet API (cronet_api.jar).
--keep class org.chromium.net.impl.CronetEngineBuilderImpl {
- public <init>(android.content.Context);
-}
-
# This class should be explicitly kept to avoid failure if
# class/merging/horizontal proguard optimization is enabled.
--keep class org.chromium.net.impl.ImplVersion
+-keep class org.chromium.net.impl.ImplVersion
+
+# Do not obfuscate this class for testing since some of the tests check the class
+# name in order to check that an instantiated engine is the Java one.
+-keep class org.chromium.net.impl.JavaCronetEngine
pauljensen 2017/01/18 17:03:04 Our production proguard files shouldn't have testi
kapishnikov 2017/01/19 01:25:24 Agree. I actually wanted to add it to the test pro

Powered by Google App Engine
This is Rietveld 408576698