What's the status of the Android work manager libr...
# koin
p
What's the status of the Android work manager library for Koin? It looks incomplete. Any subclass of
ListenableWorker
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.kt
f
the workmanager framework passes context to the
KoinWorkerFactory : 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() ) }
👍 1