Skip to content

Commit

Permalink
[chore] #171 FeatureSplash 모듈 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
ShapeKim98 committed Jan 17, 2025
1 parent 5e3fdd3 commit 8a77235
Show file tree
Hide file tree
Showing 8 changed files with 112 additions and 3 deletions.
8 changes: 8 additions & 0 deletions Projects/Feature/FeatureSplash/Resources/Resource.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//
// Dummy.stencil.swift
// ProjectDescriptionHelpers
//
// Created by 김도형 on 6/16/24.
//

import Foundation
8 changes: 8 additions & 0 deletions Projects/Feature/FeatureSplash/Sources/Source.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//
// Dummy.stencil.swift
// ProjectDescriptionHelpers
//
// Created by 김도형 on 6/16/24.
//

import Foundation
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13142" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12042"/>
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="obG-Y5-kRd">
<rect key="frame" x="0.0" y="626.5" width="375" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="App" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
<rect key="frame" x="0.0" y="202" width="375" height="43"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="Bcu-3y-fUS" firstAttribute="centerX" secondItem="obG-Y5-kRd" secondAttribute="centerX" id="5cz-MP-9tL"/>
<constraint firstItem="Bcu-3y-fUS" firstAttribute="centerX" secondItem="GJd-Yh-RWb" secondAttribute="centerX" id="Q3B-4B-g5h"/>
<constraint firstItem="obG-Y5-kRd" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" constant="20" symbolic="YES" id="SfN-ll-jLj"/>
<constraint firstAttribute="bottom" secondItem="obG-Y5-kRd" secondAttribute="bottom" constant="20" id="Y44-ml-fuU"/>
<constraint firstItem="GJd-Yh-RWb" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="bottom" multiplier="1/3" constant="1" id="moa-c2-u7t"/>
<constraint firstItem="GJd-Yh-RWb" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" constant="20" symbolic="YES" id="x7j-FC-K8j"/>
</constraints>
<viewLayoutGuide key="safeArea" id="Bcu-3y-fUS"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
</document>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// App.stencil.swift
// ProjectDescriptionHelpers
//
// Created by 김도형 on 6/16/24.
//

import SwiftUI

@main
struct FeatureSplashDemoApp: App {
var body: some Scene {
WindowGroup {
// TODO: 루트 뷰 추가
}
}
}
8 changes: 8 additions & 0 deletions Projects/Feature/FeatureSplashTests/Resources/info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ENABLE_TESTING_SEARCH_PATHS</key>
<string>YES</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import ComposableArchitecture
import XCTest

@testable import FeatureSplashTests

final class FeatureSplashTestsTests: XCTestCase {
func test() {

}
}
16 changes: 13 additions & 3 deletions Tuist/ProjectDescriptionHelpers/Feature.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public enum Feature: String, CaseIterable {
case contentList = "ContentList"
case categorySharing = "CategorySharing"
case contentCard = "ContentCard"
case splash = "Splash"

public var target: Target {
return .makeTarget(
Expand All @@ -35,15 +36,20 @@ public enum Feature: String, CaseIterable {
}

public var demoTarget: Target {
var dependencies: [TargetDependency] = [.target(self.target)]
if self != .login && self != .splash {
dependencies.append(
.project(target: "FeatureSplash", path: .relativeToRoot("Projects/Feature"))
)
}

return .makeTarget(
name: "Feature\(self.rawValue)Demo",
product: .app,
bundleName: "Feature.\(self.rawValue)Demo",
infoPlist: .file(path: .relativeToRoot("Projects/App/Resources/Pokit-info.plist")),
resources: ["Feature\(self.rawValue)Demo/Resources/**"],
dependencies: [
.target(self.target)
]
dependencies: dependencies
)
}

Expand Down Expand Up @@ -89,6 +95,10 @@ public enum Feature: String, CaseIterable {
.project(target: "FeatureContentCard", path: .relativeToRoot("Projects/Feature"))
]
case .contentCard: return []
case .splash:
return [
.project(target: "FeatureLogin", path: .relativeToRoot("Projects/Feature"))
]
}
}
}
Binary file modified graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8a77235

Please sign in to comment.