83 lines
2.1 KiB
Swift
Executable File
83 lines
2.1 KiB
Swift
Executable File
// Copyright © 2025 VOID Software SA. All rights reserved.
|
|
|
|
import Foundation
|
|
import Swinject
|
|
|
|
final class ManagerAssembly: Assembly {
|
|
|
|
func assemble(container: Container) {
|
|
|
|
|
|
container.register(AppStateManager.self) { _ in
|
|
return AppStateManager()
|
|
}
|
|
.inObjectScope(.container)
|
|
|
|
container.register(GRDBDatabaseManager.self) { _ in
|
|
return GRDBDatabaseManager()
|
|
}
|
|
.inObjectScope(.container)
|
|
container.register(APIClient.self) { _ in
|
|
return APIClient()
|
|
}
|
|
.inObjectScope(.container)
|
|
|
|
container.register(EventsManager.self) { _ in
|
|
return EventsManager()
|
|
}
|
|
|
|
/*
|
|
|
|
|
|
|
|
container.register(ComicsBooksManager.self) { _ in
|
|
return ComicsBooksManager()
|
|
}
|
|
.inObjectScope(.container)
|
|
container.register(EventsManager.self) { _ in
|
|
return EventsManager()
|
|
}
|
|
.inObjectScope(.container)
|
|
|
|
// API Client
|
|
container.register(AuthorizationInterceptor.self) { _ in
|
|
return AuthorizationInterceptor()
|
|
}
|
|
.inObjectScope(.container)
|
|
|
|
container.register(APIClient.self) { _ in
|
|
return APIClient()
|
|
}
|
|
.inObjectScope(.container)
|
|
|
|
container.register(EventsManager.self) { _ in
|
|
return EventsManager()
|
|
}
|
|
.inObjectScope(.container)
|
|
container.register(EntityDetector.self) { _ in
|
|
return EntityDetector()
|
|
}
|
|
.inObjectScope(.container)
|
|
|
|
container.register(FileSystemManager.self) { _ in
|
|
return FileSystemManager()
|
|
}
|
|
.inObjectScope(.container)
|
|
|
|
container.register(FluxReaderAPI.self) { _ in
|
|
return FluxReaderAPI()
|
|
}
|
|
.inObjectScope(.container)
|
|
container.register(PreferencesManager.self) { _ in
|
|
return PreferencesManager()
|
|
}
|
|
.inObjectScope(.container)
|
|
|
|
container.register(NetworkMonitor.self) { _ in
|
|
return NetworkMonitor()
|
|
}
|
|
.inObjectScope(.container)
|
|
*/
|
|
}
|
|
}
|