Skip to content

Commit b112adb

Browse files
committed
Package manifest for old Swift versions rather than new
1 parent c7a0eeb commit b112adb

File tree

8 files changed

+171
-11
lines changed

8 files changed

+171
-11
lines changed

Package.swift

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// swift-tools-version:5.0
1+
// swift-tools-version:5.6
22

33
//===----------------------------------------------------------------------===//
44
//
55
// This source file is part of the SwiftStatsdClient open source project
66
//
7-
// Copyright (c) 2019 the SwiftStatsdClient project authors
7+
// Copyright (c) 2022 the SwiftStatsdClient project authors
88
// Licensed under Apache License v2.0
99
//
1010
// See LICENSE.txt for license information
@@ -24,9 +24,13 @@ let package = Package(
2424
dependencies: [
2525
.package(url: "https://github.com/apple/swift-metrics.git", "1.0.0" ..< "3.0.0"),
2626
.package(url: "https://github.com/apple/swift-nio.git", from: "2.0.0"),
27+
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
2728
],
2829
targets: [
29-
.target(name: "StatsdClient", dependencies: ["CoreMetrics", "NIO"]),
30+
.target(name: "StatsdClient", dependencies: [
31+
.product(name: "CoreMetrics", package: "swift-metrics"),
32+
.product(name: "NIO", package: "swift-nio"),
33+
]),
3034
.testTarget(name: "StatsdClientTests", dependencies: ["StatsdClient"]),
3135
]
3236
)
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// swift-tools-version:5.6
1+
// swift-tools-version:5.0
22

33
//===----------------------------------------------------------------------===//
44
//
55
// This source file is part of the SwiftStatsdClient open source project
66
//
7-
// Copyright (c) 2022 the SwiftStatsdClient project authors
7+
// Copyright (c) 2019 the SwiftStatsdClient project authors
88
// Licensed under Apache License v2.0
99
//
1010
// See LICENSE.txt for license information
@@ -24,13 +24,9 @@ let package = Package(
2424
dependencies: [
2525
.package(url: "https://github.com/apple/swift-metrics.git", "1.0.0" ..< "3.0.0"),
2626
.package(url: "https://github.com/apple/swift-nio.git", from: "2.0.0"),
27-
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
2827
],
2928
targets: [
30-
.target(name: "StatsdClient", dependencies: [
31-
.product(name: "CoreMetrics", package: "swift-metrics"),
32-
.product(name: "NIO", package: "swift-nio"),
33-
]),
29+
.target(name: "StatsdClient", dependencies: ["CoreMetrics", "NIO"]),
3430
.testTarget(name: "StatsdClientTests", dependencies: ["StatsdClient"]),
3531
]
3632
)

[email protected]

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// swift-tools-version:5.0
2+
3+
//===----------------------------------------------------------------------===//
4+
//
5+
// This source file is part of the SwiftStatsdClient open source project
6+
//
7+
// Copyright (c) 2019 the SwiftStatsdClient project authors
8+
// Licensed under Apache License v2.0
9+
//
10+
// See LICENSE.txt for license information
11+
// See CONTRIBUTORS.txt for the list of SwiftStatsdClient project authors
12+
//
13+
// SPDX-License-Identifier: Apache-2.0
14+
//
15+
//===----------------------------------------------------------------------===//
16+
17+
import PackageDescription
18+
19+
let package = Package(
20+
name: "swift-statsd-client",
21+
products: [
22+
.library(name: "StatsdClient", targets: ["StatsdClient"]),
23+
],
24+
dependencies: [
25+
.package(url: "https://github.com/apple/swift-metrics.git", "1.0.0" ..< "3.0.0"),
26+
.package(url: "https://github.com/apple/swift-nio.git", from: "2.0.0"),
27+
],
28+
targets: [
29+
.target(name: "StatsdClient", dependencies: ["CoreMetrics", "NIO"]),
30+
.testTarget(name: "StatsdClientTests", dependencies: ["StatsdClient"]),
31+
]
32+
)

[email protected]

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// swift-tools-version:5.0
2+
3+
//===----------------------------------------------------------------------===//
4+
//
5+
// This source file is part of the SwiftStatsdClient open source project
6+
//
7+
// Copyright (c) 2019 the SwiftStatsdClient project authors
8+
// Licensed under Apache License v2.0
9+
//
10+
// See LICENSE.txt for license information
11+
// See CONTRIBUTORS.txt for the list of SwiftStatsdClient project authors
12+
//
13+
// SPDX-License-Identifier: Apache-2.0
14+
//
15+
//===----------------------------------------------------------------------===//
16+
17+
import PackageDescription
18+
19+
let package = Package(
20+
name: "swift-statsd-client",
21+
products: [
22+
.library(name: "StatsdClient", targets: ["StatsdClient"]),
23+
],
24+
dependencies: [
25+
.package(url: "https://github.com/apple/swift-metrics.git", "1.0.0" ..< "3.0.0"),
26+
.package(url: "https://github.com/apple/swift-nio.git", from: "2.0.0"),
27+
],
28+
targets: [
29+
.target(name: "StatsdClient", dependencies: ["CoreMetrics", "NIO"]),
30+
.testTarget(name: "StatsdClientTests", dependencies: ["StatsdClient"]),
31+
]
32+
)

[email protected]

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// swift-tools-version:5.0
2+
3+
//===----------------------------------------------------------------------===//
4+
//
5+
// This source file is part of the SwiftStatsdClient open source project
6+
//
7+
// Copyright (c) 2019 the SwiftStatsdClient project authors
8+
// Licensed under Apache License v2.0
9+
//
10+
// See LICENSE.txt for license information
11+
// See CONTRIBUTORS.txt for the list of SwiftStatsdClient project authors
12+
//
13+
// SPDX-License-Identifier: Apache-2.0
14+
//
15+
//===----------------------------------------------------------------------===//
16+
17+
import PackageDescription
18+
19+
let package = Package(
20+
name: "swift-statsd-client",
21+
products: [
22+
.library(name: "StatsdClient", targets: ["StatsdClient"]),
23+
],
24+
dependencies: [
25+
.package(url: "https://github.com/apple/swift-metrics.git", "1.0.0" ..< "3.0.0"),
26+
.package(url: "https://github.com/apple/swift-nio.git", from: "2.0.0"),
27+
],
28+
targets: [
29+
.target(name: "StatsdClient", dependencies: ["CoreMetrics", "NIO"]),
30+
.testTarget(name: "StatsdClientTests", dependencies: ["StatsdClient"]),
31+
]
32+
)

[email protected]

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// swift-tools-version:5.0
2+
3+
//===----------------------------------------------------------------------===//
4+
//
5+
// This source file is part of the SwiftStatsdClient open source project
6+
//
7+
// Copyright (c) 2019 the SwiftStatsdClient project authors
8+
// Licensed under Apache License v2.0
9+
//
10+
// See LICENSE.txt for license information
11+
// See CONTRIBUTORS.txt for the list of SwiftStatsdClient project authors
12+
//
13+
// SPDX-License-Identifier: Apache-2.0
14+
//
15+
//===----------------------------------------------------------------------===//
16+
17+
import PackageDescription
18+
19+
let package = Package(
20+
name: "swift-statsd-client",
21+
products: [
22+
.library(name: "StatsdClient", targets: ["StatsdClient"]),
23+
],
24+
dependencies: [
25+
.package(url: "https://github.com/apple/swift-metrics.git", "1.0.0" ..< "3.0.0"),
26+
.package(url: "https://github.com/apple/swift-nio.git", from: "2.0.0"),
27+
],
28+
targets: [
29+
.target(name: "StatsdClient", dependencies: ["CoreMetrics", "NIO"]),
30+
.testTarget(name: "StatsdClientTests", dependencies: ["StatsdClient"]),
31+
]
32+
)

[email protected]

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// swift-tools-version:5.0
2+
3+
//===----------------------------------------------------------------------===//
4+
//
5+
// This source file is part of the SwiftStatsdClient open source project
6+
//
7+
// Copyright (c) 2019 the SwiftStatsdClient project authors
8+
// Licensed under Apache License v2.0
9+
//
10+
// See LICENSE.txt for license information
11+
// See CONTRIBUTORS.txt for the list of SwiftStatsdClient project authors
12+
//
13+
// SPDX-License-Identifier: Apache-2.0
14+
//
15+
//===----------------------------------------------------------------------===//
16+
17+
import PackageDescription
18+
19+
let package = Package(
20+
name: "swift-statsd-client",
21+
products: [
22+
.library(name: "StatsdClient", targets: ["StatsdClient"]),
23+
],
24+
dependencies: [
25+
.package(url: "https://github.com/apple/swift-metrics.git", "1.0.0" ..< "3.0.0"),
26+
.package(url: "https://github.com/apple/swift-nio.git", from: "2.0.0"),
27+
],
28+
targets: [
29+
.target(name: "StatsdClient", dependencies: ["CoreMetrics", "NIO"]),
30+
.testTarget(name: "StatsdClientTests", dependencies: ["StatsdClient"]),
31+
]
32+
)

scripts/soundness.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ for language in swift-or-c bash dtrace; do
7373
matching_files=( -name '*' )
7474
case "$language" in
7575
swift-or-c)
76-
exceptions=( -name c_nio_http_parser.c -o -name c_nio_http_parser.h -o -name cpp_magic.h -o -name Package.swift -o -name Package@swift-5.6.swift -o -name CNIOSHA1.h -o -name c_nio_sha1.c -o -name ifaddrs-android.c -o -name ifaddrs-android.h)
76+
exceptions=( -name Package.swift -o -name Package@*.swift)
7777
matching_files=( -name '*.swift' -o -name '*.c' -o -name '*.h' )
7878
cat > "$tmp" <<"EOF"
7979
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)