-
Notifications
You must be signed in to change notification settings - Fork 14
/
Package.swift
97 lines (95 loc) · 5.37 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// swift-tools-version:5.2
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "AutorestSwift",
platforms: [
.macOS(.v10_15)
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/tjprescott/Yams.git", .branch("CircularReferences")),
.package(url: "https://github.com/stencilproject/Stencil.git", .branch("trim_whitespace")),
.package(url: "https://github.com/apple/swift-nio", from: "2.0.0"),
.package(
name: "AzureCore",
url: "https://github.com/Azure/SwiftPM-AzureCore",
.exact("1.0.0-beta.14")
),
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.45.6"),
.package(url: "https://github.com/realm/SwiftLint.git", from: "0.40.1"),
.package(name: "AutoRestHeadTest", path: "./test/integration/generated/head/"),
.package(name: "AutoRestSwaggerBatFile", path: "./test/integration/generated/body-file/"),
.package(name: "AutoRestSwaggerBatDictionary", path: "./test/integration/generated/body-dictionary/"),
.package(name: "AutoRestReport", path: "./test/integration/generated/report/"),
.package(name: "AutoRestIntegerTest", path: "./test/integration/generated/body-integer/"),
.package(name: "AutoRestUrlTest", path: "./test/integration/generated/url/"),
.package(name: "AutoRestResourceFlatteningTest", path: "./test/integration/generated/model-flattening/"),
.package(name: "AutoRestParameterizedHostTest", path: "./test/integration/generated/custom-baseUrl/"),
.package(name: "AutoRestSwaggerBat", path: "./test/integration/generated/body-string/"),
.package(name: "AutoRestSwaggerBatByte", path: "./test/integration/generated/body-byte/"),
.package(name: "AutoRestNumberTest", path: "./test/integration/generated/body-number/"),
.package(name: "AutoRestSwaggerBatHeader", path: "./test/integration/generated/header/"),
.package(name: "AutoRestSwaggerBatArray", path: "./test/integration/generated/body-array/"),
.package(name: "AutoRestDateTest", path: "./test/integration/generated/body-date/"),
.package(name: "AutoRestRfC1123DateTimeTest", path: "./test/integration/generated/body-datetime-rfc1123/"),
.package(name: "AutoRestDateTimeTest", path: "./test/integration/generated/body-datetime/"),
.package(name: "AutoRestBoolTest", path: "./test/integration/generated/body-boolean/"),
.package(name: "AutoRestUrlMutliCollectionFormatTest", path: "./test/integration/generated/url-multi-collectionFormat/"),
.package(name: "AutoRestParameterizedCustomHostTest", path: "./test/integration/generated/custom-baseUrl-more-options"),
.package(name: "AutoRestRequiredOptionalTest", path: "./test/integration/generated/required-optional"),
.package(name: "AutoRestTimeTest", path: "./test/integration/generated/body-time"),
.package(name: "AutoRestPagingTest", path: "./test/integration/generated/paging"),
.package(name: "AutoRestValidationTest", path: "./test/integration/generated/validation"),
.package(name: "PetStoreInc", path: "./test/integration/generated/extensible-enums-swagger"),
.package(name: "XmsErrorResponseExtensions", path: "./test/integration/generated/xms-error-responses/"),
.package(name: "AutoRestDurationTest", path: "./test/integration/generated/body-duration")
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "AutorestSwift",
dependencies: [
"Yams",
"Stencil",
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOFoundationCompat", package: "swift-nio")
]
),
.testTarget(
name: "AutorestSwiftTest",
dependencies: [
.product(name: "AzureCore", package: "AzureCore"),
"AutoRestBoolTest",
"AutoRestDurationTest",
"AutoRestHeadTest",
"AutoRestSwaggerBatFile",
"AutoRestSwaggerBatDictionary",
"AutoRestReport",
"AutoRestIntegerTest",
"AutoRestUrlTest",
"AutoRestResourceFlatteningTest",
"AutoRestParameterizedHostTest",
"AutoRestSwaggerBat",
"AutoRestSwaggerBatByte",
"AutoRestNumberTest",
"AutoRestSwaggerBatHeader",
"AutoRestSwaggerBatArray",
"AutoRestDateTest",
"AutoRestDateTimeTest",
"AutoRestRfC1123DateTimeTest",
"AutoRestUrlMutliCollectionFormatTest",
"AutoRestParameterizedCustomHostTest",
"AutoRestRequiredOptionalTest",
"AutoRestTimeTest",
"AutoRestPagingTest",
"AutoRestValidationTest",
"PetStoreInc",
"XmsErrorResponseExtensions"
],
path: "AutorestSwiftTest"
)
],
swiftLanguageVersions: [.v5]
)