[Android] Proguard: Add kotlinx rules

Geoffrey Métais git at videolan.org
Thu May 2 11:54:01 CEST 2019


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

Proguard: Add kotlinx rules

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

 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