You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-keep class kotlinx.coroutines.android.AndroidDispatcherFactory {*;}
-keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {}
-keepnames class kotlinx.coroutines.CoroutineExceptionHandler {}
I was just looking at this as well, and it turns out that:
a) There is still a -keep rule in kotlinx-coroutines-android that should be removed, and
b) R8 natively supportsMETA-INF/services / ServiceLoader.load since 1.5, so there's also no need for -adaptresourcefilecontents / -adaptresourcefilenames
https://r8.googlesource.com/r8/+/c93796dcf5f2f74d7c3817926cbfbf3122096a74
R8 use
-adaptresourcefilenames
and-adaptresourcefilecontents
to handleMETA-INF/services/*
, which I think is better than-keep
or-keepnames
: https://www.guardsquare.com/manual/configuration/examples#resourcefilesThe following rules can be removed:
kotlinx.coroutines/ui/kotlinx-coroutines-android/src/AndroidExceptionPreHandler.kt
Lines 13 to 15 in 722cf5f
The text was updated successfully, but these errors were encountered: