Skip to content

Commit

Permalink
Revert "Fixed some logic in PBXVariantGroup."
Browse files Browse the repository at this point in the history
This reverts commit ea402c8.
  • Loading branch information
takeshi-1000 committed Dec 7, 2022
1 parent ea402c8 commit bad37c9
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Sources/XcodeGenKit/PBXVariantGroupGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,10 @@ class PBXVariantGroupGenerator: TargetSourceFilterable {
let pbxVariantGroupInfo = variantGroupInfoList
.filter { $0.targetName == targetName }
.first {
let existsAlwaysStoredBaseFile: Bool = {
var containExtensionList: [Bool] = []
alwaysStoredBaseExtensions.forEach { alwaysStoredBaseExtension in
containExtensionList.append(localizedChildPath.lastComponent.contains(alwaysStoredBaseExtension))
}
return containExtensionList.filter { $0 }.count > 0
}()
let existsAlwaysStoredBaseFile = alwaysStoredBaseExtensions
.reduce(into: [Bool]()) { $0.append(localizedChildPath.lastComponent.contains($1)) }
.filter { $0 }
.count > 0

if existsAlwaysStoredBaseFile {
return $0.path.lastComponentWithoutExtension == localizedChildPath.lastComponentWithoutExtension
Expand Down

0 comments on commit bad37c9

Please sign in to comment.