Peter Farlow
04/28/2021, 11:22 PMListenableWorker
requires both a WorkerParameters
and Context
parameter, but the KoinWorkerFactory doesn't provide the context https://github.com/InsertKoinIO/koin/blob/master/android/koin-androidx-workmanager/src/main/java/org/koin/androidx/workmanager/factory/KoinWorkerFactory.ktFabio
04/29/2021, 12:49 AMKoinWorkerFactory : WorkerFactory
as a method parameter though,
but not really a problem since koin can also provide applicationcontext, so you don't need to worry with parameter order when you write the dsl `
worker { GruntWorker ( get(), get(), get() ) }