-
Notifications
You must be signed in to change notification settings - Fork 57
/
Package.swift
72 lines (70 loc) · 2.29 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
64
65
66
67
68
69
70
71
72
// swift-tools-version:5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import CompilerPluginSupport
import PackageDescription
let package = Package(
name: "FioriSwiftUI",
defaultLocalization: "en",
platforms: [.iOS(.v16), .watchOS(.v7), .visionOS(.v1)],
products: [
.library(
name: "FioriSwiftUI",
type: .dynamic,
targets: ["FioriSwiftUI"]
),
.library(
name: "FioriCharts",
type: .dynamic,
targets: ["FioriCharts"]
),
.library(
name: "FioriThemeManager",
type: .dynamic,
targets: ["FioriThemeManager"]
)
],
targets: [
.target(
name: "FioriSwiftUI",
dependencies: [.target(name: "FioriSwiftUICore", condition: .when(platforms: [.iOS, .macCatalyst, .visionOS]))]
),
.target(
name: "FioriCharts",
dependencies: ["FioriThemeManager"],
exclude: ["TestCases/SF_EnergyBenchmarking.csv"]
),
.target(
name: "FioriSwiftUICore",
dependencies: [
.target(name: "FioriThemeManager", condition: .when(platforms: [.iOS, .macCatalyst, .visionOS])),
.target(name: "FioriCharts", condition: .when(platforms: [.iOS, .macCatalyst, .visionOS]))
],
resources: [.process("_localization")]
),
.target(
name: "FioriThemeManager",
resources: [
.process("72-Fonts/Resources"),
.process("FioriIcons/Resources/FioriIcon.xcassets")
]
),
.testTarget(
name: "FioriThemeManagerTests",
dependencies: ["FioriThemeManager"],
path: "Tests/FioriSwiftUITests/FioriThemeManager",
resources: [
.process("TestResources")
]
),
.testTarget(
name: "FioriChartsTests",
dependencies: ["FioriCharts"],
path: "Tests/FioriSwiftUITests/FioriCharts"
),
.testTarget(
name: "FioriSwiftUICoreTests",
dependencies: ["FioriSwiftUICore"],
path: "Tests/FioriSwiftUITests/FioriSwiftUICore"
)
]
)