diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 0334d2276..88e43df83 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -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 ; } + +#################################################################################################### +# 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 #################################################################################################### diff --git a/buildSrc/src/main/java/Dependencies.kt b/buildSrc/src/main/java/Dependencies.kt index 1215073d7..1b66d73ca 100644 --- a/buildSrc/src/main/java/Dependencies.kt +++ b/buildSrc/src/main/java/Dependencies.kt @@ -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"