-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
57 lines (54 loc) · 2.45 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
// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "DataCapturing",
platforms: [.iOS(.v15)],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "DataCapturing",
targets: ["DataCapturing"]
),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// DataCompression Library to handle complicated ObjectiveC compression API.
.package(url: "https://github.com/mw99/DataCompression.git", from: "3.8.0"),
// Apple library to handle Protobuf conversion for transmitting files in the Protobuf format.
.package(url: "https://github.com/apple/swift-protobuf.git", from: "1.28.2"),
// Library for handling OAuth Login Process
.package(url: "https://github.com/openid/AppAuth-iOS.git", .upToNextMajor(from: "1.7.5")),
// Test Dependencies
// Mocker provides functionality to Mock Network communication allowing us to test the data transfer layer.
.package(url: "https://github.com/WeTransfer/Mocker.git", from: "2.5.5"),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "DataCapturing",
dependencies: [
.product(name: "DataCompression", package: "DataCompression"),
.product(name: "SwiftProtobuf", package: "swift-protobuf"),
.product(name: "AppAuth", package: "AppAuth-iOS"),
],
// path: "Sources",
resources: [
.process("Persistence/Migration/V3toV4/V3toV4.xcmappingmodel"),
.process("Model/CyfaceModel.xcdatamodeld"),
.process("Persistence/Migration/V10toV11/V10toV11.xcmappingmodel"),
.process("Persistence/Migration/V7toV8/V7toV8.xcmappingmodel"),
]
),
.testTarget(
name: "DataCapturingTests",
dependencies: ["DataCapturing", "Mocker"],
//path: "Tests",
exclude: ["Resources/README.md"],
resources: [
.process("Resources")
]
)
]
)