Skip to content

Commit

Permalink
[Feat] ConfigPlugin 추가하기 DO-SOPT-iOS-Part#18
Browse files Browse the repository at this point in the history
  • Loading branch information
HELLOHIDI committed Jun 28, 2024
1 parent b3e70ec commit 6971bc7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
3 changes: 3 additions & 0 deletions Plugins/ConfigPlugin/Plugin.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import ProjectDescription

let configPlugin = Plugin(name: "ConfigPlugin")
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//
// Configurations.swift
// EnvPlugin
// ConfigPlugin
//
// Created by 류희재 on 6/26/24.
// Created by 류희재 on 6/28/24.
//

import Foundation
Expand All @@ -16,12 +16,6 @@ public struct XCConfig {
static func project(_ config: String) -> ProjectDescription.Path { .relativeToRoot("xcconfigs/Base/Projects/Project-\(config).xcconfig") }
}

/*
- DEV : 실제 프로덕트 BaseURL을 사용하는 debug scheme
- TEST : 테스트 BaseURL을 사용하는 debug scheme
- QA : 테스트 BaseURL을 사용하는 release scheme
- RELEASE : 실제 프로덕트 BaseURL을 사용하는 release scheme
*/
public static let framework: [Configuration] = [
.debug(name: "Development", xcconfig: Path.framework),
.debug(name: "Test", xcconfig: Path.framework),
Expand Down
2 changes: 1 addition & 1 deletion Plugins/DependencyPlugin/Plugin.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import ProjectDescription

let dependencyPlugin = Plugin(name: "DependencyPlugin")
let dependencyPlugin = Plugin(name: "DependencyPlugin")
3 changes: 2 additions & 1 deletion Tuist/Config.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import ProjectDescription
let config = Config(
plugins: [
.local(path: .relativeToRoot("Plugins/DependencyPlugin")),
.local(path: .relativeToRoot("Plugins/EnvPlugin"))
.local(path: .relativeToRoot("Plugins/EnvPlugin")),
.local(path: .relativeToRoot("Plugins/ConfigPlugin"))
]
)

0 comments on commit 6971bc7

Please sign in to comment.