Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion DevLog/Domain/UseCase/Auth/Delete/DeleteAuthUseCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
//

protocol DeleteAuthUseCase {
var repository: AuthenticationRepository { get }
func execute() async throws
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

final class DeleteAuthUseCaseImpl: DeleteAuthUseCase {
let repository: AuthenticationRepository
private let repository: AuthenticationRepository

init(_ repository: AuthenticationRepository) {
self.repository = repository
Expand Down
4 changes: 3 additions & 1 deletion DevLog/Domain/UseCase/Auth/Session/AuthSessionUseCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
// Created by 최윤진 on 12/31/25.
//

import Combine

protocol AuthSessionUseCase {
var repository: AuthSessionRepository { get }
var signedInPublisher: AnyPublisher<Bool, Never> { get }
func execute(_ signIn: Bool)
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@
// Created by 최윤진 on 12/31/25.
//

import Combine

final class AuthSessionUseCaseImpl: AuthSessionUseCase {
let repository: AuthSessionRepository
private let repository: AuthSessionRepository

var signedInPublisher: AnyPublisher<Bool, Never> {
repository.signedInPublisher
}

init(_ repository: AuthSessionRepository) {
self.repository = repository
Expand Down
1 change: 0 additions & 1 deletion DevLog/Domain/UseCase/Auth/SignIn/SignInUseCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
//

protocol SignInUseCase {
var repository: AuthenticationRepository { get }
func execute(_ provider: AuthProvider) async throws
}
2 changes: 1 addition & 1 deletion DevLog/Domain/UseCase/Auth/SignIn/SignInUseCaseImpl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

final class SignInUseCaseImpl: SignInUseCase {
let repository: AuthenticationRepository
private let repository: AuthenticationRepository

init(_ repository: AuthenticationRepository) {
self.repository = repository
Expand Down
1 change: 0 additions & 1 deletion DevLog/Domain/UseCase/Auth/SignOut/SignOutUseCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
//

protocol SignOutUseCase {
var repository: AuthenticationRepository { get }
func execute() async throws
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

final class SignOutUseCaseImpl: SignOutUseCase {
let repository: AuthenticationRepository
private let repository: AuthenticationRepository

init(_ repository: AuthenticationRepository) {
self.repository = repository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
//

protocol FetchPinnedTodosUseCase {
var repository: TodoRepository { get }
func execute() async throws -> [Todo]
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

final class FetchPinnedTodosUseCaseImpl: FetchPinnedTodosUseCase {
let repository: TodoRepository
private let repository: TodoRepository

init(_ repository: TodoRepository) {
self.repository = repository
Expand Down
1 change: 0 additions & 1 deletion DevLog/Domain/UseCase/Todo/Upsert/UpsertTodoUseCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
//

protocol UpsertTodoUseCase {
var repository: TodoRepository { get }
func execute(_ todo: Todo) async throws
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

final class UpsertTodoUseCaseImpl: UpsertTodoUseCase {
let repository: TodoRepository
private let repository: TodoRepository

init(_ repository: TodoRepository) {
self.repository = repository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
//

protocol FetchPushSettingsUseCase {
var repository: PushNotificationRepository { get }
func execute() async throws -> PushNotificationSettings
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

final class FetchPushNotificationSettingsUseCaseImpl: FetchPushSettingsUseCase {
let repository: PushNotificationRepository
private let repository: PushNotificationRepository

init(_ repository: PushNotificationRepository) {
self.repository = repository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
//

protocol FetchTodosByKindUseCase {
var repository: TodoRepository { get }
func execute(_ kind: TodoKind) async throws -> [Todo]
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

final class FetchTodosByKindUseCaseImpl: FetchTodosByKindUseCase {
let repository: TodoRepository
private let repository: TodoRepository

init(_ repository: TodoRepository) {
self.repository = repository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
//

protocol FetchUserDataUseCase {
var repository: UserDataRepository { get }
func execute() async throws -> UserProfile
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

final class FetchUserDataUseCaseImpl: FetchUserDataUseCase {
let repository: UserDataRepository
private let repository: UserDataRepository

init(_ repository: UserDataRepository) {
self.repository = repository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
//

protocol UpdatePushSettingsUseCase {
var repository: PushNotificationRepository { get }
func execute(_ settings: PushNotificationSettings) async throws
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

final class UpdatePushSettingsUseCaseImpl: UpdatePushSettingsUseCase {
let repository: PushNotificationRepository
private let repository: PushNotificationRepository

init(_ repository: PushNotificationRepository) {
self.repository = repository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
//

protocol UpsertStatusMessageUseCase {
var repository: UserDataRepository { get }
func execute(_ message: String) async throws
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

final class UpsertStatusMessageUseCaseImpl: UpsertStatusMessageUseCase {
let repository: UserDataRepository
private let repository: UserDataRepository

init(_ repository: UserDataRepository) {
self.repository = repository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
//

protocol FetchWebPagesUseCase {
var repository: WebPageRepository { get }
func execute() async throws -> [WebPage]
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

final class FetchWebPagesUseCaseImpl: FetchWebPagesUseCase {
let repository: WebPageRepository
private let repository: WebPageRepository

init(_ repository: WebPageRepository) {
self.repository = repository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
//

protocol AddWebPageUseCase {
var repository: WebPageRepository { get }
func execute(_ urlString: String) async throws -> WebPage
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

final class AddWebPageUseCaseImpl: AddWebPageUseCase {
let repository: WebPageRepository
private let repository: WebPageRepository

init(_ repository: WebPageRepository) {
self.repository = repository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
//

protocol DeleteWebPageUseCase {
var repository: WebPageRepository { get }
func execute(_ urlString: String) async throws
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

final class DeleteWebPageUseCaseImpl: DeleteWebPageUseCase {
var repository: WebPageRepository
private let repository: WebPageRepository

init(_ repository: WebPageRepository) {
self.repository = repository
Expand Down
2 changes: 1 addition & 1 deletion DevLog/Presentation/ViewModel/LoginViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ final class LoginViewModel: Store {
self.signOutUseCase = signOutUseCase
self.sessionUseCase = sessionUseCase

self.sessionUseCase.repository.signedInPublisher
self.sessionUseCase.signedInPublisher
.removeDuplicates()
.receive(on: DispatchQueue.main)
.sink { [weak self] signIn in
Expand Down