Skip to content

Commit

Permalink
Handle mlmodelc as a single unit (yonaskolb#1237)
Browse files Browse the repository at this point in the history
* Handle mlmodelc as a single unit

* Add mlmodelc support in changelog
  • Loading branch information
antonsergeev88 committed Jul 31, 2022
1 parent de2a537 commit ff552f3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Next Version

### Added

- Add support for `mlmodelc` files #1236 @antonsergeev88

## 2.31.0

### Added
Expand Down
1 change: 1 addition & 0 deletions Sources/ProjectSpec/FileType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ extension FileType {
"intentdefinition": FileType(buildPhase: .sources),
"metal": FileType(buildPhase: .sources),
"mlmodel": FileType(buildPhase: .sources),
"mlmodelc": FileType(buildPhase: .resources),
"rcproject": FileType(buildPhase: .sources),
"iig": FileType(buildPhase: .sources),
"docc": FileType(buildPhase: .sources),
Expand Down
2 changes: 2 additions & 0 deletions Tests/XcodeGenKitTests/SourceGeneratorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,7 @@ class SourceGeneratorTests: XCTestCase {
- file.xcassets
- file.metal
- file.mlmodel
- file.mlmodelc
- Info.plist
- Intent.intentdefinition
- Configuration.storekit
Expand Down Expand Up @@ -647,6 +648,7 @@ class SourceGeneratorTests: XCTestCase {
try pbxProj.expectFile(paths: ["C", "Info.plist"], buildPhase: BuildPhaseSpec.none)
try pbxProj.expectFile(paths: ["C", "file.metal"], buildPhase: .sources)
try pbxProj.expectFile(paths: ["C", "file.mlmodel"], buildPhase: .sources)
try pbxProj.expectFile(paths: ["C", "file.mlmodelc"], buildPhase: .resources)
try pbxProj.expectFile(paths: ["C", "Intent.intentdefinition"], buildPhase: .sources)
try pbxProj.expectFile(paths: ["C", "Configuration.storekit"], buildPhase: .resources)
try pbxProj.expectFile(paths: ["C", "Settings.bundle"], buildPhase: .resources)
Expand Down

0 comments on commit ff552f3

Please sign in to comment.