Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

- Expand template variable in Array of Any [#651](https://github.com/yonaskolb/XcodeGen/pull/651) @kateinoigakukun
- Significantly improve performance when running with a large number files. [#658](https://github.com/yonaskolb/XcodeGen/pull/658) @kateinoigakukun
- Less `Array()`. [#661](https://github.com/yonaskolb/XcodeGen/pull/661) @RomanPodymov
Comment thread
RomanPodymov marked this conversation as resolved.
Outdated

## 2.7.0

Expand Down
2 changes: 1 addition & 1 deletion Sources/XcodeGenKit/CacheFile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class CacheFile {

guard #available(OSX 10.13, *) else { return nil }

let files = Array(Set(project.allFiles))
let files = Set(project.allFiles)
.map { ((try? $0.relativePath(from: project.basePath)) ?? $0).string }
.sorted { $0.localizedStandardCompare($1) == .orderedAscending }
.joined(separator: "\n")
Expand Down
2 changes: 1 addition & 1 deletion Sources/XcodeGenKit/CarthageVersionLoader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ struct CarthageVersionFile: Decodable {
let container = try decoder.container(keyedBy: Platform.self)
data = try Platform.allCases.reduce(into: [:]) { data, platform in
let references = try container.decodeIfPresent([Reference].self, forKey: platform) ?? []
let frameworks = Array(Set(references.map { $0.name })).sorted()
let frameworks = Set(references.map { $0.name }).sorted()
data[platform] = frameworks
}
}
Expand Down
6 changes: 3 additions & 3 deletions Sources/XcodeGenKit/PBXProjGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public class PBXProjGenerator {
let knownRegions = sourceGenerator.knownRegions.sorted()
pbxProject.knownRegions = knownRegions.isEmpty ? ["en"] : knownRegions

let allTargets: [PBXTarget] = Array(targetObjects.values) + Array(targetAggregateObjects.values)
let allTargets: [PBXTarget] = targetObjects.valueArray + targetAggregateObjects.valueArray
pbxProject.targets = allTargets
.sorted { $0.name < $1.name }
pbxProject.attributes = projectAttributes
Expand Down Expand Up @@ -879,9 +879,9 @@ public class PBXProjGenerator {
let configFrameworkBuildPaths: [String]
if !carthageDependencies.isEmpty {
let carthagePlatformBuildPath = "$(PROJECT_DIR)/" + carthageResolver.buildPath(for: target.platform)
configFrameworkBuildPaths = [carthagePlatformBuildPath] + Array(frameworkBuildPaths).sorted()
configFrameworkBuildPaths = [carthagePlatformBuildPath] + frameworkBuildPaths.sorted()
} else {
configFrameworkBuildPaths = Array(frameworkBuildPaths).sorted()
configFrameworkBuildPaths = frameworkBuildPaths.sorted()
}

// set framework search paths
Expand Down