Add support for .s source files (#2199)

This commit is contained in:
David Chavez 2020-12-26 22:09:37 +01:00 committed by GitHub
parent 7ff061268e
commit 1d08cb069f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -11,6 +11,7 @@ Please, check out guidelines: https://keepachangelog.com/en/1.0.0/
### Added
- Fourier CLI tool to automate development tasks [#2196](https://github.com/tuist/tuist/pull/2196) by @pepibumur](https://github.com/pepibumur).
- Support `.s` source files [#2199](https://github.com/tuist/tuist/pull/2199) by[ @dcvz](https://github.com/dcvz).
## 1.29.0 - Tutu

View File

@ -18,7 +18,7 @@ public enum TargetError: FatalError, Equatable {
public struct Target: Equatable, Hashable, Comparable {
// MARK: - Static
public static let validSourceExtensions: [String] = ["m", "swift", "mm", "cpp", "c", "d", "intentdefinition", "xcmappingmodel", "metal"]
public static let validSourceExtensions: [String] = ["m", "swift", "mm", "cpp", "c", "d", "s", "intentdefinition", "xcmappingmodel", "metal"]
public static let validFolderExtensions: [String] = ["framework", "bundle", "app", "xcassets", "appiconset", "scnassets"]
// MARK: - Attributes

View File

@ -20,7 +20,7 @@ final class TargetErrorTests: TuistUnitTestCase {
final class TargetTests: TuistUnitTestCase {
func test_validSourceExtensions() {
XCTAssertEqual(Target.validSourceExtensions, ["m", "swift", "mm", "cpp", "c", "d", "intentdefinition", "xcmappingmodel", "metal"])
XCTAssertEqual(Target.validSourceExtensions, ["m", "swift", "mm", "cpp", "c", "d", "s", "intentdefinition", "xcmappingmodel", "metal"])
}
func test_productName_when_staticLibrary() {
@ -87,6 +87,7 @@ final class TargetTests: TuistUnitTestCase {
"sources/c.mm",
"sources/d.c",
"sources/e.cpp",
"sources/f.s",
"sources/k.kt",
"sources/n.metal",
])
@ -105,6 +106,7 @@ final class TargetTests: TuistUnitTestCase {
"sources/b.m",
"sources/c.mm",
"sources/d.c",
"sources/f.s",
"sources/e.cpp",
"sources/n.metal",
]))