forked from rileytestut/Harmony-Dropbox
/
Package.swift
63 lines (61 loc) · 2.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// swift-tools-version:5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Harmony-Dropbox",
platforms: [
.iOS(.v12),
.tvOS(.v13),
.macCatalyst(.v13),
.macOS(.v12),
],
products: [
.library(
name: "Harmony-Dropbox",
targets: ["Harmony-Dropbox"]
),
.library(
name: "Harmony-Dropbox-Dynamic",
type: .dynamic,
targets: ["Harmony-Dropbox"]
),
.library(
name: "Harmony-Dropbox-Static",
type: .static,
targets: ["Harmony-Dropbox"]
),
],
dependencies: [
// .package(url: "https://github.com/dropbox/SwiftyDropbox.git", from: "9.1.0"),
// Use my branch for fixed tvOS support
.package(url: "https://github.com/JoeMatt/SwiftyDropbox.git", branch: "tvOS"),
.package(url: "https://github.com/JoeMatt/Roxas.git", from: "1.2.0"),
.package(url: "https://github.com/JoeMatt/Harmony.git", from: "1.2.4"),
// .package(path: "../Harmony"),
],
targets: [
.target(
name: "Harmony-Dropbox",
dependencies: ["SwiftyDropbox", "Harmony"]
),
.executableTarget(
name: "Harmony-DropboxExample",
dependencies: [
"Harmony-Dropbox",
.product(name: "HarmonyExample", package: "Harmony"),
.product(name: "RoxasUI", package: "Roxas", condition: .when(platforms: [.iOS, .tvOS, .macCatalyst])),
],
linkerSettings: [
.linkedFramework("UIKit", .when(platforms: [.iOS, .tvOS, .macCatalyst])),
.linkedFramework("AppKit", .when(platforms: [.macOS])),
.linkedFramework("Cocoa", .when(platforms: [.macOS])),
.linkedFramework("CoreData"),
]
),
.testTarget(
name: "Harmony-DropboxTests",
dependencies: ["Harmony"]
),
],
swiftLanguageVersions: [.v5]
)