aboutsummaryrefslogtreecommitdiff
path: root/core/consumer-proguard-rules.pro
diff options
context:
space:
mode:
Diffstat (limited to 'core/consumer-proguard-rules.pro')
-rw-r--r--core/consumer-proguard-rules.pro9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/consumer-proguard-rules.pro b/core/consumer-proguard-rules.pro
new file mode 100644
index 0000000..38d2cf1
--- /dev/null
+++ b/core/consumer-proguard-rules.pro
@@ -0,0 +1,9 @@
+# Prevent Proguard from inlining methods that are intentionally extracted to ensure locals have a
+# constrained liveness scope by the GC. This is needed to avoid keeping previous request references
+# alive for an indeterminate amount of time. See also https://github.com/google/volley/issues/114
+-keepclassmembers,allowshrinking,allowobfuscation class com.android.volley.NetworkDispatcher {
+ void processRequest();
+}
+-keepclassmembers,allowshrinking,allowobfuscation class com.android.volley.CacheDispatcher {
+ void processRequest();
+}