forked from airbnb/swift
-
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.
Merge branch 'master' into Feature/synchronize-upstream
# Conflicts: # PULL_REQUEST_TEMPLATE.md
- Loading branch information
Showing
22 changed files
with
1,110 additions
and
1,033 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,17 +1,13 @@ | ||
GEM | ||
specs: | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
rake (13.0.6) | ||
|
||
PLATFORMS | ||
arm64-darwin-23 | ||
ruby | ||
|
||
DEPENDENCIES | ||
rake (~> 13.0.0)! | ||
|
||
BUNDLED WITH | ||
2.5.4 | ||
2.1.4 |
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,58 +1,60 @@ | ||
// swift-tools-version: 5.6 | ||
// swift-tools-version: 5.8 | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "AirbnbSwift", | ||
platforms: [.macOS(.v10_13)], | ||
products: [ | ||
.plugin(name: "FormatSwift", targets: ["FormatSwift"]), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.0.3"), | ||
], | ||
targets: [ | ||
.plugin( | ||
name: "FormatSwift", | ||
capability: .command( | ||
intent: .custom( | ||
verb: "format", | ||
description: "Formats Swift source files according to the Airbnb Swift Style Guide"), | ||
permissions: [ | ||
.writeToPackageDirectory(reason: "Format Swift source files"), | ||
]), | ||
dependencies: [ | ||
"AirbnbSwiftFormatTool", | ||
"swiftformat", | ||
"SwiftLintBinary", | ||
]), | ||
name: "RakuyoSwift", | ||
platforms: [.macOS(.v13)], | ||
products: [ | ||
.plugin(name: "FormatSwift", targets: ["FormatSwift"]), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.4.0"), | ||
], | ||
targets: [ | ||
.plugin( | ||
name: "FormatSwift", | ||
capability: .command( | ||
intent: .custom( | ||
verb: "format", | ||
description: "Formats Swift source files according to the Rakuyo Swift Style Guide" | ||
), | ||
permissions: [ | ||
.writeToPackageDirectory(reason: "Format Swift source files"), | ||
] | ||
), | ||
dependencies: [ | ||
"RakuyoSwiftFormatTool", | ||
"SwiftFormat", | ||
"SwiftLintBinary", | ||
] | ||
), | ||
|
||
.executableTarget( | ||
name: "AirbnbSwiftFormatTool", | ||
dependencies: [ | ||
.product(name: "ArgumentParser", package: "swift-argument-parser"), | ||
], | ||
resources: [ | ||
.process("airbnb.swiftformat"), | ||
.process("swiftlint.yml"), | ||
]), | ||
.executableTarget( | ||
name: "RakuyoSwiftFormatTool", | ||
dependencies: [ | ||
.product(name: "ArgumentParser", package: "swift-argument-parser"), | ||
], | ||
resources: [ | ||
.process("rakuyo.swiftformat"), | ||
.process("swiftlint.yml"), | ||
] | ||
), | ||
|
||
.testTarget( | ||
name: "AirbnbSwiftFormatToolTests", | ||
dependencies: ["AirbnbSwiftFormatTool"]), | ||
.testTarget( | ||
name: "RakuyoSwiftFormatToolTests", | ||
dependencies: ["RakuyoSwiftFormatTool"] | ||
), | ||
|
||
.binaryTarget( | ||
name: "swiftformat", | ||
url: "https://github.com/calda/SwiftFormat/releases/download/0.55-beta-2/SwiftFormat.artifactbundle.zip", | ||
checksum: "f7ba281b879af7920e368144117269ba00abcc589b6d36f47ea0c21e62410a7c"), | ||
.binaryTarget( | ||
name: "SwiftFormat", | ||
url: "https://github.com/nicklockwood/SwiftFormat/releases/download/0.54.0/SwiftFormat.artifactbundle.zip", | ||
checksum: "edf4ed2f1664ad621ae71031ff915e0c6ef80ad66e87ea0e5a10c3580a27a6dd" | ||
), | ||
|
||
.binaryTarget( | ||
name: "SwiftLintBinary", | ||
url: "https://github.com/realm/SwiftLint/releases/download/0.55.1/SwiftLintBinary-macos.artifactbundle.zip", | ||
checksum: "722a705de1cf4e0e07f2b7d2f9f631f3a8b2635a0c84cce99f9677b38aa4a1d6"), | ||
]) | ||
|
||
// Emit an error on Linux, so Swift Package Manager's platform support detection doesn't say this package supports Linux | ||
// https://github.com/airbnb/swift/discussions/197#discussioncomment-4055303 | ||
#if os(Linux) | ||
#error("Linux is currently not supported") | ||
#endif | ||
.binaryTarget( | ||
name: "SwiftLintBinary", | ||
url: "https://github.com/realm/SwiftLint/releases/download/0.55.1/SwiftLintBinary-macos.artifactbundle.zip", | ||
checksum: "722a705de1cf4e0e07f2b7d2f9f631f3a8b2635a0c84cce99f9677b38aa4a1d6" | ||
), | ||
] | ||
) |
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
Oops, something went wrong.