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 9
/
Copy pathPackage.swift
53 lines (51 loc) · 1.77 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
// 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-lcp-swift",
defaultLocalization: "en",
platforms: [.iOS(.v10)],
products: [
.library(
name: "ReadiumLCP",
targets: ["ReadiumLCP"]),
],
dependencies: [
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "1.3.8"),
.package(url: "https://github.com/readium/r2-shared-swift.git", from: "2.2.0"),
.package(url: "https://github.com/stephencelis/SQLite.swift.git", from: "0.12.2"),
// 0.9.12 requires iOS 12+
.package(url: "https://github.com/weichsel/ZIPFoundation.git", "0.9.0"..<"0.9.12"),
],
targets: [
.target(
name: "ReadiumLCP",
dependencies: [
"CryptoSwift",
"ZIPFoundation",
.product(name: "R2Shared", package: "r2-shared-swift"),
.product(name: "SQLite", package: "SQLite.swift"),
],
path: "./readium-lcp-swift/",
exclude: ["Info.plist"],
resources: [
.process("Resources")
]
),
// The test target depends on R2LCPClient.framework.
// Couldn't find a way to link to it unless it is wrapped in a XCFramework.
// .testTarget(
// name: "ReadiumLCPTests",
// dependencies: ["ReadiumLCP"],
// path: "./readium-lcp-swiftTests/",
// exclude: ["Info.plist"],
// resources: [
// .copy("Fixtures")
// ]
// )
]
)