This repository has been archived by the owner on Aug 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
/
Package.swift
50 lines (48 loc) · 1.51 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
// swift-tools-version:5.3
//
// Copyright 2021 Readium Foundation. All rights reserved.
// Use of this source code is governed by the BSD-style license
// available in the top-level LICENSE file of the project.
//
import PackageDescription
let package = Package(
name: "r2-shared-swift",
defaultLocalization: "en",
platforms: [.iOS(.v10)],
products: [
.library(name: "R2Shared", targets: ["R2Shared"]),
],
dependencies: [
.package(url: "https://github.com/cezheng/Fuzi.git", from: "3.1.3"),
.package(url: "https://github.com/marmelroy/Zip.git", from: "2.1.1"),
.package(url: "https://github.com/scinfu/SwiftSoup.git", from: "2.3.2"),
],
targets: [
.target(
name: "R2Shared",
dependencies: ["Fuzi", "SwiftSoup", "Zip"],
path: "./r2-shared-swift/",
exclude: [
"Info.plist",
// Support for ZIPFoundation is not yet achieved.
"Toolkit/Archive/ZIPFoundation.swift",
],
resources: [
.process("Resources"),
],
linkerSettings: [
.linkedFramework("CoreServices"),
.linkedFramework("UIKit"),
]
),
.testTarget(
name: "R2SharedTests",
dependencies: ["R2Shared"],
path: "./r2-shared-swiftTests/",
exclude: ["Info.plist"],
resources: [
.copy("Fixtures"),
]
),
]
)