This repository was archived by the owner on Sep 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathPackage.swift
More file actions
62 lines (61 loc) · 1.88 KB
/
Package.swift
File metadata and controls
62 lines (61 loc) · 1.88 KB
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
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "SAPCAI",
defaultLocalization: "en",
platforms: [
.iOS("14.0")
],
products: [
.library(
name: "SAPCAI",
targets: ["SAPCAI-withBinaryDependencies"]
),
.library(
name: "SAPCAI-requiresToEmbedXCFrameworks",
targets: ["SAPCAI-withoutBinaryDependencies"]
)
],
dependencies: [
.package(name: "SDWebImage", url: "https://github.com/SDWebImage/SDWebImage", .upToNextMinor(from: "5.11.0")),
.package(name: "Down", url: "https://github.com/johnxnguyen/Down", .upToNextMinor(from: "0.11.0")),
.package(name: "cloud-sdk-ios", url: "https://github.com/SAP/cloud-sdk-ios", .exact("5.1.3-xcfrwk"))
],
targets: [
// TODO: split Networking vs. UI
.target(
name: "SAPCAI-withBinaryDependencies",
dependencies: [
"SAPCAI",
.product(name: "SAPFoundation", package: "cloud-sdk-ios"),
.product(name: "SAPCommon", package: "cloud-sdk-ios")
]
),
.target(
name: "SAPCAI",
dependencies: [
"SDWebImage",
"Down"
],
resources: [
.process("Foundation/Utility/Font/SAP-icons.ttf"),
.process("UI/Common/VideoPlayer/YTPlayer.html")
]
),
.target(
name: "SAPCAI-withoutBinaryDependencies",
dependencies: [
"SAPCAI"
],
linkerSettings: [
.linkedFramework("SAPCommon"),
.linkedFramework("SAPFoundation")
]
),
.testTarget(
name: "SAPCAITests",
dependencies: ["SAPCAI"],
resources: [.copy("TestData")]
)
]
)