Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔀 :: [#255] BaseDomain XCConfig 연결 #256

Merged
merged 1 commit into from
Aug 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions Projects/Domain/BaseDomain/Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,18 @@ import ProjectDescription
import ProjectDescriptionHelpers
import DependencyPlugin

let name = ModulePaths.Domain.BaseDomain.rawValue

let configurations: [Configuration] = generateEnvironment == .ci ?
.default :
[
.debug(name: .dev, xcconfig: .relativeToXCConfig(type: .dev, name: name)),
.debug(name: .stage, xcconfig: .relativeToXCConfig(type: .stage, name: name)),
.release(name: .prod, xcconfig: .relativeToXCConfig(type: .prod, name: name))
]

let project = Project.makeModule(
name: ModulePaths.Domain.BaseDomain.rawValue,
name: name,
product: .framework,
targets: [.unitTest],
externalDependencies: [
Expand All @@ -19,5 +29,6 @@ let project = Project.makeModule(
],
additionalPlistRows: [
"BASE_URL": .string("$(BASE_URL)")
]
],
configurations: configurations
)