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

[Feature] :: 탭바 세팅 #11

Merged
merged 16 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from 14 commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ public extension TargetDependency {
}

public extension TargetDependency.SPM {
static let ComposableArchitecture = TargetDependency.external(name: "ComposableArchitecture")
static let Alamofire = TargetDependency.external(name: "Alamofire")
static let Lottie = TargetDependency.external(name: "Lottie")
}

public extension Package {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ extension ModulePaths: ModularTargetPathConvertable {
public extension ModulePaths {
enum Feature: String, ModularTargetPathConvertable {
case BaseFeature
case MainTabFeature
case MainFeature
case WeeklyForecastFeature
case SettingFeature
case RootFeature
}
}

Expand Down
21 changes: 2 additions & 19 deletions Projects/App/Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,29 +33,12 @@ let targets: [Target] = [
+ ModulePaths.Domain.allCases.map { TargetDependency.domain(target: $0) }
+
[
.core(target: .Networking),
.target(name: "\(env.name)Widget")
.core(target: .Networking)
],
settings: .settings(
base: env.baseSetting
)
),
.target(
name: "\(env.name)Widget",
destinations: [.iPhone, .iPad],
product: .appExtension,
bundleId: "\(env.organizationName).\(env.name).ondoseeWidget",
deploymentTargets: .iOS("16.0"),
infoPlist: .file(path: "iOS-Widget/Support/Info.plist"),
sources: ["iOS-Widget/Sources/**"],
resources: ["iOS-Widget/Resources/**"],
entitlements: .file(path: "iOS-Widget/Support/ondoseeWidget.entitlements"),
scripts: scripts,
dependencies: [
.userInterface(target: .DesignSystem)
],
settings: settings
),
)
]

let schemes: [Scheme] = [
Expand Down

This file was deleted.

This file was deleted.

25 changes: 0 additions & 25 deletions Projects/App/iOS-Widget/Resources/LaunchScreen.storyboard

This file was deleted.

This file was deleted.

62 changes: 0 additions & 62 deletions Projects/App/iOS-Widget/Support/Info.plist

This file was deleted.

Empty file.
10 changes: 9 additions & 1 deletion Projects/App/iOS/Sources/Application/OndoseeIOSApp.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
import SwiftUI
import RootFeature

@main
struct OndoseeIOSApp: App {
var body: some Scene {
WindowGroup {
EmptyView()
RootView(
store: .init(
initialState: .init(),
reducer: {
RootCore()
}
)
)
}
}
}
3 changes: 2 additions & 1 deletion Projects/Domain/BaseDomain/Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ let project = Project.module(
dependencies: [
.domain(target: .BaseDomain, type: .interface),
.core(target: .Networking, type: .interface),
.shared(target: .GlobalThirdPartyLibrary)
.shared(target: .GlobalThirdPartyLibrary),
.SPM.Alamofire
]
),
.tests(module: .domain(.BaseDomain), dependencies: [
Expand Down
3 changes: 2 additions & 1 deletion Projects/Feature/BaseFeature/Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ let project = Project.module(
.implements(module: .feature(.BaseFeature), product: .framework, dependencies: [
.feature(target: .BaseFeature, type: .interface),
.userInterface(target: .DesignSystem),
.shared(target: .GlobalThirdPartyLibrary)
.shared(target: .GlobalThirdPartyLibrary),
.SPM.ComposableArchitecture
]),
.tests(module: .feature(.BaseFeature), dependencies: [
.feature(target: .BaseFeature)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="17150" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="17150"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="PEd-7d-5j0">
<objects>
<viewController id="bU7-R8-ocO" sceneMemberID="viewController">
<view key="view" id="tOy-S4-hL0">
<rect key="frame" x="0.0" y="0.0" width="450" height="300"/>
<autoresizingMask key="autoresizingMask"/>
</view>
</viewController>
<customObject id="9uD-mB-xHs" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
</objects>
</scene>
</scenes>
</document>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// This is For Tuist
18 changes: 18 additions & 0 deletions Projects/Feature/MainFeature/Project.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import DependencyPlugin
import ProjectDescription
import ProjectDescriptionHelpers

let project = Project.module(
name: ModulePaths.Feature.MainFeature.rawValue,
targets: [
.implements(module: .feature(.MainFeature), dependencies: [
.feature(target: .BaseFeature)
]),
.tests(module: .feature(.MainFeature), dependencies: [
.feature(target: .MainFeature)
]),
.example(module: .feature(.MainFeature), dependencies: [
.feature(target: .MainFeature)
])
]
)
20 changes: 20 additions & 0 deletions Projects/Feature/MainFeature/Sources/MainCore.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import ComposableArchitecture
import Foundation

public struct MainCore: Reducer {
public init() {}
public struct State: Equatable {
public init() {}
}

public enum Action: Equatable {}

public var body: some Reducer<State, Action> {
Reduce { state, action in
switch action {

Check warning on line 14 in Projects/Feature/MainFeature/Sources/MainCore.swift

View workflow job for this annotation

GitHub Actions / 🧪 Test

will never be executed
default:
return .none
}
}
}
}
15 changes: 15 additions & 0 deletions Projects/Feature/MainFeature/Sources/MainView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import ComposableArchitecture
import DesignSystem
import SwiftUI

public struct MainView: View {
let store: StoreOf<MainCore>

public init(store: StoreOf<MainCore>) {
self.store = store
}

public var body: some View {
Text("Main View")
}
}
1 change: 1 addition & 0 deletions Projects/Feature/MainFeature/Sources/Sources.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// This is for Tuist
2 changes: 2 additions & 0 deletions Projects/Feature/MainFeature/Tests/Tests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// This is For Tuist

Loading
Loading