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
NTV-569 : Migrate Signin/Login related classes to kotlin #1651
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1651 +/- ##
============================================
- Coverage 78.40% 78.33% -0.07%
+ Complexity 1864 1863 -1
============================================
Files 353 353
Lines 16728 16739 +11
Branches 2085 2098 +13
============================================
- Hits 13115 13113 -2
Misses 2408 2408
- Partials 1205 1218 +13
Continue to review full report at Codecov.
|
|
||
private fun clearFacebookSession(e: FacebookException) { | ||
LoginManager.getInstance().logOut() | ||
} |
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.
Noticed there are a bunch of codecov warnings here, should these be covered by tests? Is this a codecov error related to the other issues we've been having with it?
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 am not sure how to test Facebook callbacks @Arkariang any suggestions
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.
For being able to properly test those callbacks we should've created a wrapper client around FacebookSDK (Dependency Inversion Principle, as we do for Apollo, Retrofit, or Braze -> DIP, that implementation it's out of the scope of this task for sure.
FYI I think there were some conversations around deprecating Facebook as login method, but nothing conclusive yet, so it's ok for now to not have coverage on those areas yet.
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.
Left a comment about code coverage on one particular view model, otherwise tested on staging and prod and everything is working as it should! 🚀
…into imartin/NTV-570 * 'imartin/NTV-570' of github.com:kickstarter/android-oss: NTV-569 : Migrate Signin/Login related classes to kotlin (#1651)
📲 What
Migrate classes from java to kotlin
LoginReason
LoginToutViewModel
SignupViewModel
TwoFactorViewModel
LoginPopupMenu
🤔 Why
Migrate All classes to java.
📋 QA
test Message Sign/Sigup 2FA
Story 📖
https://kickstarter.atlassian.net/browse/NTV-569