-
-
Notifications
You must be signed in to change notification settings - Fork 602
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add compiler directives for visionOS support * add SPM visionOS support * add CocoaPods visionOS support * update Carthage dependencies * add visionOS support when using the Xcode project * extend test script to include visionOS * fix cocoapods support by modifying dependencies directly * do not break older Swift version support by creating a swift 5.9 explicit Package.swift file * skip tests on visionOS if it's not present * fix build issues below Xcode 15 * skip visionOS cocoapod validation if visionOS is not present * move TARGET_OS_VISION definition to umbrella header * bump CwlPreconditionTesting to 2.2.0 * link CwlPreconditionTesting on visionOS * add visionOS for to dependencies array * add CI execution for visionOS with Xcode 15.2 * remove visionOS testing on Xcode 15.2 * it looks like the visionOS simulator is not created by default on the used macOS image
- Loading branch information
1 parent
29c8d41
commit 52c7526
Showing
10 changed files
with
151 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,23 @@ | ||
{ | ||
"object": { | ||
"pins": [ | ||
{ | ||
"package": "CwlCatchException", | ||
"repositoryURL": "https://github.com/mattgallagher/CwlCatchException.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "f809deb30dc5c9d9b78c872e553261a61177721a", | ||
"version": "2.0.0" | ||
} | ||
}, | ||
{ | ||
"package": "CwlPreconditionTesting", | ||
"repositoryURL": "https://github.com/mattgallagher/CwlPreconditionTesting.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "c21f7bab5ca8eee0a9998bbd17ca1d0eb45d4688", | ||
"version": "2.1.0" | ||
} | ||
"pins" : [ | ||
{ | ||
"identity" : "cwlcatchexception", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/mattgallagher/CwlCatchException.git", | ||
"state" : { | ||
"revision" : "3b123999de19bf04905bc1dfdb76f817b0f2cc00", | ||
"version" : "2.1.2" | ||
} | ||
] | ||
}, | ||
"version": 1 | ||
}, | ||
{ | ||
"identity" : "cwlpreconditiontesting", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/mattgallagher/CwlPreconditionTesting.git", | ||
"state" : { | ||
"revision" : "dc9af4781f2afdd1e68e90f80b8603be73ea7abc", | ||
"version" : "2.2.0" | ||
} | ||
} | ||
], | ||
"version" : 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// swift-tools-version:5.9 | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "Nimble", | ||
platforms: [ | ||
.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6), .visionOS(.v1) | ||
], | ||
products: [ | ||
.library( | ||
name: "Nimble", | ||
targets: { | ||
var targets: [String] = ["Nimble"] | ||
#if os(macOS) | ||
targets.append("NimbleObjectiveC") | ||
#endif | ||
return targets | ||
}() | ||
), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/mattgallagher/CwlPreconditionTesting.git", .upToNextMajor(from: "2.2.0")), | ||
], | ||
targets: { | ||
var testHelperDependencies: [PackageDescription.Target.Dependency] = ["Nimble"] | ||
#if os(macOS) | ||
testHelperDependencies.append("NimbleObjectiveC") | ||
#endif | ||
var targets: [Target] = [ | ||
.target( | ||
name: "Nimble", | ||
dependencies: [ | ||
.product(name: "CwlPreconditionTesting", package: "CwlPreconditionTesting", | ||
condition: .when(platforms: [.macOS, .iOS, .macCatalyst, .visionOS])), | ||
.product(name: "CwlPosixPreconditionTesting", package: "CwlPreconditionTesting", | ||
condition: .when(platforms: [.tvOS, .watchOS])) | ||
], | ||
exclude: ["Info.plist"] | ||
), | ||
.target( | ||
name: "NimbleSharedTestHelpers", | ||
dependencies: testHelperDependencies | ||
), | ||
.testTarget( | ||
name: "NimbleTests", | ||
dependencies: ["Nimble", "NimbleSharedTestHelpers"], | ||
exclude: ["Info.plist"] | ||
), | ||
] | ||
#if os(macOS) | ||
targets.append(contentsOf: [ | ||
.target( | ||
name: "NimbleObjectiveC", | ||
dependencies: ["Nimble"] | ||
), | ||
.testTarget( | ||
name: "NimbleObjectiveCTests", | ||
dependencies: ["NimbleObjectiveC", "Nimble", "NimbleSharedTestHelpers"] | ||
) | ||
]) | ||
#endif | ||
return targets | ||
}(), | ||
swiftLanguageVersions: [.v5] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters