-
Notifications
You must be signed in to change notification settings - Fork 7
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
Use Dependency Injection Everywhere #582
Conversation
03a27bd
to
777eeda
Compare
87f62d7
to
91266ed
Compare
@@ -3,14 +3,16 @@ | |||
// BeeSwift | |||
// | |||
// Created by Andy Brett on 3/14/17. | |||
// Copyright 2017 APB. All rights reserved. | |||
// Copyright © 2017 APB. All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
Some MRs ago these were all removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doh. I wonder how this merge conflict snuck in
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
swiftformat can be configured to adjust file headers and it could be run as part of a general format-code or ci-check/build step.
Summary
Remove almost all references to ServiceLocator. Instead use a dependency injection pattern to pass required objects in via constructor parameters.
Validation
Launch the app in simulator. Verify I can navigate to the impacted views: