-
Notifications
You must be signed in to change notification settings - Fork 174
Уф. Готово Dagger 2 #131
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
base: master
Are you sure you want to change the base?
Уф. Готово Dagger 2 #131
Conversation
antonkazakov
left a comment
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.
Привет. Оставил комментарии
|
|
||
|
|
||
| @Module(includes = [MainBindModule::class]) | ||
| abstract class MainModule { |
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.
А зачем тут класс? Сделай просто object и все, заинлайни
| import dagger.Module | ||
|
|
||
| @Module | ||
| object FragmentReceiverModule { |
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.
А зачем этот модуль?
| import dagger.Module | ||
|
|
||
| @Module | ||
| object FragmentProducerModule { |
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.
И этот
| private val colorGenerator: ColorGenerator, | ||
| private val context: Context | ||
| ) { | ||
| private val context: Context, |
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.
Здесь будет утечка контекста тк андродовская ViewModel живет дольше чем активити. Убери суперкласс
No description provided.