-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPackage.swift
44 lines (41 loc) · 1.08 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
// swift-tools-version:5.1
import PackageDescription
let package = Package(
name: "APIWrapper",
platforms: [
.iOS(.v12),
.macOS(.v10_14),
.tvOS(.v12),
.watchOS(.v5),
],
products: [
.library(name: "APIWrapper", targets: ["APIWrapper"]),
.library(name: "AFAPIWrapper", targets: ["AFAPIWrapper"]),
],
dependencies: [
.package(
url: "https://github.com/Alamofire/Alamofire.git",
.upToNextMajor(from: "5.0.0")
),
],
targets: [
.target(
name: "APIWrapper",
path: "Sources/Core"
),
.target(
name: "AFAPIWrapper",
dependencies: ["APIWrapper", "Alamofire"],
path: "Sources/Alamofire"
),
.testTarget(
name: "APIWrapperTests",
dependencies: ["APIWrapper"],
path: "Tests"
),
]
)
#if swift(>=5.6)
// Add the Swift formatting plugin if possible
package.dependencies.append(.package(url: "https://github.com/RakuyoKit/swift.git", from: "1.1.3"))
#endif