-
Notifications
You must be signed in to change notification settings - Fork 758
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
Feature/bma/arch fixes #7239
Feature/bma/arch fixes #7239
Conversation
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 remarks
/** | ||
* Contains synchronous methods to create permalinks from the Session. | ||
*/ | ||
class PermalinkUseCase @Inject constructor( |
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.
Thats a bit weird, a UseCase should only offer one method, as it's supposed to encapsulate one business rule
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.
Yes, this is not really a UseCase, rather a Proxy. Which name do you suggest?
|
||
@Inject lateinit var sessionListener: SessionListener |
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 of the properties were kept private on purpose, we are losing this. I don't like having @Inject in Base Activity/Fragment class
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.
All the injected members cannot be private. So on my side this is not much worth than before.
84b6cd3
to
ff830a8
Compare
…ate.personalizationState`
…tate.personalizationState`
6bca813
to
822f06f
Compare
SonarCloud Quality Gate failed. |
Type of change
Content
Fix some issues in our inject class members. There are some other issues, but I stop here for now.
Motivation and context
Avoid duplicated code, avoid injecting Session in the Views (Activity/Fragment)
Screenshots / GIFs
NA
Tests
Tested devices
Checklist