Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff552f3

Browse files
Handle mlmodelc as a single unit (yonaskolb#1237)
* Handle mlmodelc as a single unit * Add mlmodelc support in changelog
1 parent de2a537 commit ff552f3

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Next Version
44

5+
### Added
6+
7+
- Add support for `mlmodelc` files #1236 @antonsergeev88
8+
59
## 2.31.0
610

711
### Added

Sources/ProjectSpec/FileType.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ extension FileType {
8787
"intentdefinition": FileType(buildPhase: .sources),
8888
"metal": FileType(buildPhase: .sources),
8989
"mlmodel": FileType(buildPhase: .sources),
90+
"mlmodelc": FileType(buildPhase: .resources),
9091
"rcproject": FileType(buildPhase: .sources),
9192
"iig": FileType(buildPhase: .sources),
9293
"docc": FileType(buildPhase: .sources),

Tests/XcodeGenKitTests/SourceGeneratorTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,7 @@ class SourceGeneratorTests: XCTestCase {
589589
- file.xcassets
590590
- file.metal
591591
- file.mlmodel
592+
- file.mlmodelc
592593
- Info.plist
593594
- Intent.intentdefinition
594595
- Configuration.storekit
@@ -647,6 +648,7 @@ class SourceGeneratorTests: XCTestCase {
647648
try pbxProj.expectFile(paths: ["C", "Info.plist"], buildPhase: BuildPhaseSpec.none)
648649
try pbxProj.expectFile(paths: ["C", "file.metal"], buildPhase: .sources)
649650
try pbxProj.expectFile(paths: ["C", "file.mlmodel"], buildPhase: .sources)
651+
try pbxProj.expectFile(paths: ["C", "file.mlmodelc"], buildPhase: .resources)
650652
try pbxProj.expectFile(paths: ["C", "Intent.intentdefinition"], buildPhase: .sources)
651653
try pbxProj.expectFile(paths: ["C", "Configuration.storekit"], buildPhase: .resources)
652654
try pbxProj.expectFile(paths: ["C", "Settings.bundle"], buildPhase: .resources)

0 commit comments

Comments
 (0)