-
Notifications
You must be signed in to change notification settings - Fork 0
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
[#13] [Integrate] As a logged-in user, I can see the Home screen when I relaunch the app #66
Conversation
7a726bb
to
69b2719
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #66 +/- ##
===========================================
+ Coverage 49.45% 50.78% +1.33%
===========================================
Files 33 36 +3
Lines 366 382 +16
===========================================
+ Hits 181 194 +13
- Misses 185 188 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
69b2719
to
f2de9fe
Compare
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.
Only one tiny concern, the rest lgtm
return HasUserLoggedInUseCase(ref.watch(tokenDataSourceProvider)); | ||
}); | ||
|
||
class HasUserLoggedInUseCase implements NoParamsUseCase<bool> { |
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.
(Optional)
class HasUserLoggedInUseCase implements NoParamsUseCase<bool> { | |
class CheckUserLoggedInUseCase implements NoParamsUseCase<bool> { |
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.
lgtm
51dddf1
to
492d7fe
Compare
What happened 👀
HasUserLoggedInUseCase
.SplashViewModel
, which depends onHasUserLoggedInUseCase
, and integrated withSplashScreen
.SecureStorage
andTokenDataSource
.Insight 📝
Ideally, if Dart supports static method on an abstract class:
To overcome this, I had to separate the serializer from the model (serializable), which I think it's not too bad. More detail read here 🙏
The other issue was that I couldn't get some tests of
TokenDataSource
to run correctly. It returnsEven I made the following call before that.
Not sure there's a mistake or a
mockito
thing. I'll keep investigating 🙏Proof Of Work 📹
KeepLoggedIn.mp4