Skip to content

Commit 833f73b

Browse files
chore: 식단화면에서 abTestUseCase 삭제
1 parent 7febcde commit 833f73b

4 files changed

Lines changed: 3 additions & 11 deletions

File tree

Koin/Apps/NotificationHandler.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ final class NotificationHandler {
5959
changeNotiUseCase: changeNotiUseCase,
6060
fetchNotiListUsecase: fetchNotiListUseCase,
6161
changeNotiDetailUseCase: changeNotiDetailUseCase,
62-
assignAbTestUseCase: DefaultAssignAbTestUseCase(abTestRepository: DefaultAbTestRepository(service: DefaultAbTestService())),
6362
sharedDiningItem: CurrentDiningTime(date: date.toDateFromYYMMDD() ?? Date(), diningType: DiningType(rawValue: "\(type)") ?? .breakfast)
6463
)
6564
let diningViewController = DiningViewController(viewModel: viewModel)
@@ -170,7 +169,7 @@ final class NotificationHandler {
170169
let changeNotiUseCase = DefaultChangeNotiUseCase(notiRepository: notiRepository)
171170
let changeNotiDetailUseCase = DefaultChangeNotiDetailUseCase(notiRepository: notiRepository)
172171
let fetchNotiListUseCase = DefaultFetchNotiListUseCase(notiRepository: notiRepository)
173-
let viewModel = DiningViewModel(fetchDiningListUseCase: fetchDiningListUseCase, logAnalyticsEventUseCase: logAnalyticsEventUseCase, dateProvder: dateProvider, shareMenuListUseCase: shareMenuListUseCase, diningLikeUseCase: diningLikeUseCase, changeNotiUseCase: changeNotiUseCase, fetchNotiListUsecase: fetchNotiListUseCase, changeNotiDetailUseCase: changeNotiDetailUseCase, assignAbTestUseCase: DefaultAssignAbTestUseCase(abTestRepository: DefaultAbTestRepository(service: DefaultAbTestService())))
172+
let viewModel = DiningViewModel(fetchDiningListUseCase: fetchDiningListUseCase, logAnalyticsEventUseCase: logAnalyticsEventUseCase, dateProvder: dateProvider, shareMenuListUseCase: shareMenuListUseCase, diningLikeUseCase: diningLikeUseCase, changeNotiUseCase: changeNotiUseCase, fetchNotiListUsecase: fetchNotiListUseCase, changeNotiDetailUseCase: changeNotiDetailUseCase)
174173
let diningViewController = DiningViewController(viewModel: viewModel)
175174
diningViewController.title = "식단"
176175
return diningViewController
@@ -179,17 +178,13 @@ final class NotificationHandler {
179178
private func createShopViewController() -> UIViewController {
180179
let shopService = DefaultShopService()
181180
let shopRepository = DefaultShopRepository(service: shopService)
182-
183181
let fetchShopListUseCase = DefaultFetchShopListUseCase(shopRepository: shopRepository)
184182
let fetchEventListUseCase = DefaultFetchEventListUseCase(shopRepository: shopRepository)
185183
let fetchShopCategoryListUseCase = DefaultFetchShopCategoryListUseCase(shopRepository: shopRepository)
186184
let fetchShopBenefitUseCase = DefaultFetchShopBenefitUseCase(shopRepository: shopRepository)
187185
let fetchBeneficialShopUseCase = DefaultFetchBeneficialShopUseCase(shopRepository: shopRepository)
188-
let searchShopUseCase = DefaultSearchShopUseCase(shopRepository: shopRepository)
189-
190186
let logAnalyticsEventUseCase = DefaultLogAnalyticsEventUseCase(repository: GA4AnalyticsRepository(service: GA4AnalyticsService()))
191187
let getUserScreenTimeUseCase = DefaultGetUserScreenTimeUseCase()
192-
193188
let viewModel = ShopViewModel(
194189
fetchShopListUseCase: fetchShopListUseCase,
195190
fetchEventListUseCase: fetchEventListUseCase,

Koin/Presentation/Dining/Dining/DiningViewModel.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ final class DiningViewModel: ViewModelProtocol {
3535
private let changeNotiUseCase: ChangeNotiUseCase
3636
private let changeNotiDetailUseCase: ChangeNotiDetailUseCase
3737
private let fetchNotiListUseCase: FetchNotiListUseCase
38-
private let assignAbTestUseCase: AssignAbTestUseCase
3938
private let dateProvider: DateProvider
4039
private var subscriptions: Set<AnyCancellable> = []
4140
private var sharedDiningItem: CurrentDiningTime?
@@ -53,7 +52,6 @@ final class DiningViewModel: ViewModelProtocol {
5352
changeNotiUseCase: ChangeNotiUseCase,
5453
fetchNotiListUsecase: FetchNotiListUseCase,
5554
changeNotiDetailUseCase: ChangeNotiDetailUseCase,
56-
assignAbTestUseCase: AssignAbTestUseCase,
5755
sharedDiningItem: CurrentDiningTime? = nil) {
5856
self.fetchDiningListUseCase = fetchDiningListUseCase
5957
self.logAnalyticsEventUseCase = logAnalyticsEventUseCase
@@ -63,7 +61,6 @@ final class DiningViewModel: ViewModelProtocol {
6361
self.changeNotiUseCase = changeNotiUseCase
6462
self.fetchNotiListUseCase = fetchNotiListUsecase
6563
self.changeNotiDetailUseCase = changeNotiDetailUseCase
66-
self.assignAbTestUseCase = assignAbTestUseCase
6764
self.sharedDiningItem = sharedDiningItem
6865
}
6966

Koin/Presentation/Home/Home/HomeViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ extension HomeViewController {
635635
let changeNotiUseCase = DefaultChangeNotiUseCase(notiRepository: notiRepository)
636636
let changeNotiDetailUseCase = DefaultChangeNotiDetailUseCase(notiRepository: notiRepository)
637637
let fetchNotiListUseCase = DefaultFetchNotiListUseCase(notiRepository: notiRepository)
638-
let viewModel = DiningViewModel(fetchDiningListUseCase: fetchDiningListUseCase, logAnalyticsEventUseCase: logAnalyticsEventUseCase, dateProvder: dateProvider, shareMenuListUseCase: shareMenuListUseCase, diningLikeUseCase: diningLikeUseCase, changeNotiUseCase: changeNotiUseCase, fetchNotiListUsecase: fetchNotiListUseCase, changeNotiDetailUseCase: changeNotiDetailUseCase, assignAbTestUseCase: DefaultAssignAbTestUseCase(abTestRepository: DefaultAbTestRepository(service: DefaultAbTestService())))
638+
let viewModel = DiningViewModel(fetchDiningListUseCase: fetchDiningListUseCase, logAnalyticsEventUseCase: logAnalyticsEventUseCase, dateProvder: dateProvider, shareMenuListUseCase: shareMenuListUseCase, diningLikeUseCase: diningLikeUseCase, changeNotiUseCase: changeNotiUseCase, fetchNotiListUsecase: fetchNotiListUseCase, changeNotiDetailUseCase: changeNotiDetailUseCase)
639639
let diningViewController = DiningViewController(viewModel: viewModel)
640640
diningViewController.title = "식단"
641641
navigationController?.pushViewController(diningViewController, animated: true)

Koin/Presentation/Home/ServiceSelect/ServiceSelectViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ extension ServiceSelectViewController {
238238
let changeNotiUseCase = DefaultChangeNotiUseCase(notiRepository: notiRepository)
239239
let changeNotiDetailUseCase = DefaultChangeNotiDetailUseCase(notiRepository: notiRepository)
240240
let fetchNotiListUseCase = DefaultFetchNotiListUseCase(notiRepository: notiRepository)
241-
let viewModel = DiningViewModel(fetchDiningListUseCase: fetchDiningListUseCase, logAnalyticsEventUseCase: logAnalyticsEventUseCase, dateProvder: dateProvider, shareMenuListUseCase: shareMenuListUseCase, diningLikeUseCase: diningLikeUseCase, changeNotiUseCase: changeNotiUseCase, fetchNotiListUsecase: fetchNotiListUseCase, changeNotiDetailUseCase: changeNotiDetailUseCase, assignAbTestUseCase: DefaultAssignAbTestUseCase(abTestRepository: DefaultAbTestRepository(service: DefaultAbTestService())))
241+
let viewModel = DiningViewModel(fetchDiningListUseCase: fetchDiningListUseCase, logAnalyticsEventUseCase: logAnalyticsEventUseCase, dateProvder: dateProvider, shareMenuListUseCase: shareMenuListUseCase, diningLikeUseCase: diningLikeUseCase, changeNotiUseCase: changeNotiUseCase, fetchNotiListUsecase: fetchNotiListUseCase, changeNotiDetailUseCase: changeNotiDetailUseCase)
242242
let diningViewController = DiningViewController(viewModel: viewModel)
243243
diningViewController.title = "식단"
244244
navigationController?.pushViewController(diningViewController, animated: true)

0 commit comments

Comments
 (0)