-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
101 lines (98 loc) · 3.28 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// swift-tools-version:5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "AppPackage",
platforms: [
.iOS(.v15),
.macOS(.v12)
],
products: [
.library(
name: "App",
targets: [
"AppFeature",
"Settings"
]),
],
dependencies: [
.package(name: "Firebase", url: "https://github.com/firebase/firebase-ios-sdk.git", from: "8.0.0"),
.package(url: "https://github.com/pointfreeco/swift-composable-architecture.git", from: "0.34.0")
],
targets: [
.target(
name: "AccountFeature",
dependencies: [
"APIClient",
.product(name: "ComposableArchitecture", package: "swift-composable-architecture"),
]),
.target(
name: "APIClient",
dependencies: [
"Model",
.product(name: "FirebaseAuth", package: "Firebase"),
.product(name: "FirebaseAuthCombine-Community", package: "Firebase"),
.product(name: "FirebaseFirestore", package: "Firebase"),
.product(name: "ComposableArchitecture", package: "swift-composable-architecture"),
]),
.target(
name: "AppFeature",
dependencies: [
"AccountFeature",
"APIClient",
"MyDataFeature",
"PomodoroTimerFeature",
"Settings",
"Styleguide",
"SwiftHelper",
"UserDefaultsClient",
.product(name: "ComposableArchitecture", package: "swift-composable-architecture"),
]),
.target(
name: "Model",
dependencies: [
"SwiftHelper",
.product(name: "FirebaseAuth", package: "Firebase"),
.product(name: "FirebaseFirestore", package: "Firebase"),
.product(name: "FirebaseFirestoreSwift-Beta", package: "Firebase"),
]),
.target(
name: "MyDataFeature",
dependencies: [
"APIClient",
"SwiftHelper"
]),
.target(
name: "PomodoroTimerFeature",
dependencies: [
"APIClient",
"MyDataFeature",
"SwiftHelper",
"UserDefaultsClient",
.product(name: "FirebaseAuth", package: "Firebase"),
]),
.target(
name: "Settings",
dependencies: [
"Model",
"SwiftHelper",
"UserDefaultsClient",
.product(name: "ComposableArchitecture", package: "swift-composable-architecture"),
]),
.target(
name: "Styleguide",
dependencies: [
"SwiftHelper"
]),
.target(
name: "SwiftHelper",
dependencies: []),
.target(
name: "UserDefaultsClient",
dependencies: [
"Model",
.product(name: "ComposableArchitecture", package: "swift-composable-architecture"),
]),
// Test
]
)