Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make KoinWorkerFactory match androidx.work.WorkerFactory API #1055

Conversation

fmatosqg
Copy link

Cherry-pick commit from master into 2.2.2 #1018

Origin androidx.work.WorkerFactory has @Nullable annotation on
abstract method createWorker. Inherited KoinWorkerFactory has
overriden return type of createWorker with non-null ListenableWorker.
In some edge cases that leads to
crash with org.koin.core.error.NoBeanDefFoundException.

Origin `androidx.work.WorkerFactory` has `@Nullable` annotation on
abstract method `createWorker`. Inherited `KoinWorkerFactory` has
overriden return type of `createWorker` with non-null `ListenableWorker`.
In some edge cases that leads to
crash with `org.koin.core.error.NoBeanDefFoundException`.
@arnaudgiuliani arnaudgiuliani added this to the 2.3.0 milestone Mar 30, 2021
@arnaudgiuliani
Copy link
Member

is it also the case in master branch?

@arnaudgiuliani arnaudgiuliani modified the milestones: 2.3.0, 3.0.3 May 24, 2021
@fmatosqg
Copy link
Author

Yep, same case as 3.x.x versions.

Do you think this may help with #992 not finding WorkParameters to be injected?

@arnaudgiuliani arnaudgiuliani modified the milestones: 3.0.3, 2.3.0 Jun 10, 2021
@arnaudgiuliani
Copy link
Member

I close this, as it's outdated. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants