-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathPackage.swift
44 lines (42 loc) · 1.44 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.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
//
// SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
// SPDX-License-Identifier: GPL-3.0-or-later
//
import PackageDescription
let package = Package(
name: "NextcloudKit",
platforms: [
.macOS(.v10_15),
.iOS(.v12),
.tvOS(.v13),
.watchOS(.v6),
.visionOS(.v1)
],
products: [
.library(
name: "NextcloudKit",
targets: ["NextcloudKit"]),
],
dependencies: [
.package(url: "https://github.com/WeTransfer/Mocker.git", .upToNextMajor(from: "2.3.0")),
.package(url: "https://github.com/Alamofire/Alamofire", .upToNextMajor(from: "5.9.1")),
.package(url: "https://github.com/SwiftyJSON/SwiftyJSON", .upToNextMajor(from: "5.0.0")),
.package(url: "https://github.com/yahoojapan/SwiftyXMLParser", .upToNextMajor(from: "5.3.0")),
],
targets: [
.target(
name: "NextcloudKit",
dependencies: ["Alamofire", "SwiftyJSON", "SwiftyXMLParser"]),
.testTarget(
name: "NextcloudKitUnitTests",
dependencies: ["NextcloudKit", "Mocker"],
resources: [
.process("Resources")
]),
.testTarget(
name: "NextcloudKitIntegrationTests",
dependencies: ["NextcloudKit", "Mocker"])
]
)