Skip to content

Commit a2de7c4

Browse files
committed
fix warnings
1 parent 04ccd3e commit a2de7c4

File tree

7 files changed

+1341
-1244
lines changed

7 files changed

+1341
-1244
lines changed

.vscode/tasks.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "swift",
6+
"args": [
7+
"build",
8+
"--build-tests",
9+
"-Xswiftc",
10+
"-diagnostic-style=llvm"
11+
],
12+
"env": {},
13+
"cwd": "/Users/danil/Code/swift-api-client",
14+
"disableTaskQueue": true,
15+
"group": {
16+
"kind": "build",
17+
"isDefault": true
18+
},
19+
"problemMatcher": [],
20+
"label": "Build",
21+
"detail": "swift build --build-tests -Xswiftc -diagnostic-style=llvm"
22+
}
23+
]
24+
}

Package@swift-5.9.swift

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -5,50 +5,50 @@ import CompilerPluginSupport
55
import PackageDescription
66

77
var package = Package(
8-
name: "swift-api-client",
9-
platforms: [
10-
.macOS(.v10_15),
11-
.iOS(.v13),
12-
.watchOS(.v5),
13-
.tvOS(.v13),
14-
],
15-
products: [
16-
.library(name: "SwiftAPIClient", targets: ["SwiftAPIClient"]),
17-
],
18-
dependencies: [
19-
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
20-
.package(url: "https://github.com/apple/swift-http-types.git", from: "1.0.0"),
21-
.package(url: "https://github.com/apple/swift-metrics.git", from: "2.0.0"),
22-
.package(url: "https://github.com/swiftlang/swift-syntax", "509.0.0"..<"601.0.0-prerelease"),
23-
],
24-
targets: [
25-
.target(
26-
name: "SwiftAPIClient",
27-
dependencies: [
28-
.target(name: "SwiftAPIClientMacros"),
29-
.product(name: "Logging", package: "swift-log"),
30-
.product(name: "Metrics", package: "swift-metrics"),
31-
.product(name: "HTTPTypes", package: "swift-http-types"),
32-
.product(name: "HTTPTypesFoundation", package: "swift-http-types"),
33-
]
34-
),
35-
.testTarget(
36-
name: "SwiftAPIClientTests",
37-
dependencies: [.target(name: "SwiftAPIClient")]
38-
),
39-
.macro(
40-
name: "SwiftAPIClientMacros",
41-
dependencies: [
42-
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
43-
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
44-
]
45-
),
46-
.testTarget(
47-
name: "SwiftAPIClientMacrosTests",
48-
dependencies: [
49-
.target(name: "SwiftAPIClientMacros"),
50-
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax"),
51-
]
52-
),
53-
]
8+
name: "swift-api-client",
9+
platforms: [
10+
.macOS(.v10_15),
11+
.iOS(.v13),
12+
.watchOS(.v5),
13+
.tvOS(.v13),
14+
],
15+
products: [
16+
.library(name: "SwiftAPIClient", targets: ["SwiftAPIClient"])
17+
],
18+
dependencies: [
19+
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
20+
.package(url: "https://github.com/apple/swift-http-types.git", from: "1.0.0"),
21+
.package(url: "https://github.com/apple/swift-metrics.git", from: "2.0.0"),
22+
.package(url: "https://github.com/swiftlang/swift-syntax", "509.0.0"..<"601.0.0-prerelease"),
23+
],
24+
targets: [
25+
.target(
26+
name: "SwiftAPIClient",
27+
dependencies: [
28+
.target(name: "SwiftAPIClientMacros"),
29+
.product(name: "Logging", package: "swift-log"),
30+
.product(name: "Metrics", package: "swift-metrics"),
31+
.product(name: "HTTPTypes", package: "swift-http-types"),
32+
.product(name: "HTTPTypesFoundation", package: "swift-http-types"),
33+
]
34+
),
35+
.testTarget(
36+
name: "SwiftAPIClientTests",
37+
dependencies: [.target(name: "SwiftAPIClient")]
38+
),
39+
.macro(
40+
name: "SwiftAPIClientMacros",
41+
dependencies: [
42+
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
43+
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
44+
]
45+
),
46+
.testTarget(
47+
name: "SwiftAPIClientMacrosTests",
48+
dependencies: [
49+
.target(name: "SwiftAPIClientMacros"),
50+
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax"),
51+
]
52+
),
53+
]
5454
)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ import PackageDescription
354354
let package = Package(
355355
name: "SomeProject",
356356
dependencies: [
357-
.package(url: "https://github.com/dankinsoid/swift-api-client.git", from: "1.7.10")
357+
.package(url: "https://github.com/dankinsoid/swift-api-client.git", from: "1.8.0")
358358
],
359359
targets: [
360360
.target(

0 commit comments

Comments
 (0)