Skip to content

Commit

Permalink
Update: 기본 설정 추가
Browse files Browse the repository at this point in the history
- resourceSynthesizers 커스텀 코드 주석
- asset 추가
- 테스트 파일 추가
  • Loading branch information
Minny27 committed Oct 20, 2023
1 parent fe8f58c commit fa04edf
Show file tree
Hide file tree
Showing 10 changed files with 129 additions and 15 deletions.
38 changes: 38 additions & 0 deletions Nagaza/Resources/Colors.xcassets/Color.colorset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0xFF",
"green" : "0xFF",
"red" : "0xFF"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0xFF",
"green" : "0xFF",
"red" : "0xFF"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
6 changes: 6 additions & 0 deletions Nagaza/Resources/Images.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
1 change: 0 additions & 1 deletion Nagaza/Sources/Feature/Map/MapViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ final class MapViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
view.backgroundColor = .blue

view.addSubview(MapView(frame: CGRect(x: 0, y: 0, width: 300, height: 300)))
}
}
Expand Down
35 changes: 35 additions & 0 deletions NagazaTests/NagazaTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
//
// NagazaTests.swift
// NagazaTests
//
// Created by SeungMin on 2023/10/20.
//

import XCTest

final class NagazaTests: XCTestCase {

override func setUpWithError() throws {
// Put setup code here. This method is called before the invocation of each test method in the class.
}

override func tearDownWithError() throws {
// Put teardown code here. This method is called after the invocation of each test method in the class.
}

func testExample() throws {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
// Any test you write for XCTest can be annotated as throws and async.
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
}

func testPerformanceExample() throws {
// This is an example of a performance test case.
self.measure {
// Put the code you want to measure the time of here.
}
}

}
41 changes: 41 additions & 0 deletions NagazaUITests/NagazaUITests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
//
// NagazaUITests.swift
// NagazaUITests
//
// Created by SeungMin on 2023/10/20.
//

import XCTest

final class NagazaUITests: XCTestCase {

override func setUpWithError() throws {
// Put setup code here. This method is called before the invocation of each test method in the class.

// In UI tests it is usually best to stop immediately when a failure occurs.
continueAfterFailure = false

// In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
}

override func tearDownWithError() throws {
// Put teardown code here. This method is called after the invocation of each test method in the class.
}

func testExample() throws {
// UI tests must launch the application that they test.
let app = XCUIApplication()
app.launch()

// Use XCTAssert and related functions to verify your tests produce the correct results.
}

func testLaunchPerformance() throws {
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) {
// This measures how long it takes to launch your application.
measure(metrics: [XCTApplicationLaunchMetric()]) {
XCUIApplication().launch()
}
}
}
}
18 changes: 8 additions & 10 deletions Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ final class BaseProjectFactory: ProjectFactory {
.external(name: "Lottie"),
.external(name: "Moya"),
.external(name: "SnapKit"),
.external(name: "Then")
.external(name: "Then"),
]

let infoPlist: [String: InfoPlist.Value] = [
Expand Down Expand Up @@ -85,13 +85,13 @@ final class BaseProjectFactory: ProjectFactory {
)

let resourceSynthesizers: [ResourceSynthesizer] = [
.custom(
name: "Lottie",
parser: .json,
extensions: ["lottie"]
),
// .custom(
// name: "Lottie",
// parser: .json,
// extensions: ["lottie"]
// ),
.assets(),
.fonts(),
.fonts()
]

func generateTarget() -> [Target] {
Expand Down Expand Up @@ -144,6 +144,4 @@ let project = Project(name: factory.projectName,
organizationName: factory.organizationName,
settings: factory.projectSettings,
targets: factory.generateTarget(),
resourceSynthesizers: factory.resourceSynthesizers
)

resourceSynthesizers: factory.resourceSynthesizers)
5 changes: 1 addition & 4 deletions Tuist/Config.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import ProjectDescription

let config = Config(
plugins: [
.git(url: "https://github.com/tuist/tuist-plugin-lint", tag: "0.3.0"),
// .git(url: "https://github.com/SwiftGen/SwiftGenPlugin", tag: "6.6.0")
]

)

0 comments on commit fa04edf

Please sign in to comment.