levibostian / Wendy-Android

Build offline first Android mobile apps. Remove loading screens, perform tasks instantly.
https://levibostian.github.io/Wendy-Android/wendy/
MIT License
64 stars 16 forks source link

Remove need for `PendingTasksFactory` #17

Open levibostian opened 6 years ago

levibostian commented 6 years ago

The purpose of the PendingTasksFactory is to construct instances of PendingTask subclasses when Wendy has decided it is time for that PendingTask to run.

Problems with PendingTasksFactory:

Can we remove the need to create a PendingTasksFactory?

levibostian commented 6 years ago

Funny, after creating this issue I have found a reason to keep PendingTasksFactory!

So, while I continue to use Wendy in my everyday apps, I will decide what to do with PendingTasksFactory which would include keeping it.

levibostian commented 5 years ago

Some of the inspiration and design of the Wendy lib is from evernote/android-job. If you notice from the docs, it uses a tag/factory functionality as well to map a job to a string.

With that in mind, I am not sure if there is currently a way to fix this.