-
Notifications
You must be signed in to change notification settings - Fork 4
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
Добавлен Shared Prefs #112
Conversation
val noCurrency: Boolean? | ||
) : Serializable { | ||
companion object { | ||
private const val serialVersionUID = 1L |
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 networkClient: NetworkClient | ||
private val networkClient: NetworkClient, | ||
private val sharedPreferences: SharedPreferences, | ||
private val gson: Gson |
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.
В дата модуле нет дефиниции factory { Gson() }
@@ -24,6 +24,8 @@ val interactorModule = module { | |||
} | |||
|
|||
factory<FilterInteractor> { | |||
FilterInteractorImpl(repository = get()) | |||
FilterInteractorImpl( | |||
repository = get(), |
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.
Давай все будет в едином стиле как и выше, убери плиз ненужный перенос строки
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.
Или тут кодстайл ругается?
FilterRepositoryImpl(networkClient = get()) | ||
FilterRepositoryImpl( | ||
networkClient = get(), | ||
gson = provideGson(), |
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.
А что за метод такой provideGson? Может лучше сделать get(), при этом объявив gson в дата модуле как я писал выше?
Добавлен Shared Prefs