I am trying to create a custom Anvil CodeGenerator...
# squarelibraries
d
I am trying to create a custom Anvil CodeGenerator that binds my assisted worker factories onto a map, but the problem is that my WorkerFactory interface defines a method that has
android.content.Context
and
androidx.work.WorkerParameters
. I’m under the impression I cannot access these types from the CodeGenerator because it runs at build-time in JVM(
androidx.work:work-runtime
is in an AAR file as well) Is there any way to access these types from my code generation module? Thanks all