Skip to content

Commit

Permalink
[Feat/#104] AppDIContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoe0929 committed Nov 27, 2024
1 parent 2b2ea22 commit 027a2e0
Showing 1 changed file with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
//
// AppDIConatiner.swift
// HMH-iOS
//
// Created by 이지희 on 11/27/24.
// Copyright © 2024 HMH-iOS. All rights reserved.
//

import SwiftUI

import Networks
import Data
import Domain

final class AppDIContainer: ObservableObject {

// Auth DI
func injectAuthDIContainer() -> AuthDIContainer {
let service = injectAuthService()
let serviceFactory = injectOAuthFactory()
return AuthDIContainer(services: service, oAuthServiceFactory: serviceFactory)
}

private func injectAuthService() -> AuthService {
return AuthService()
}

private func injectOAuthFactory() -> OAuthServiceFactory {
return OAuthServiceFactory()
}
}

0 comments on commit 027a2e0

Please sign in to comment.