[Android] Proguard: keep MainDispatcherFactory class

Geoffrey Métais git at videolan.org
Tue Dec 18 17:01:44 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Dec 18 17:00:38 2018 +0100| [3cea685f7e7aaccf679fd3d0093ae268620c31a7] | committer: Geoffrey Métais

Proguard: keep MainDispatcherFactory class

Probably fetch by reflection, caused release build to crash at startup

> https://code.videolan.org/videolan/vlc-android/commit/3cea685f7e7aaccf679fd3d0093ae268620c31a7
---

 vlc-android/proguard.cfg | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/proguard.cfg b/vlc-android/proguard.cfg
index ce4bdffba..b645f4d2b 100644
--- a/vlc-android/proguard.cfg
+++ b/vlc-android/proguard.cfg
@@ -68,5 +68,5 @@
 
 -dontwarn android.support.**
 
-# The Android pre-handler for exceptions is loaded reflectively (via ServiceLoader).
--keep class kotlinx.coroutines.experimental.android.AndroidExceptionPreHandler { *; }
+# Kotlinx
+-keep class kotlinx.coroutines.internal.MainDispatcherFactory { *; }



More information about the Android mailing list