From 70f369daabbe90d764600e458780b2016847b4a4 Mon Sep 17 00:00:00 2001 From: Lasta apps Date: Sun, 14 Jul 2024 12:46:46 +0300 Subject: [PATCH] refactor: Move settings related usecases to a new package --- .idea/inspectionProfiles/Project_Default.xml | 28 +++++++++++++++ .../main/domain/usecase/CheckLowBalanceUC.kt | 2 +- .../features/main/ui/vm/MainViewModel.kt | 2 +- .../features/settings/di/settingsModule.kt | 34 +++++++++---------- .../GetBalanceWarningThresholdUC.kt | 2 +- .../{ => settings}/GetDishLanguageUC.kt | 2 +- .../{ => settings}/GetImageScaleRangeUC.kt | 4 +-- .../usecase/{ => settings}/GetImageScaleUC.kt | 4 +-- .../{ => settings}/GetImagesOnMeteredUC.kt | 4 +-- .../usecase/{ => settings}/GetOliverRowUC.kt | 2 +- .../usecase/{ => settings}/GetPriceTypeUC.kt | 4 +-- .../{ => settings}/GetSettingsEverOpened.kt | 4 +-- .../usecase/{ => settings}/IsCompactView.kt | 4 +-- .../usecase/{ => settings}/OnSettingOpened.kt | 4 +-- .../SetBalanceWarningThresholdUC.kt | 2 +- .../{ => settings}/SetDishLanguageUC.kt | 2 +- .../{ => settings}/SetDishListModeUC.kt | 4 +-- .../usecase/{ => settings}/SetImageScaleUC.kt | 4 +-- .../{ => settings}/SetImagesOnMeteredUC.kt | 4 +-- .../usecase/{ => settings}/SetOliverRow.kt | 2 +- .../usecase/{ => settings}/SetPriceTypeUC.kt | 4 +-- .../settings/ui/vm/DishLanguageViewModel.kt | 2 +- .../settings/ui/vm/SettingsViewModel.kt | 14 ++++---- .../starting/ui/vm/PriceTypeViewModel.kt | 6 ++-- .../domain/usecase/GetTodayUserSettingsUC.kt | 12 +++---- .../features/today/ui/vm/DishListViewModel.kt | 6 ++-- .../features/today/ui/vm/TodayViewModel.kt | 7 +--- .../features/week/ui/vm/WeekViewModel.kt | 2 +- 28 files changed, 97 insertions(+), 74 deletions(-) rename app/src/main/kotlin/cz/lastaapps/menza/features/settings/domain/usecase/{ => settings}/GetBalanceWarningThresholdUC.kt (94%) rename app/src/main/kotlin/cz/lastaapps/menza/features/settings/domain/usecase/{ => settings}/GetDishLanguageUC.kt (94%) rename app/src/main/kotlin/cz/lastaapps/menza/features/settings/domain/usecase/{ => settings}/GetImageScaleRangeUC.kt (87%) rename app/src/main/kotlin/cz/lastaapps/menza/features/settings/domain/usecase/{ => settings}/GetImageScaleUC.kt (89%) rename app/src/main/kotlin/cz/lastaapps/menza/features/settings/domain/usecase/{ => settings}/GetImagesOnMeteredUC.kt (89%) rename app/src/main/kotlin/cz/lastaapps/menza/features/settings/domain/usecase/{ => settings}/GetOliverRowUC.kt (94%) rename app/src/main/kotlin/cz/lastaapps/menza/features/settings/domain/usecase/{ => settings}/GetPriceTypeUC.kt (89%) rename app/src/main/kotlin/cz/lastaapps/menza/features/settings/domain/usecase/{ => settings}/GetSettingsEverOpened.kt (89%) rename app/src/main/kotlin/cz/lastaapps/menza/features/settings/domain/usecase/{ => settings}/IsCompactView.kt (89%) rename app/src/main/kotlin/cz/lastaapps/menza/features/settings/domain/usecase/{ => settings}/OnSettingOpened.kt (89%) rename app/src/main/kotlin/cz/lastaapps/menza/features/settings/domain/usecase/{ => settings}/SetBalanceWarningThresholdUC.kt (94%) rename app/src/main/kotlin/cz/lastaapps/menza/features/settings/domain/usecase/{ => settings}/SetDishLanguageUC.kt (94%) rename app/src/main/kotlin/cz/lastaapps/menza/features/settings/domain/usecase/{ => settings}/SetDishListModeUC.kt (89%) rename app/src/main/kotlin/cz/lastaapps/menza/features/settings/domain/usecase/{ => settings}/SetImageScaleUC.kt (90%) rename app/src/main/kotlin/cz/lastaapps/menza/features/settings/domain/usecase/{ => settings}/SetImagesOnMeteredUC.kt (89%) rename app/src/main/kotlin/cz/lastaapps/menza/features/settings/domain/usecase/{ => settings}/SetOliverRow.kt (94%) rename app/src/main/kotlin/cz/lastaapps/menza/features/settings/domain/usecase/{ => settings}/SetPriceTypeUC.kt (90%) diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 03a24e92..da922640 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -1,6 +1,34 @@