Skip to content

Commit

Permalink
feat: 상위 모듈의 프로덕트를 .framework(dynamic)으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
noeyiz committed Sep 23, 2024
1 parent 86a0b75 commit 47ac55e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Tuist/ProjectDescriptionHelpers/Target+Templates.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public struct TargetFactory {
public init(
name: String = "",
destinations: Destinations = [.iPhone],
product: Product = .staticFramework,
product: Product = .staticLibrary,
productName: String? = nil,
bundleId: String? = nil,
deploymentTargets: DeploymentTargets? = Project.Environment.deploymentTargets,
Expand Down Expand Up @@ -181,6 +181,7 @@ public extension Target {
public extension Target {
static func domain(factory: TargetFactory) -> Self {
var newFactory = factory
newFactory.product = .framework
newFactory.name = ModulePath.Domain.name
newFactory.sources = .sources

Expand All @@ -189,6 +190,7 @@ public extension Target {

static func domain(implements module: ModulePath.Domain, factory: TargetFactory) -> Self {
var newFactory = factory
newFactory.product = .staticFramework
newFactory.name = ModulePath.Domain.name + module.rawValue
newFactory.sources = .sources

Expand All @@ -215,7 +217,7 @@ public extension Target {

static func domain(testing module: ModulePath.Domain, factory: TargetFactory) -> Self {
var newFactory = factory
newFactory.product = .framework
newFactory.product = .staticLibrary
newFactory.name = ModulePath.Domain.name + module.rawValue + "Testing"
newFactory.sources = .testing

Expand All @@ -228,6 +230,7 @@ public extension Target {
public extension Target {
static func core(factory: TargetFactory) -> Self {
var newFactory = factory
newFactory.product = .framework
newFactory.name = ModulePath.Core.name
newFactory.sources = .sources

Expand All @@ -236,6 +239,7 @@ public extension Target {

static func core(implements module: ModulePath.Core, factory: TargetFactory) -> Self {
var newFactory = factory
newFactory.product = .staticFramework
newFactory.name = ModulePath.Core.name + module.rawValue
newFactory.sources = .sources

Expand All @@ -262,7 +266,7 @@ public extension Target {

static func core(testing module: ModulePath.Core, factory: TargetFactory) -> Self {
var newFactory = factory
newFactory.product = .framework
newFactory.product = .staticLibrary
newFactory.name = ModulePath.Core.name + module.rawValue + "Testing"
newFactory.sources = .testing

Expand Down
Binary file modified graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 47ac55e

Please sign in to comment.