mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-15 18:12:54 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/4064: Update R8/ProGuard config for new Kotlin coroutines library (https://github.com/mozilla-mobile/fenix/pull/7218)
This commit is contained in:
parent
e91ad0086c
commit
fbe4ebc5d9
13
app/proguard-rules.pro
vendored
13
app/proguard-rules.pro
vendored
@ -33,14 +33,17 @@
|
|||||||
|
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
# Force removal of slow Dispatchers.Main ServiceLoader
|
# 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.
|
# Allow R8 to optimize away the FastServiceLoader.
|
||||||
-assumevalues class kotlinx.coroutines.internal.MainDispatcherLoader {
|
# Together with ServiceLoader optimization in R8
|
||||||
|
# this results in direct instantiation when loading Dispatchers.Main
|
||||||
|
-assumenosideeffects class kotlinx.coroutines.internal.MainDispatcherLoader {
|
||||||
boolean FAST_SERVICE_LOADER_ENABLED return false;
|
boolean FAST_SERVICE_LOADER_ENABLED return false;
|
||||||
}
|
}
|
||||||
-checkdiscard class kotlinx.coroutines.internal.FastServiceLoader
|
|
||||||
|
-assumenosideeffects class kotlinx.coroutines.internal.FastServiceLoader {
|
||||||
|
boolean ANDROID_DETECTED return true;
|
||||||
|
}
|
||||||
|
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
# Mozilla Application Services
|
# Mozilla Application Services
|
||||||
|
Loading…
Reference in New Issue
Block a user