[Android] Proguard: keep constructors in release

Geoffrey Métais git at videolan.org
Wed Dec 12 17:09:54 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Dec 12 17:09:21 2018 +0100| [8ec490b84306a1494f09510f8664baa8f42d96a9] | committer: Geoffrey Métais

Proguard: keep constructors in release

> https://code.videolan.org/videolan/vlc-android/commit/8ec490b84306a1494f09510f8664baa8f42d96a9
---

 vlc-android/proguard.cfg | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/vlc-android/proguard.cfg b/vlc-android/proguard.cfg
index 57c28a31b..ce4bdffba 100644
--- a/vlc-android/proguard.cfg
+++ b/vlc-android/proguard.cfg
@@ -12,7 +12,15 @@
 # Same for MediaLibrary
 -keep class org.videolan.medialibrary.** { *; }
 
--keep public class * extends android.app.Activity
+-keep public class * extends android.app.Activity {
+    public <methods>;
+}
+-keep public class * extends android.app.Fragment {
+    public <methods>;
+}
+-keep public class * extends androidx.fragment.app.Fragment {
+    public <methods>;
+}
 -keep public class * extends android.app.Application
 -keep public class * extends android.app.Service
 -keep public class * extends android.content.BroadcastReceiver



More information about the Android mailing list