-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Swift 6.0): Prepare package for swift update
- Loading branch information
1 parent
69d543d
commit 475e181
Showing
15 changed files
with
173 additions
and
31 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 |
---|---|---|
|
@@ -2,4 +2,4 @@ version: 1 | |
builder: | ||
configs: | ||
- documentation_targets: [Interception] | ||
swift_version: 5.9 | ||
swift_version: 5.10 |
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 |
---|---|---|
@@ -0,0 +1,120 @@ | ||
// swift-tools-version:6.0 | ||
|
||
import PackageDescription | ||
import CompilerPluginSupport | ||
|
||
let package = Package( | ||
name: "swift-interception", | ||
platforms: [ | ||
.iOS(.v13), | ||
.macOS(.v10_15), | ||
.tvOS(.v13), | ||
.macCatalyst(.v13), | ||
.watchOS(.v6), | ||
], | ||
products: [ | ||
.library( | ||
name: "_InterceptionCustomSelectors", | ||
type: .static, | ||
targets: ["_InterceptionCustomSelectors"] | ||
), | ||
.library( | ||
name: "_InterceptionMacros", | ||
type: .static, | ||
targets: ["_InterceptionMacros"] | ||
), | ||
.library( | ||
name: "_InterceptionUtils", | ||
type: .static, | ||
targets: ["_InterceptionUtils"] | ||
), | ||
.library( | ||
name: "Interception", | ||
type: .static, | ||
targets: ["Interception"] | ||
), | ||
.library( | ||
name: "InterceptionMacros", | ||
type: .static, | ||
targets: ["InterceptionMacros"] | ||
), | ||
], | ||
dependencies: [ | ||
.package( | ||
url: "https://github.com/stackotter/swift-macro-toolkit.git", | ||
.upToNextMinor(from: "0.5.0") | ||
), | ||
.package( | ||
url: "https://github.com/pointfreeco/swift-macro-testing.git", | ||
.upToNextMinor(from: "0.5.2") | ||
) | ||
], | ||
targets: [ | ||
.target( | ||
name: "_InterceptionMacros", | ||
dependencies: [ | ||
.target(name: "InterceptionMacrosPlugin"), | ||
.target(name: "_InterceptionCustomSelectors") | ||
] | ||
), | ||
.target(name: "_InterceptionCustomSelectors"), | ||
.target(name: "_InterceptionUtilsObjc"), | ||
.target( | ||
name: "_InterceptionUtils", | ||
dependencies: [ | ||
.target(name: "_InterceptionUtilsObjc"), | ||
] | ||
), | ||
.target( | ||
name: "Interception", | ||
dependencies: [ | ||
.target(name: "_InterceptionCustomSelectors"), | ||
.target(name: "_InterceptionUtils"), | ||
] | ||
), | ||
.target( | ||
name: "InterceptionMacros", | ||
dependencies: [ | ||
.target(name: "_InterceptionMacros"), | ||
.target(name: "Interception") | ||
] | ||
), | ||
.macro( | ||
name: "InterceptionMacrosPlugin", | ||
dependencies: [ | ||
.product( | ||
name: "MacroToolkit", | ||
package: "swift-macro-toolkit" | ||
) | ||
] | ||
), | ||
.testTarget( | ||
name: "InterceptionMacrosPluginTests", | ||
dependencies: [ | ||
.target(name: "InterceptionMacrosPlugin"), | ||
.product(name: "MacroTesting", package: "swift-macro-testing"), | ||
] | ||
), | ||
.testTarget( | ||
name: "InterceptionTests", | ||
dependencies: [ | ||
.target(name: "Interception"), | ||
] | ||
), | ||
.testTarget( | ||
name: "InterceptionMacrosTests", | ||
dependencies: [ | ||
.target(name: "InterceptionMacros"), | ||
] | ||
), | ||
], | ||
swiftLanguageModes: [.v6] | ||
) | ||
|
||
for target in package.targets where target.type == .system || target.type == .test { | ||
target.swiftSettings?.append(contentsOf: [ | ||
.swiftLanguageMode(.v5), | ||
.enableExperimentalFeature("StrictConcurrency"), | ||
.enableUpcomingFeature("InferSendableFromCaptures"), | ||
]) | ||
} |
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
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