Skip to content
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

Merged
merged 14 commits into from
Aug 19, 2024
Merged

Conversation

AndreyRyabitckiy
Copy link
Collaborator

Добавлен Shared Prefs

val noCurrency: Boolean?
) : Serializable {
companion object {
private const val serialVersionUID = 1L
Copy link
Owner

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
Copy link
Owner

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(),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Давай все будет в едином стиле как и выше, убери плиз ненужный перенос строки

Copy link
Owner

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(),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А что за метод такой provideGson? Может лучше сделать get(), при этом объявив gson в дата модуле как я писал выше?

@ElchinGasymov ElchinGasymov merged commit a45c9b1 into develop Aug 19, 2024
3 checks passed
@ElchinGasymov ElchinGasymov deleted the Career_Hub_Shared_Prefs branch August 19, 2024 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Сохранение и применение настроек фильтра
4 participants