blob: cf317c41e3a06cc739a45e8dabb9a114c4bbc5ad [file] [log] [blame]
Wojtek KaliciƄskid6b0b0f2019-06-28 11:41:29 +02001# 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;
Vsevolod Tolstopyatove60ec8e2019-12-12 12:10:21 +03006}
7
Roman Elizarovbf9509d2020-02-14 15:52:10 +03008-assumenosideeffects class kotlinx.coroutines.internal.FastServiceLoaderKt {
Vsevolod Tolstopyatove60ec8e2019-12-12 12:10:21 +03009 boolean ANDROID_DETECTED return true;
Roman Elizarovbf9509d2020-02-14 15:52:10 +030010}
11
12# Disable support for "Missing Main Dispatcher", since we always have Android main dispatcher
13-assumenosideeffects class kotlinx.coroutines.internal.MainDispatchersKt {
14 boolean SUPPORT_MISSING return false;
15}
16
17# Statically turn off all debugging facilities and assertions
18-assumenosideeffects class kotlinx.coroutines.DebugKt {
19 boolean getASSERTIONS_ENABLED() return false;
20 boolean getDEBUG() return false;
21 boolean getRECOVER_STACK_TRACES() return false;
Steve Elliottca095be2022-07-25 14:26:10 +000022}