From 2a2661f066277d8f7d9377ab9f6efc4bde9e697b Mon Sep 17 00:00:00 2001 From: DafabHoid Date: Fri, 1 Jun 2018 14:35:03 +0200 Subject: [PATCH] Downloader: Fix crash on loading unfinished downloads from .giga files This is a fixup, which fixes the crash in release builds, too. It keeps proguard from removing the new method "private void readObject(ObjectInputStream)", which is only called by the VM, but not from the code. --- app/proguard-rules.pro | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index fbe5ab23f..20596c6eb 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -42,3 +42,9 @@ -dontwarn javax.annotation.** # A resource is loaded with a relative path so the package of this class must be preserved. -keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase +-keepclassmembers class * implements java.io.Serializable { + static final long serialVersionUID; + !static !transient ; + private void writeObject(java.io.ObjectOutputStream); + private void readObject(java.io.ObjectInputStream); +}