[Android] Proguard: Add kotlinx rules

Geoffrey Métais git at videolan.org
Thu May 2 13:22:30 CEST 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu May  2 11:21:54 2019 +0200| [fc066820b21edf0dbc10f489d97a5f5b7a07a33a] | committer: Geoffrey Métais

Proguard: Add kotlinx rules

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

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

diff --git a/vlc-android/proguard.cfg b/vlc-android/proguard.cfg
index 92acb25f9..402a50da0 100644
--- a/vlc-android/proguard.cfg
+++ b/vlc-android/proguard.cfg
@@ -71,8 +71,12 @@
 # Kotlinx
 -keep class kotlinx.coroutines.internal.MainDispatcherFactory { *; }
 -keep class kotlinx.coroutines.android.AndroidExceptionPreHandler { *; }
+-keep class kotlinx.coroutines.CoroutineExceptionHandler { *; }
 -keep class kotlinx.coroutines.android.AndroidDispatcherFactory { *; }
-
+-keep class kotlin.Result { *; }
+-keepclassmembernames class kotlinx.** {
+    volatile <fields>;
+}
 # Retrofit
 # Retrofit does reflection on generic parameters. InnerClasses is required to use Signature and
 # EnclosingMethod is required to use InnerClasses.



More information about the Android mailing list