tree: c91d47c62b38ad300cdc798224fe6e46030e8d6e [path history] [tgz]
  2. android-unit-tests/
  3. animation-app/
  4. api/
  5. build.gradle.kts
  6. example-app/
  7. package.list
  8. resources/
  9. src/
  10. test/
  11. testdata/

Module kotlinx-coroutines-android

Provides Dispatchers.Main context for Android applications.

Read Guide to UI programming with coroutines for tutorial on this module.


R8 and ProGuard rules are bundled into this module. R8 is a replacement for ProGuard in Android ecosystem, it is enabled by default since Android gradle plugin 3.4.0 (3.3.0-beta also had it enabled). For best results it is recommended to use a recent version of R8, which produces a smaller binary.

When optimizations are enabled with R8 version 1.6.0 or later the following debugging features are permanently turned off to reduce the size of the resulting binary:

You can examine the corresponding rules in this file.


Provides Dispatchers.Main context for Android applications.