-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Nexters/feature/#2_project_feature
프로젝트 구성
- Loading branch information
Showing
76 changed files
with
2,477 additions
and
19 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
78 changes: 78 additions & 0 deletions
78
App/ZiineApp.xcodeproj/xcshareddata/xcschemes/ZiineApp.xcscheme
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,78 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "1600" | ||
version = "1.7"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES" | ||
buildArchitectures = "Automatic"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "1A95D5942D44BF16008B7DEA" | ||
BuildableName = "ZiineApp.app" | ||
BlueprintName = "ZiineApp" | ||
ReferencedContainer = "container:ZiineApp.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
shouldAutocreateTestPlan = "YES"> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "1A95D5942D44BF16008B7DEA" | ||
BuildableName = "ZiineApp.app" | ||
BlueprintName = "ZiineApp" | ||
ReferencedContainer = "container:ZiineApp.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "1A95D5942D44BF16008B7DEA" | ||
BuildableName = "ZiineApp.app" | ||
BlueprintName = "ZiineApp" | ||
ReferencedContainer = "container:ZiineApp.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
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,104 @@ | ||
// | ||
// AppRootBuildable.swift | ||
// ZiineApp | ||
// | ||
// Created by Geon Woo lee on 1/29/25. | ||
// | ||
|
||
import UIKit | ||
import ArtworkFeature | ||
import ArtworkFeatureInterface | ||
import PostingFeature | ||
import PostingFeatureInterface | ||
|
||
protocol AppRootBuildable { | ||
func build() -> AppRootRouting | ||
} | ||
|
||
final class AppRootBuilder: AppRootBuildable { | ||
|
||
func build() -> AppRootRouting { | ||
let interactor = AppRootInteractor() | ||
|
||
let artworkBuilder = ArtworkViewBuilder() | ||
let postingBuilder = PostingViewBuilder() | ||
|
||
let router = AppRootRouter( | ||
interactor: interactor, | ||
artworkBuildable: artworkBuilder, | ||
postingBuildable: postingBuilder | ||
) | ||
|
||
return router | ||
} | ||
} | ||
|
||
|
||
protocol AppRootInteractable: ArtworkListener, PostingListener { } | ||
|
||
final class AppRootInteractor: AppRootInteractable {} | ||
|
||
protocol AppRootRouting { | ||
func configureTabs() -> [UIViewController] | ||
} | ||
|
||
final class AppRootRouter: AppRootRouting { | ||
|
||
var interactor: AppRootInteractable? | ||
|
||
private let artworkBuildable: ArtworkViewBuildable | ||
private var artworkRouting: ArtworkRouting? | ||
|
||
private let postingBuildable: PostingViewBuildable | ||
private var postingRouting: PostingRouting? | ||
|
||
init( | ||
interactor :AppRootInteractable, | ||
artworkBuildable: ArtworkViewBuildable, | ||
postingBuildable: PostingViewBuildable | ||
) { | ||
self.interactor = interactor | ||
|
||
self.artworkBuildable = artworkBuildable | ||
self.postingBuildable = postingBuildable | ||
} | ||
|
||
func configureTabs() -> [UIViewController] { | ||
let artworkRouting = artworkBuildable.build(with: interactor) | ||
self.artworkRouting = artworkRouting | ||
|
||
let postingRouting = postingBuildable.build(with: interactor) | ||
self.postingRouting = postingRouting | ||
|
||
let viewControllers = [ | ||
artworkRouting.viewController, | ||
postingRouting.viewController | ||
] | ||
|
||
return viewControllers | ||
} | ||
} | ||
|
||
protocol AppRootTabBarControllable { | ||
func setViewControllers(_ viewControllers: [UIViewController]) | ||
func build() -> UITabBarController | ||
} | ||
|
||
final class AppRootTabBarController: UITabBarController, AppRootTabBarControllable { | ||
|
||
override func viewDidLoad() { | ||
super.viewDidLoad() | ||
|
||
tabBar.isTranslucent = false | ||
tabBar.tintColor = .black | ||
tabBar.backgroundColor = .white | ||
} | ||
|
||
func setViewControllers(_ viewControllers: [UIViewController]) { | ||
super.setViewControllers(viewControllers, animated: false) | ||
} | ||
|
||
func build() -> UITabBarController { | ||
return self | ||
} | ||
} |
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
File renamed without changes.
Oops, something went wrong.