Skip to content

Commit

Permalink
[#349] Rename makeFramework to frameworkTargets
Browse files Browse the repository at this point in the history
  • Loading branch information
phongvhd93 committed Dec 4, 2023
1 parent 4cd36dd commit e778575
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions Tuist/ProjectDescriptionHelpers/Module.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ public enum Module: CaseIterable {
}

public var resources: ProjectDescription.ResourceFileElements {
switch self {
case .data, .domain:
return []
}
[]
}

public var testsSources: ProjectDescription.SourceFilesList {
Expand Down
4 changes: 2 additions & 2 deletions Tuist/ProjectDescriptionHelpers/Target+Initializing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ extension Target {
var targets: [Target] = []

let frameworks = Module.allCases
.flatMap { Target.makeFramework(module: $0, bundleId: bundleId) }
.flatMap { Target.frameworkTargets(module: $0, bundleId: bundleId) }

targets.append(contentsOf: frameworks)

Expand Down Expand Up @@ -95,7 +95,7 @@ extension Target {

extension Target {

fileprivate static func makeFramework(module: Module, bundleId: String) -> [Target] {
fileprivate static func frameworkTargets(module: Module, bundleId: String) -> [Target] {
let framework = Target(
name: module.name,
platform: .iOS,
Expand Down

0 comments on commit e778575

Please sign in to comment.