-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
62 changed files
with
664 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
// | ||
|
||
import UIKit | ||
|
||
import DesignSystem | ||
|
||
extension AppDelegate { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import UIKit | ||
|
||
@main | ||
final class AppDelegate: UIResponder, UIApplicationDelegate { | ||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | ||
return true | ||
} | ||
|
||
// MARK: UISceneSession Lifecycle | ||
|
||
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { | ||
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) | ||
} | ||
|
||
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import UIKit | ||
|
||
import AlarmFeature | ||
|
||
final class SceneDelegate: UIResponder, UIWindowSceneDelegate { | ||
var window: UIWindow? | ||
|
||
func scene( | ||
_ scene: UIScene, | ||
willConnectTo session: UISceneSession, | ||
options connectionOptions: UIScene.ConnectionOptions | ||
) { | ||
guard let windowScene = (scene as? UIWindowScene) else { return } | ||
window = UIWindow(windowScene: windowScene) | ||
let navigationController = UINavigationController() | ||
window?.rootViewController = navigationController | ||
window?.makeKeyAndVisible() | ||
|
||
let alarmCoordinator = DefaultAlarmCoordinator( | ||
navigationController: navigationController | ||
) | ||
alarmCoordinator.start() | ||
} | ||
|
||
func sceneDidDisconnect(_ scene: UIScene) { | ||
} | ||
|
||
func sceneDidBecomeActive(_ scene: UIScene) { | ||
} | ||
|
||
func sceneWillResignActive(_ scene: UIScene) { | ||
} | ||
|
||
func sceneWillEnterForeground(_ scene: UIScene) { | ||
} | ||
|
||
func sceneDidEnterBackground(_ scene: UIScene) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ources/Coordinator/AlarmCoordinator.swift → ...ources/Coordinator/AlarmCoordinator.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import Foundation | ||
|
||
import PresentationDependency | ||
import FeatureDependency | ||
|
||
public protocol AlarmCoordinator: Coordinator { | ||
} |
2 changes: 1 addition & 1 deletion
2
...Coordinator/DefaultAlarmCoordinator.swift → ...Coordinator/DefaultAlarmCoordinator.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...rm/Sources/ViewModel/AlarmViewModel.swift → ...re/Sources/ViewModel/AlarmViewModel.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import Foundation | ||
|
||
import Domain | ||
import PresentationDependency | ||
import FeatureDependency | ||
|
||
import RxSwift | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import UIKit | ||
|
||
@main | ||
final class AppDelegate: UIResponder, UIApplicationDelegate { | ||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | ||
return true | ||
} | ||
|
||
// MARK: UISceneSession Lifecycle | ||
|
||
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { | ||
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) | ||
} | ||
|
||
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import UIKit | ||
|
||
import BusStopFeature | ||
|
||
final class SceneDelegate: UIResponder, UIWindowSceneDelegate { | ||
var window: UIWindow? | ||
|
||
func scene( | ||
_ scene: UIScene, | ||
willConnectTo session: UISceneSession, | ||
options connectionOptions: UIScene.ConnectionOptions | ||
) { | ||
guard let windowScene = (scene as? UIWindowScene) else { return } | ||
window = UIWindow(windowScene: windowScene) | ||
let navigationController = UINavigationController() | ||
window?.rootViewController = navigationController | ||
window?.makeKeyAndVisible() | ||
|
||
let busstopCoordinator = DefaultBusStopCoordinator( | ||
navigationController: navigationController | ||
) | ||
busstopCoordinator.start() | ||
} | ||
|
||
func sceneDidDisconnect(_ scene: UIScene) { | ||
} | ||
|
||
func sceneDidBecomeActive(_ scene: UIScene) { | ||
} | ||
|
||
func sceneWillResignActive(_ scene: UIScene) { | ||
} | ||
|
||
func sceneWillEnterForeground(_ scene: UIScene) { | ||
} | ||
|
||
func sceneDidEnterBackground(_ scene: UIScene) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
Projects/Feature/BusStopFeature/Sources/Coordinator/BusStopCoordinator.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Foundation | ||
|
||
import FeatureDependency | ||
|
||
public protocol BusStopCoordinator: Coordinator { | ||
} |
22 changes: 22 additions & 0 deletions
22
Projects/Feature/BusStopFeature/Sources/Coordinator/DafaultBusStopCoordinator.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import UIKit | ||
|
||
import FeatureDependency | ||
|
||
public final class DefaultBusStopCoordinator: BusStopCoordinator { | ||
public var childCoordinators: [Coordinator] = [] | ||
public var navigationController: UINavigationController | ||
|
||
public init(navigationController: UINavigationController) { | ||
self.navigationController = navigationController | ||
} | ||
|
||
public func start() { | ||
let busstopViewController = BusStopViewController( | ||
viewModel: BusStopViewModel() | ||
) | ||
navigationController.setViewControllers( | ||
[busstopViewController], | ||
animated: false | ||
) | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
Projects/Feature/BusStopFeature/Sources/ViewController/BusStopViewController.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import UIKit | ||
|
||
import RxSwift | ||
|
||
public final class BusStopViewController: UIViewController { | ||
private let viewModel: BusStopViewModel | ||
|
||
public init(viewModel: BusStopViewModel) { | ||
self.viewModel = viewModel | ||
super.init(nibName: nil, bundle: nil) | ||
} | ||
|
||
required init?(coder: NSCoder) { | ||
fatalError("init(coder:) has not been implemented") | ||
} | ||
|
||
public override func viewDidLoad() { | ||
super.viewDidLoad() | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
Projects/Feature/BusStopFeature/Sources/ViewModel/BusStopViewModel.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import Foundation | ||
|
||
import Domain | ||
import FeatureDependency | ||
|
||
import RxSwift | ||
|
||
public final class BusStopViewModel: ViewModel { | ||
private let disposeBag = DisposeBag() | ||
|
||
public init() { | ||
} | ||
|
||
public func transform(input: Input) -> Output { | ||
let output = Output() | ||
return output | ||
} | ||
} | ||
|
||
extension BusStopViewModel { | ||
public struct Input { | ||
} | ||
|
||
public struct Output { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import UIKit | ||
|
||
@main | ||
final class AppDelegate: UIResponder, UIApplicationDelegate { | ||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | ||
return true | ||
} | ||
|
||
// MARK: UISceneSession Lifecycle | ||
|
||
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { | ||
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) | ||
} | ||
|
||
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import UIKit | ||
|
||
import HomeFeature | ||
|
||
final class SceneDelegate: UIResponder, UIWindowSceneDelegate { | ||
var window: UIWindow? | ||
|
||
func scene( | ||
_ scene: UIScene, | ||
willConnectTo session: UISceneSession, | ||
options connectionOptions: UIScene.ConnectionOptions | ||
) { | ||
guard let windowScene = (scene as? UIWindowScene) else { return } | ||
window = UIWindow(windowScene: windowScene) | ||
let navigationController = UINavigationController() | ||
window?.rootViewController = navigationController | ||
window?.makeKeyAndVisible() | ||
|
||
let homeCoordinator = DefaultHomeCoordinator( | ||
navigationController: navigationController | ||
) | ||
homeCoordinator.start() | ||
} | ||
|
||
func sceneDidDisconnect(_ scene: UIScene) { | ||
} | ||
|
||
func sceneDidBecomeActive(_ scene: UIScene) { | ||
} | ||
|
||
func sceneWillResignActive(_ scene: UIScene) { | ||
} | ||
|
||
func sceneWillEnterForeground(_ scene: UIScene) { | ||
} | ||
|
||
func sceneDidEnterBackground(_ scene: UIScene) { | ||
} | ||
} |
Oops, something went wrong.