Skip to content

Commit

Permalink
[Comment] Manifetst 주석 추가 #18
Browse files Browse the repository at this point in the history
  • Loading branch information
HELLOHIDI committed Jul 4, 2024
1 parent b0caf56 commit 1425994
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
18 changes: 12 additions & 6 deletions Tuist/ProjectDescriptionHelpers/Project+Templates.swift
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,14 @@ public extension Project {
projectTargets.append(target)
}

let additionalSchemes = targets.contains(.demo) ? [Scheme.makeScheme(configs: configurationName, name: name), Scheme.makeDemoScheme(configs: configurationName, name: name)] : [Scheme.makeScheme(configs: configurationName, name: name)]
let additionalSchemes = targets.contains(.demo) ?
[
Scheme.makeScheme(configs: configurationName, name: name),
Scheme.makeDemoScheme(configs: configurationName, name: name)
]
: [
Scheme.makeScheme(configs: configurationName, name: name)
]

schemes += additionalSchemes

Expand All @@ -173,10 +180,9 @@ public extension Project {
}
}


extension Project {
static let appSchemes: [Scheme] = [
// PROD API, debug scheme
// PROD API, debug scheme : 실제 프로덕트 BaseURL을 사용하는 debug scheme
.init(
name: "\(env.workspaceName)-DEV",
shared: true,
Expand All @@ -191,7 +197,7 @@ extension Project {
profileAction: .profileAction(configuration: "Development"),
analyzeAction: .analyzeAction(configuration: "Development")
),
// Test API, debug scheme
// Test API, debug scheme : 테스트 BaseURL을 사용하는 debug scheme
.init(
name: "\(env.workspaceName)-Test",
shared: true,
Expand All @@ -206,7 +212,7 @@ extension Project {
profileAction: .profileAction(configuration: "Test"),
analyzeAction: .analyzeAction(configuration: "Test")
),
// Test API, release scheme
// Test API, release scheme : 테스트 BaseURL을 사용하는 release scheme
.init(
name: "\(env.workspaceName)-QA",
shared: true,
Expand All @@ -216,7 +222,7 @@ extension Project {
profileAction: .profileAction(configuration: "QA"),
analyzeAction: .analyzeAction(configuration: "QA")
),
// PROD API, release scheme
// PROD API, release scheme : 실제 프로덕트 BaseURL을 사용하는 release scheme
.init(
name: "\(env.workspaceName)-PROD",
shared: true,
Expand Down
6 changes: 6 additions & 0 deletions Tuist/ProjectDescriptionHelpers/Scheme+Template.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ import EnvPlugin

extension Scheme {
/// Scheme 생성하는 method
/// 어떤 타겟을 빌드할 것인지, 어떤 테스트를 실행할 것인지 또한 어떤 환경에서 빌드할 것인지 설정
///
/// DEV : 실제 프로덕트 BaseURL을 사용하는 debug scheme
/// TEST : 테스트 BaseURL을 사용하는 debug scheme
/// QA : 테스트 BaseURL을 사용하는 release scheme
/// RELEASE : 실제 프로덕트 BaseURL을 사용하는 release scheme

static func makeScheme(configs: ConfigurationName, name: String) -> Scheme { // 일반앱
return Scheme(
Expand Down

0 comments on commit 1425994

Please sign in to comment.