Skip to content

Commit

Permalink
init :: 프로젝트 세팅
Browse files Browse the repository at this point in the history
  • Loading branch information
juyeong525 committed Sep 26, 2023
1 parent 3961b60 commit e0ba3f5
Show file tree
Hide file tree
Showing 44 changed files with 851 additions and 69 deletions.
106 changes: 43 additions & 63 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Xcode ###
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
Expand All @@ -22,69 +51,20 @@ DerivedData/
*.perspectivev3
!default.perspectivev3

## Obj-C/Swift specific
*.hmap
### Xcode Patch ###
*.xcodeproj/*
!*.xcodeproj/project.pbxproj
!*.xcodeproj/xcshareddata/
!*.xcworkspace/contents.xcworkspacedata
/*.gcno

## App packaging
*.ipa
*.dSYM.zip
*.dSYM
### Projects ###
*.xcodeproj
*.xcworkspace

## Playgrounds
timeline.xctimeline
playground.xcworkspace
### Tuist derived files ###
graph.dot
Derived/

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
# *.xcodeproj
#
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/
#
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build/

# Accio dependency management
Dependencies/
.accio/

# fastlane
#
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
#
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/
### Tuist managed dependencies ###
Tuist/Dependencies
1 change: 1 addition & 0 deletions .tuist-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.23.1
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
generate:
tuist fetch
tuist generate
3 changes: 3 additions & 0 deletions Plugins/DependencyPlugin/Plugin.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import ProjectDescription

let plugin = Plugin(name: "DependencyPlugin")
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import ProjectDescription

public extension TargetDependency {
struct Projects {}
struct Modules {}
}

public extension TargetDependency.Projects {
static let core = TargetDependency.project(
target: "Core",
path: .relativeToRoot("Projects/Core")
)
static let data = TargetDependency.project(
target: "Data",
path: .relativeToRoot("Projects/Data")
)
static let domain = TargetDependency.project(
target: "Domain",
path: .relativeToRoot("Projects/Domain")
)
static let flow = TargetDependency.project(
target: "Flow",
path: .relativeToRoot("Projects/Flow")
)
static let presentation = TargetDependency.project(
target: "Presentation",
path: .relativeToRoot("Projects/Presentation")
)
}

public extension TargetDependency.Modules {
static let thirdPartyLib = TargetDependency.project(
target: "ThirdPartyLib",
path: .relativeToRoot("Projects/Modules/ThirdPartyLib")
)
static let appNetwork = TargetDependency.project(
target: "AppNetwork",
path: .relativeToRoot("Projects/Modules/AppNetwork")
)
static let designSystem = TargetDependency.project(
target: "DesignSystem",
path: .relativeToRoot("Projects/Modules/DesignSystem")
)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import ProjectDescription

public extension TargetDependency {
enum SPM {}
}

public extension TargetDependency.SPM {
static let RxSwift = TargetDependency.external(name: "RxSwift")
static let RxCocoa = TargetDependency.external(name: "RxCocoa")
static let Nimble = TargetDependency.external(name: "Nimble")
static let Quick = TargetDependency.external(name: "Quick")
static let SnapKit = TargetDependency.external(name: "SnapKit")
static let Then = TargetDependency.external(name: "Then")
static let RxFlow = TargetDependency.external(name: "RxFlow")
static let Swinject = TargetDependency.external(name: "Swinject")
}
3 changes: 3 additions & 0 deletions Plugins/EnviromentPlugin/Plugin.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import ProjectDescription

let plugin = Plugin(name: "EnviromentPlugin")
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import Foundation
import ProjectDescription

public struct ProjectEnvironment {
public let name: String
public let organizationName: String
public let deploymentTarget: DeploymentTarget
public let platform: Platform
}

public let env = ProjectEnvironment(
name: "JOBIS-DSM-iOS-v2",
organizationName: "com.team.return",
deploymentTarget: .iOS(targetVersion: "15.0", devices: .iphone, supportsMacDesignedForIOS: true),
platform: .iOS
)
14 changes: 14 additions & 0 deletions Projects/App/Project.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import ProjectDescription
import ProjectDescriptionHelpers
import DependencyPlugin

let project = Project.makeModule(
name: "JOBIS-DSM-iOS-v2",
platform: .iOS,
product: .app,
dependencies: [
.Projects.flow
],
resources: ["Resources/**"],
infoPlist: .file(path: "Support/Info.plist")
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"images" : [
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "20x20"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "20x20"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "29x29"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "29x29"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "40x40"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "40x40"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "60x60"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "60x60"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "20x20"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "20x20"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "29x29"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "29x29"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "40x40"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "40x40"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "76x76"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "76x76"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "83.5x83.5"
},
{
"idiom" : "ios-marketing",
"scale" : "1x",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
6 changes: 6 additions & 0 deletions Projects/App/Resources/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
25 changes: 25 additions & 0 deletions Projects/App/Resources/LaunchScreen.storyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" 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="13104.12"/>
<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"/>
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</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>
Loading

0 comments on commit e0ba3f5

Please sign in to comment.