Closed mikehardy closed 2 years ago
@mikehardy Just updating dependency locally in a new branch to localbroadcastmanager 1.1.0 will not work , better if it is replaced with LiveData https://developer.android.com/topic/libraries/architecture/livedata
Okay, that is essentially what the deprecation notice on the android developer site says. How do you propose integrating LiveData into these two areas then? If you could lay out a rough design, or maybe put up a really rough pull request, that would help to reason about it
Noticed that nobody has updated on this issue, but how do we feel if we just replace localbroadcastmanager with green robot's EventBus? Reason being is that the transition will be much smoother because a lot of the code can be simplified. I'll try getting a rough design or ideally a PR in the coming days but in theory it shouldn't be too complicated and it'll fix the depreciation issue.
I'm open to that. It's a well maintained project and I use it in some other repos.
Hello đź‘‹, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically
@mikehardy @david-allison I would like to work on this issue.
Thanks!
Hello @oyeraghib, are you still working on it?
@s-deepak-kumar I am still working on it. Actually it's not a easy transition from localbroadcastmanager to LiveData and ViewModel. A proper way has to be constructed to make it work. If you have gone through the codebase for that and have information around LiveData and ViewModel I would love to hear your views about the same.
Expected steps + outcome:
Need to handle new deprecation
Originally posted by @mikehardy in https://github.com/ankidroid/Anki-Android/issues/10183#issuecomment-1012140708