Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tuist 에러 고침 #133

Merged
merged 19 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
♻️:: [#132] 먹젠 app 파일 수정
  • Loading branch information
jjunhaa0211 committed Nov 8, 2023
commit 4ea8a76bd6bcf9b1c61f55055d966f1f4f3006fb
42 changes: 17 additions & 25 deletions Projects/Mukgen/Sources/Application/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,37 +1,29 @@
import UIKit

@UIApplicationMain
@main
class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?


func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
return true
}

func applicationWillResignActive(_ application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
return UIInterfaceOrientationMask.portrait
}

func applicationDidEnterBackground(_ application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
func application(
_ application: UIApplication,
configurationForConnecting connectingSceneSession: UISceneSession,
options: UIScene.ConnectionOptions
) -> UISceneConfiguration {
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
}

func applicationWillEnterForeground(_ application: UIApplication) {
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}

func applicationDidBecomeActive(_ application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}

func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}


func application(
_ application: UIApplication,
didDiscardSceneSessions sceneSessions: Set<UISceneSession>
) {}
}
21 changes: 8 additions & 13 deletions Projects/Mukgen/Sources/Application/SceneDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,30 +1,25 @@
import UIKit
import Core
import Presentation

class SceneDelegate: UIResponder, UIWindowSceneDelegate {

var window: UIWindow?

func scene(_ scene: UIScene,
willConnectTo session: UISceneSession,
options connectionOptions: UIScene.ConnectionOptions) {
guard let scene = (scene as? UIWindowScene) else { return }

window = UIWindow(frame: scene.coordinateSpace.bounds)
window?.windowScene = scene
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let windowScene = (scene as? UIWindowScene) else { return }
window = UIWindow(windowScene: windowScene)

let moduleFactory = ModuleFactory.shared
let rootViewController = moduleFactory.companyListVC()

window?.rootViewController = UINavigationController(rootViewController: rootViewController)
let rootViewController = moduleFactory.DeliveryVC()
window?.rootViewController = rootViewController
window?.makeKeyAndVisible()
}

func sceneDidDisconnect(_ scene: UIScene) {}

func sceneDidBecomeActive(_ scene: UIScene) {
UIApplication.shared.applicationIconBadgeNumber = 0
}
func sceneDidBecomeActive(_ scene: UIScene) {}

func sceneWillResignActive(_ scene: UIScene) {}

Expand Down
104 changes: 89 additions & 15 deletions Projects/Mukgen/Sources/ModuleFactory/ModuleFactory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,101 @@ public class ModuleFactory {

extension ModuleFactory: ModuleFactoryInterface {

public func loginVC() -> Presentation.LoginViewController {
let loginVC = LoginViewController()

return loginVC
public func textAlertVC() -> Presentation.TextAlertViewController {

let vc = TextAlertViewController()

return vc
}

public func signupVC() -> Presentation.SignupViewController {
let signupVC = SignupViewController()
public func TestPickerVC() -> Presentation.TestPickerViewController {
let vc = TestPickerViewController()

return signupVC
return vc
}

public func tabBarVC() -> TapBarViewController {
let tabbarVC = TapBarViewController()

return tabbarVC
public func TestLoginVC() -> Presentation.TestLoginViewController {
let vc = TestLoginViewController()
return vc
}

public func companyListVC() -> CompanyListViewController {
let companyListVC = CompanyListViewController()

return companyListVC
public func InputTelVC() -> Presentation.InputTelViewController {
let vc = InputTelViewController()
return vc
}

public func TendiousVC() -> Presentation.TendinousViewController {
let vc = TendinousViewController()
return vc
}

public func NewMealPostVC() -> NewMealPostViewController {
let vc = NewMealPostViewController()
return vc
}

public func BoardVC() -> Presentation.BoardMainViewController {
let vc = BoardMainViewController()
return vc
}

public func DeliveryVC() -> Presentation.DeliveryViewController {
let vc = DeliveryViewController()
return vc
}

public func TapBarVC() -> Presentation.TapBarViewController {
let vc = TapBarViewController()
return vc
}

public func MainVC() -> Presentation.MainViewController {
let vc = MainViewController()
return vc
}

public func InputNickNameVC() -> Presentation.InputNicknameViewController {
let vc = InputNicknameViewController()
return vc
}

public func InputIdPasswordVC() -> Presentation.InputIdPasswordViewController {
let vc = InputIdPasswordViewController()
return vc
}

public func StartPageVC() -> Presentation.StartPageViewController {
let vc = StartPageViewController()
return vc
}

public func StartMukgenVC() -> Presentation.StartMukgenViewController {
let vc = StartMukgenViewController()
return vc
}

public func InputEmailVC() -> Presentation.InputEmailViewController {
let vc = InputEmailViewController()
return vc
}

public func checkEmailVC() -> Presentation.CheckEmailViewController {
let vc = CheckEmailViewController()
return vc
}

public func myPageVC() -> Presentation.MyPageViewController {
let vc = MyPageViewController()
return vc
}

public func selectMealVC() -> Presentation.SelectMealViewController {
let vc = SelectMealViewController()
return vc
}

public func loginVC() -> Presentation.LoginViewController {
let vc = LoginViewController()
return vc
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import UIKit
import Core
import RxMoya

extension UIViewController {
private class func instantiateControllerInStoryboard<T: UIViewController>(_ storyboard: UIStoryboard, identifier: String) -> T {
Expand Down