@@ -5,50 +5,50 @@ import CompilerPluginSupport
55import PackageDescription
66
77var 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)
0 commit comments