-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Dagger tries to load NContentObserverJob on <5.0 #4147
Comments
Maybe something like this? |
Yes, this boils down to having an interface that hides a platform specific implementation.
This is a way to go with our own code, but it could be a bit tricky for any existing platform-related that does not give much flexibility with subclassing/implementing interface.
Android APIs are really badly designed, sadly.
I'll check it out this evening and get back to you.
Reverting di around this particular class could be a simplest solution for the time being until we roll out a correct fix for this issue.
Cheers,
Chris
…On June 14, 2019 7:40:08 AM UTC, Tobias Kaminsky ***@***.***> wrote:
Maybe something like this?
https://stackoverflow.com/questions/34274795/dagger2-is-it-possible-to-inject-based-on-android-version
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#4147 (comment)
|
Thanks for this great idea how to solve it. |
Ok, in such case I can possibly supply a proper fix for this mergable when you get back. |
I think that optimal solution would be to migrate it to https://developer.android.com/reference/androidx/work/WorkManager This official library abstracts away platform differences betwen API levels. We could probably also migrate evernote tasks too. |
Quick fix: #4171 - I removed dagger DI. |
This request did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you! |
This request did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you! |
PR exists |
This PR was meant to help push 3.7.0 out of the door only. I'm ok with merging it however, as it has minimal impact anyway. In longer term I'd rather kill this |
That is a good way to go. |
NContentObserverJob is >=Lollipop and such it is not compiled/accessible on <5.0.
@ezaquarii do you have an idea how to fix this?
Maybe we need two different ComponentsModule, depending on API?
This needs to be fixed before 3.7.0 can be released.
The text was updated successfully, but these errors were encountered: