https://kotlinlang.org logo
Title
l

louiscad

10/22/2018, 11:41 AM
@adibfara You can see how I did it for unit tests in the AndroidX Lifecycle integration PR in kotlinx.coroutines repo.
a

adibfara

10/22/2018, 11:42 AM
Thanks, I'll take a look
and does kotlin find this dispatcher with reflection?
v

Vsevolod Tolstopyatov [JB]

10/22/2018, 11:57 AM
do i have to add it in my project?
No, it is an internal API and it is not exposed to end users
l

louiscad

10/22/2018, 12:39 PM
@adibfara Well, if you want the test dispatcher to work, you should keep this resource file (not an Android resource, a java one), because it is required for the
ServiceLoader
to work.