Handle mlmodelc as a single unit (#1237)

* Handle mlmodelc as a single unit

* Add mlmodelc support in changelog
This commit is contained in:
antonsergeev88
2022-07-31 11:33:20 +03:00
committed by GitHub
parent de2a537ab4
commit ff552f3880
3 changed files with 7 additions and 0 deletions
+4
View File
@@ -2,6 +2,10 @@
## Next Version
### Added
- Add support for `mlmodelc` files #1236 @antonsergeev88
## 2.31.0
### Added
+1
View File
@@ -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),
@@ -589,6 +589,7 @@ class SourceGeneratorTests: XCTestCase {
- file.xcassets
- file.metal
- file.mlmodel
- file.mlmodelc
- Info.plist
- Intent.intentdefinition
- Configuration.storekit
@@ -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)