-
Notifications
You must be signed in to change notification settings - Fork 53
[BWA-155] Copy reduced APIService and EnvironmentService into AuthenticatorShared #1504
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1504 +/- ##
==========================================
- Coverage 89.66% 85.86% -3.80%
==========================================
Files 781 991 +210
Lines 48815 58987 +10172
==========================================
+ Hits 43768 50648 +6880
- Misses 5047 8339 +3292 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Great job, no security vulnerabilities found in this Pull Request |
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.
Looks good, just a comment for future improvement.
defaultHeadersRequestHandler = DefaultHeadersRequestHandler( | ||
appName: "Bitwarden_Authenticator_Mobile", | ||
appVersion: Bundle.main.appVersion, | ||
buildNumber: Bundle.main.buildNumber, | ||
systemDevice: UIDevice.current | ||
) |
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.
♻️ I think we should refactor this at some point (perhaps when moving it to the Kit) to be able to test the values we're padding to the default headers request handler. Because right now if we change any of this all the tests will pass just fine. But we can definitely do it in another PR so it updates also the PM side one.
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.
100% agree
🎟️ Tracking
https://bitwarden.atlassian.net/browse/BWA-155
📔 Objective
To continue the process of moving the
ConfigService
intoBitwardenKit
, this brings slimmed-down versions ofAPIService
andEnvironmentService
intoAuthenticatorShared
. These slimmed-down versions don't have a concept of an account, shortcutting bringing account-aware things such asTokenService
intoBitwardenKit
. Protocols, however, now live inBitwardenKit
.At some point in the future more work can be done to unify these and bring them more firmly into
BitwardenKit
, but that will probably require bringing a lot of account-related infrastructure intoBitwardenKit
, which would imply that BWA would also become account-aware.⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes