From 1425994ae4ddc3ab3f2d9bd535b409612f04925f Mon Sep 17 00:00:00 2001 From: HELLOHIDI Date: Thu, 4 Jul 2024 18:45:07 +0900 Subject: [PATCH] =?UTF-8?q?[Comment]=20Manifetst=20=EC=A3=BC=EC=84=9D=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20#18?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Project+Templates.swift | 18 ++++++++++++------ .../Scheme+Template.swift | 6 ++++++ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/Tuist/ProjectDescriptionHelpers/Project+Templates.swift b/Tuist/ProjectDescriptionHelpers/Project+Templates.swift index 1a19b54..d8f477e 100644 --- a/Tuist/ProjectDescriptionHelpers/Project+Templates.swift +++ b/Tuist/ProjectDescriptionHelpers/Project+Templates.swift @@ -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 @@ -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, @@ -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, @@ -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, @@ -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, diff --git a/Tuist/ProjectDescriptionHelpers/Scheme+Template.swift b/Tuist/ProjectDescriptionHelpers/Scheme+Template.swift index fee5fb5..d9d3f6d 100644 --- a/Tuist/ProjectDescriptionHelpers/Scheme+Template.swift +++ b/Tuist/ProjectDescriptionHelpers/Scheme+Template.swift @@ -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(