Skip to content

Commit

Permalink
fix: Stub 레포 삭제 후 Default 레포 연동
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyxxn committed Nov 24, 2024
1 parent ac3d2b3 commit f5a3c48
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import UIKit
import MHCore
import MHData
import MHDomain
import MHFoundation
import MHPresentation
Expand Down Expand Up @@ -36,7 +37,7 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
do {
DIContainer.shared.register(
UserHouseRepository.self,
object: StubUserHouseRepository()
object: DefaultUserHouseRepository()
)

let userHouseRepository = try DIContainer.shared.resolve(UserHouseRepository.self)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import MHDomain

public struct DefaultUserHouseRepository: UserHouseRepository {
public init() { }

public func fetchUserHouse() async -> UserHouse {
// TODO: CoreData로부터 꺼내오기

Check warning on line 7 in MemorialHouse/MHData/MHData/Repository/DefaultUserHouseRepository.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Todo Violation: TODOs should be resolved (CoreData로부터 꺼내오기) (todo)

Check warning on line 7 in MemorialHouse/MHData/MHData/Repository/DefaultUserHouseRepository.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Todo Violation: TODOs should be resolved (CoreData로부터 꺼내오기) (todo)
return UserHouse(name: "", categories: [], bookCovers: [])
}
}
8 changes: 0 additions & 8 deletions MemorialHouse/MHData/MHData/Temp.swift

This file was deleted.

0 comments on commit f5a3c48

Please sign in to comment.