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

Remove use of LiveData for fetching DirectionsRoute and updating Location #879

Merged
merged 13 commits into from
Apr 27, 2018

Conversation

danesfeder
Copy link
Contributor

@danesfeder danesfeder commented Apr 23, 2018

Closes #750

We currently use LiveData to update new DirectionsRoutes (such as an off-route event) and Location updates (previously RouteViewModel and LocationViewModel).

This PR removes these vm's and replaces them with classes that has callbacks and can operate in the background without issue.

TODO:

  • Unit tests
  • Instrumentation tests
  • Fix leak in NavigationCamera

@danesfeder danesfeder added bug Defect to be fixed. navigation-ui labels Apr 23, 2018
@danesfeder danesfeder added this to the v0.13.0 milestone Apr 23, 2018
@danesfeder danesfeder self-assigned this Apr 23, 2018
@danesfeder danesfeder force-pushed the dan-consolidate-vm branch 2 times, most recently from 38f7d63 to aefe7e8 Compare April 25, 2018 14:57
@danesfeder
Copy link
Contributor Author

@Guardiola31337 @devotaaabel would love some eyes here for possible suggestions on how to make NavigationViewModel, NavigationRouteEngine, and NavigationLocationEngine more testable

@danesfeder
Copy link
Contributor Author

@Guardiola31337 @devotaaabel okay this is ready for 👀 - if you have some better ideas for tests, please leave them as feedback. Confirmed re-routes are occurring successfully in the background 🚀

I decided to create some instrumentation tests as well, but because this PR is so big, I'm going to create a follow up PR to address this.

@danesfeder danesfeder changed the title [WIP] Remove use of LiveData for fetching DirectionsRoute and updating Location Remove use of LiveData for fetching DirectionsRoute and updating Location Apr 27, 2018
@danesfeder danesfeder merged commit 96cd589 into master Apr 27, 2018
@danesfeder danesfeder deleted the dan-consolidate-vm branch April 27, 2018 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Defect to be fixed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant