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

Integration Groundwork #50

Merged
merged 4 commits into from
Aug 11, 2024
Merged

Integration Groundwork #50

merged 4 commits into from
Aug 11, 2024

Conversation

aaronbrethorst
Copy link
Member

Refactors parts of the OTPKit codebase to make integration into another app and testing both much easier. The key changes here are:

  • Rename LocationManagerService to TripPlannerService to better reflect its purpose
  • Inject all of TripPlannerService's dependencies into it via initializer
  • Remove the pre-defined TripPlannerService singleton
  • Create a new TripPlannerService singleton in the OTPKitDemo project and inject it into the OTPKit object hierarchy

TripPlannerService needs to be moved away from its current singleton model for easier integration into other apps and easier testing. The first step towards this is by exposing an initializer that lets a caller instantiate the service with all of its dependencies.
This change will help us integrate into other apps and make it much, much easier to unit test OTPKit
It's easier to type, more closely reflects its purpose, and matches its class.
@aaronbrethorst aaronbrethorst merged commit 4b145d9 into main Aug 11, 2024
4 checks passed
@aaronbrethorst aaronbrethorst deleted the integration branch August 11, 2024 20:54
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.

1 participant