[Android] Proguard: keep AndroidExceptionPreHandler

Geoffrey Métais git at videolan.org
Thu Feb 1 14:31:55 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb  1 14:31:01 2018 +0100| [7380dbb707abd6e4f1c368d68f04894fd2cfc34c] | committer: Geoffrey Métais

Proguard: keep AndroidExceptionPreHandler

This class failed to load on some devices.

> https://code.videolan.org/videolan/vlc-android/commit/7380dbb707abd6e4f1c368d68f04894fd2cfc34c
---

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

diff --git a/vlc-android/proguard.cfg b/vlc-android/proguard.cfg
index 11b125bd4..57c28a31b 100644
--- a/vlc-android/proguard.cfg
+++ b/vlc-android/proguard.cfg
@@ -59,3 +59,6 @@
 -keep public class android.support.design.R$* { *; }
 
 -dontwarn android.support.**
+
+# The Android pre-handler for exceptions is loaded reflectively (via ServiceLoader).
+-keep class kotlinx.coroutines.experimental.android.AndroidExceptionPreHandler { *; }



More information about the Android mailing list