1
0
Fork 0

For #4064: Dispatchers.Main still has long cold start delay (Phase II)

master
Colin Lee 2019-08-21 11:18:57 -05:00 committed by Jeff Boek
parent c475bc87cf
commit 48be48d1b8
2 changed files with 16 additions and 2 deletions

View File

@ -37,10 +37,24 @@
-keep class kotlinx.coroutines.internal.MainDispatcherFactory {}
-keep class kotlinx.coroutines.CoroutineExceptionHandler {}
-keepnames class kotlinx.coroutines.android.AndroidExceptionPreHandler {}
-keepnames class kotlinx.coroutines.android.AndroidDispatcherFactory {}
-keepclassmembernames class kotlinx.** {
volatile <fields>;
}
####################################################################################################
# Force removal of slow Dispatchers.Main ServiceLoader
#
# Please remove these rules when Android Gradle Plugin 3.6+ & coroutines 1.3.0+ are both in use
####################################################################################################
# Ensure the custom, fast service loader implementation is removed.
-assumevalues class kotlinx.coroutines.internal.MainDispatcherLoader {
boolean FAST_SERVICE_LOADER_ENABLED return false;
}
-checkdiscard class kotlinx.coroutines.internal.FastServiceLoader
####################################################################################################
# Mozilla Application Services
####################################################################################################

View File

@ -4,8 +4,8 @@
object Versions {
const val kotlin = "1.3.30"
const val coroutines = "1.2.1"
const val android_gradle_plugin = "3.4.1"
const val coroutines = "1.3.0-RC2"
const val android_gradle_plugin = "3.5.0"
const val rxAndroid = "2.1.0"
const val rxKotlin = "2.3.0"
const val rxBindings = "3.0.0-alpha2"