You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we have a base interface for our factories that looks like this
interfaceAssistedWorkerFactory<T:ListenableWorker> {
funcreate(context:Context, params:WorkerParameters): T
}
with 2.3.7, this now results in this compilation exception
e: com.squareup.anvil.compiler.api.AnvilCompilationException: Back-end (JVM) Internal error: Invalid return type: slack.workmanager.workerfactory.AssistedWorkerFactory.create. An assisted factory's abstract method must return a type with an @AssistedInject-annotated constructor.
File being compiled: (17,3) in /mnt/buildkite-agent/builds/mbr-buildkite-agent-android-iad-ju4p-1/slack/android-pull-request/services/work-manager/src/main/kotlin/slack/workmanager/workerfactory/AssistedWorkerFactory.kt
at com.squareup.anvil.compiler.codegen.dagger.AssistedFactoryGenerator$AssistedFactoryFunction$Companion$toAssistedFactoryFunction$returnTypeLazy$2.invoke(AssistedFactoryGenerator.kt:313)
I think this is an issue with it not properly reading the generic type. As an example, this is what we are doing
we have a base interface for our factories that looks like this
with 2.3.7, this now results in this compilation exception
I think this is an issue with it not properly reading the generic type. As an example, this is what we are doing
The text was updated successfully, but these errors were encountered: