• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Allow R8 to optimize away the FastServiceLoader.
2# Together with ServiceLoader optimization in R8
3# this results in direct instantiation when loading Dispatchers.Main
4-assumenosideeffects class kotlinx.coroutines.internal.MainDispatcherLoader {
5    boolean FAST_SERVICE_LOADER_ENABLED return false;
6}
7
8-assumenosideeffects class kotlinx.coroutines.internal.FastServiceLoaderKt {
9    boolean ANDROID_DETECTED return true;
10}
11
12-keep class kotlinx.coroutines.android.AndroidDispatcherFactory {*;}
13
14# Disable support for "Missing Main Dispatcher", since we always have Android main dispatcher
15-assumenosideeffects class kotlinx.coroutines.internal.MainDispatchersKt {
16    boolean SUPPORT_MISSING return false;
17}
18
19# Statically turn off all debugging facilities and assertions
20-assumenosideeffects class kotlinx.coroutines.DebugKt {
21    boolean getASSERTIONS_ENABLED() return false;
22    boolean getDEBUG() return false;
23    boolean getRECOVER_STACK_TRACES() return false;
24}