Skip to content

Commit a8e1148

Browse files
authored
=docc Move to multiple Package.swift files (#231)
* +docc prepare for docc docs * fix syntax in one of the package files * ignore package.resolved
1 parent 483e2bb commit a8e1148

12 files changed

+221
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.DS_Store
2+
Package.resolved
23
/.build
34
/Packages
45
/*.xcodeproj

Package.swift

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.0
1+
// swift-tools-version:5.7
22
//===----------------------------------------------------------------------===//
33
//
44
// This source file is part of the Swift Logging API open source project
@@ -20,6 +20,9 @@ let package = Package(
2020
products: [
2121
.library(name: "Logging", targets: ["Logging"]),
2222
],
23+
dependencies: [
24+
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
25+
],
2326
targets: [
2427
.target(
2528
name: "Logging",

[email protected]

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// swift-tools-version:5.0
2+
//===----------------------------------------------------------------------===//
3+
//
4+
// This source file is part of the Swift Logging API open source project
5+
//
6+
// Copyright (c) 2018-2019 Apple Inc. and the Swift Logging API project authors
7+
// Licensed under Apache License v2.0
8+
//
9+
// See LICENSE.txt for license information
10+
// See CONTRIBUTORS.txt for the list of Swift Logging API project authors
11+
//
12+
// SPDX-License-Identifier: Apache-2.0
13+
//
14+
//===----------------------------------------------------------------------===//
15+
16+
import PackageDescription
17+
18+
let package = Package(
19+
name: "swift-log",
20+
products: [
21+
.library(name: "Logging", targets: ["Logging"]),
22+
],
23+
targets: [
24+
.target(
25+
name: "Logging",
26+
dependencies: []
27+
),
28+
.testTarget(
29+
name: "LoggingTests",
30+
dependencies: ["Logging"]
31+
),
32+
]
33+
)

[email protected]

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// swift-tools-version:5.1
2+
//===----------------------------------------------------------------------===//
3+
//
4+
// This source file is part of the Swift Logging API open source project
5+
//
6+
// Copyright (c) 2018-2019 Apple Inc. and the Swift Logging API project authors
7+
// Licensed under Apache License v2.0
8+
//
9+
// See LICENSE.txt for license information
10+
// See CONTRIBUTORS.txt for the list of Swift Logging API project authors
11+
//
12+
// SPDX-License-Identifier: Apache-2.0
13+
//
14+
//===----------------------------------------------------------------------===//
15+
16+
import PackageDescription
17+
18+
let package = Package(
19+
name: "swift-log",
20+
products: [
21+
.library(name: "Logging", targets: ["Logging"]),
22+
],
23+
targets: [
24+
.target(
25+
name: "Logging",
26+
dependencies: []
27+
),
28+
.testTarget(
29+
name: "LoggingTests",
30+
dependencies: ["Logging"]
31+
),
32+
]
33+
)

[email protected]

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// swift-tools-version:5.2
2+
//===----------------------------------------------------------------------===//
3+
//
4+
// This source file is part of the Swift Logging API open source project
5+
//
6+
// Copyright (c) 2018-2019 Apple Inc. and the Swift Logging API project authors
7+
// Licensed under Apache License v2.0
8+
//
9+
// See LICENSE.txt for license information
10+
// See CONTRIBUTORS.txt for the list of Swift Logging API project authors
11+
//
12+
// SPDX-License-Identifier: Apache-2.0
13+
//
14+
//===----------------------------------------------------------------------===//
15+
16+
import PackageDescription
17+
18+
let package = Package(
19+
name: "swift-log",
20+
products: [
21+
.library(name: "Logging", targets: ["Logging"]),
22+
],
23+
targets: [
24+
.target(
25+
name: "Logging",
26+
dependencies: []
27+
),
28+
.testTarget(
29+
name: "LoggingTests",
30+
dependencies: ["Logging"]
31+
),
32+
]
33+
)

[email protected]

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// swift-tools-version:5.3
2+
//===----------------------------------------------------------------------===//
3+
//
4+
// This source file is part of the Swift Logging API open source project
5+
//
6+
// Copyright (c) 2018-2019 Apple Inc. and the Swift Logging API project authors
7+
// Licensed under Apache License v2.0
8+
//
9+
// See LICENSE.txt for license information
10+
// See CONTRIBUTORS.txt for the list of Swift Logging API project authors
11+
//
12+
// SPDX-License-Identifier: Apache-2.0
13+
//
14+
//===----------------------------------------------------------------------===//
15+
16+
import PackageDescription
17+
18+
let package = Package(
19+
name: "swift-log",
20+
products: [
21+
.library(name: "Logging", targets: ["Logging"]),
22+
],
23+
targets: [
24+
.target(
25+
name: "Logging",
26+
dependencies: []
27+
),
28+
.testTarget(
29+
name: "LoggingTests",
30+
dependencies: ["Logging"]
31+
),
32+
]
33+
)

[email protected]

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// swift-tools-version:5.4
2+
//===----------------------------------------------------------------------===//
3+
//
4+
// This source file is part of the Swift Logging API open source project
5+
//
6+
// Copyright (c) 2018-2019 Apple Inc. and the Swift Logging API project authors
7+
// Licensed under Apache License v2.0
8+
//
9+
// See LICENSE.txt for license information
10+
// See CONTRIBUTORS.txt for the list of Swift Logging API project authors
11+
//
12+
// SPDX-License-Identifier: Apache-2.0
13+
//
14+
//===----------------------------------------------------------------------===//
15+
16+
import PackageDescription
17+
18+
let package = Package(
19+
name: "swift-log",
20+
products: [
21+
.library(name: "Logging", targets: ["Logging"]),
22+
],
23+
targets: [
24+
.target(
25+
name: "Logging",
26+
dependencies: []
27+
),
28+
.testTarget(
29+
name: "LoggingTests",
30+
dependencies: ["Logging"]
31+
),
32+
]
33+
)

[email protected]

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// swift-tools-version:5.5
2+
//===----------------------------------------------------------------------===//
3+
//
4+
// This source file is part of the Swift Logging API open source project
5+
//
6+
// Copyright (c) 2018-2019 Apple Inc. and the Swift Logging API project authors
7+
// Licensed under Apache License v2.0
8+
//
9+
// See LICENSE.txt for license information
10+
// See CONTRIBUTORS.txt for the list of Swift Logging API project authors
11+
//
12+
// SPDX-License-Identifier: Apache-2.0
13+
//
14+
//===----------------------------------------------------------------------===//
15+
16+
import PackageDescription
17+
18+
let package = Package(
19+
name: "swift-log",
20+
products: [
21+
.library(name: "Logging", targets: ["Logging"]),
22+
],
23+
targets: [
24+
.target(
25+
name: "Logging",
26+
dependencies: []
27+
),
28+
.testTarget(
29+
name: "LoggingTests",
30+
dependencies: ["Logging"]
31+
),
32+
]
33+
)

docker/docker-compose.2004.55.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ services:
1111

1212
test:
1313
image: swift-log:20.04-5.5
14-
environment: []
14+
environment:
15+
- FORCE_TEST_DISCOVERY=--enable-test-discovery
1516
#- SANITIZER_ARG=--sanitize=thread
1617

1718
shell:

scripts/preview_docc.sh

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
##===----------------------------------------------------------------------===##
3+
##
4+
## This source file is part of the Swift Logging API open source project
5+
##
6+
## Copyright (c) 2018-2019 Apple Inc. and the Swift Logging API project authors
7+
## Licensed under Apache License v2.0
8+
##
9+
## See LICENSE.txt for license information
10+
## See CONTRIBUTORS.md for the list of Swift Logging API project authors
11+
##
12+
## SPDX-License-Identifier: Apache-2.0
13+
##
14+
##===----------------------------------------------------------------------===##
15+
16+
xcrun swift package --disable-sandbox preview-documentation --target Logging

0 commit comments

Comments
 (0)