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

Add .d as a valid source extension #396

Merged
merged 2 commits into from
Jun 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Please, check out guidelines: https://keepachangelog.com/en/1.0.0/
- Ensuring the correct default settings provider dependency is used https://github.com/tuist/tuist/pull/389 by @kwridan
- Fixing build settings repeated same value https://github.com/tuist/tuist/pull/391 @platonsi
- Duplicated files in the sources build phase when different glob patterns match the same files https://github.com/tuist/tuist/pull/388 by @pepibumur.
- Support `.d` source files https://github.com/tuist/tuist/pull/396 by @pepibumur.

## 0.15.0

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

// MARK: - Static

static let validSourceExtensions: [String] = ["m", "swift", "mm", "cpp", "c"]
static let validSourceExtensions: [String] = ["m", "swift", "mm", "cpp", "c", "d"]
static let validFolderExtensions: [String] = ["framework", "bundle", "app", "xcassets", "appiconset"]

// MARK: - Attributes
Expand Down
2 changes: 1 addition & 1 deletion Tests/TuistGeneratorTests/Models/TargetTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class TargetTests: XCTestCase {
}

func test_validSourceExtensions() {
XCTAssertEqual(Target.validSourceExtensions, ["m", "swift", "mm", "cpp", "c"])
XCTAssertEqual(Target.validSourceExtensions, ["m", "swift", "mm", "cpp", "c", "d"])
}

func test_productName_when_staticLibrary() {
Expand Down