forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
182 lines (180 loc) · 5.97 KB
/
Copy pathPackage.swift
File metadata and controls
182 lines (180 loc) · 5.97 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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
// swift-tools-version: 6.0
import PackageDescription
// Frameworks such as Sparkle are built into Products/<config>/, but a test bundle's
// generated rpaths only cover PackageFrameworks/. Without this the bundle builds and
// then fails to dlopen, which reads as an unrelated test failure.
// ponytail: one rpath on every test target, rather than working out which ones link
// Sparkle transitively.
let testBundleFrameworkSearchPath = LinkerSetting.unsafeFlags([
"-Xlinker", "-rpath", "-Xlinker", "@loader_path/../../..",
])
let package = Package(
name: "Omi Computer",
platforms: [
// Candidate v0.12.148 for release planning.
// Candidate v0.12.148 for release planning.
.macOS("14.0")
],
dependencies: [
.package(url: "https://github.com/firebase/firebase-ios-sdk.git", from: "11.0.0"),
.package(url: "https://github.com/PostHog/posthog-ios.git", from: "3.0.0"),
.package(url: "https://github.com/getsentry/sentry-cocoa.git", exact: "8.58.0"),
.package(url: "https://github.com/groue/GRDB.swift.git", from: "6.24.0"),
.package(url: "https://github.com/sparkle-project/Sparkle", from: "2.9.0"),
.package(
url: "https://github.com/microsoft/onnxruntime-swift-package-manager.git", from: "1.20.0"),
.package(
url: "https://github.com/FluidInference/FluidAudio.git",
revision: "19600a485baa4998812e4654b70d2bab8f2c9949"
),
],
targets: [
.target(
name: "ObjCExceptionCatcher",
path: "ObjCExceptionCatcher",
publicHeadersPath: "include"
),
.systemLibrary(
name: "CWebP",
path: "CWebP",
pkgConfig: "libwebp",
providers: [
.brew(["webp"])
]
),
.target(
name: "OmiSupport",
path: "Sources/OmiSupport",
swiftSettings: [
.unsafeFlags(["-strict-concurrency=complete", "-warnings-as-errors"])
]
),
.target(
name: "OmiTheme",
path: "Sources/Theme",
swiftSettings: [
.unsafeFlags(["-strict-concurrency=complete", "-warnings-as-errors"])
]
),
.target(
name: "OmiWAL",
path: "Sources/OmiWAL",
swiftSettings: [
.unsafeFlags(["-strict-concurrency=complete", "-warnings-as-errors"])
]
),
.target(
name: "VoiceTurnDomain",
path: "Sources/VoiceTurnDomain",
swiftSettings: [
.unsafeFlags(["-strict-concurrency=complete", "-warnings-as-errors"])
]
),
.executableTarget(
name: "Omi Computer",
dependencies: [
"ObjCExceptionCatcher",
"CWebP",
"OmiSupport",
"OmiTheme",
"OmiWAL",
"VoiceTurnDomain",
.product(name: "FirebaseCore", package: "firebase-ios-sdk"),
.product(name: "FirebaseAuth", package: "firebase-ios-sdk"),
.product(name: "PostHog", package: "posthog-ios"),
.product(name: "Sentry", package: "sentry-cocoa"),
.product(name: "GRDB", package: "GRDB.swift"),
.product(name: "Sparkle", package: "Sparkle"),
.product(name: "onnxruntime", package: "onnxruntime-swift-package-manager"),
.product(name: "FluidAudio", package: "FluidAudio"),
],
path: "Sources",
exclude: [
"GoogleService-Info-Dev.plist",
"GoogleService-Info-Local.plist",
"Theme",
"OmiSupport",
"OmiWAL",
"VoiceTurnDomain",
"Bluetooth/ARCHITECTURE.md",
"FloatingControlBar/ARCHITECTURE.md",
"MainWindow/Pages/MemoryGraph/ARCHITECTURE.md",
],
resources: [
.process("GoogleService-Info.plist"),
// Bundles everything under Resources/ (incl. *_logo.png brand marks,
// signin_bg.png, provider-native VoicePhrases/*.wav, Resources/Fonts/*.ttf —
// Geist / Geist Mono — and
// Resources/Fonts/*.otf — Open Runde, the glass display face — and
// Resources/Sounds/*.m4a, the generated onboarding cinematic audio, and
// Resources/three-doors.html, the onboarding ask-demo page).
// NOTE: SwiftPM caches the resource manifest, so new files added to
// Resources/ are only picked up when the manifest regenerates — editing
// this file forces incremental builds to re-scan and include them.
.process("Resources"),
],
swiftSettings: [
.unsafeFlags(["-strict-concurrency=complete", "-warnings-as-errors"])
]
),
.testTarget(
name: "Omi ComputerTests",
dependencies: [
.target(name: "Omi Computer"),
"OmiSupport",
"OmiTheme",
"OmiWAL",
"VoiceTurnDomain",
],
path: "Tests",
exclude: [
"fixtures",
"SemanticFeatureSentinels",
"OmiSupportTests",
"OmiWALTests",
"VoiceTurnDomainTests",
],
swiftSettings: [
.unsafeFlags(["-strict-concurrency=complete", "-warnings-as-errors"])
],
linkerSettings: [testBundleFrameworkSearchPath]
),
.testTarget(
name: "OmiSupportTests",
dependencies: ["OmiSupport"],
path: "Tests/OmiSupportTests",
swiftSettings: [
.unsafeFlags(["-strict-concurrency=complete", "-warnings-as-errors"])
],
linkerSettings: [testBundleFrameworkSearchPath]
),
.testTarget(
name: "OmiWALTests",
dependencies: ["OmiWAL"],
path: "Tests/OmiWALTests",
swiftSettings: [
.unsafeFlags(["-strict-concurrency=complete", "-warnings-as-errors"])
],
linkerSettings: [testBundleFrameworkSearchPath]
),
.testTarget(
name: "VoiceTurnDomainTests",
dependencies: [
.target(name: "Omi Computer"),
"VoiceTurnDomain",
],
path: "Tests/VoiceTurnDomainTests",
linkerSettings: [testBundleFrameworkSearchPath]
),
.testTarget(
name: "SemanticFeatureSentinels",
dependencies: [],
path: "Tests/SemanticFeatureSentinels",
swiftSettings: [
.unsafeFlags(["-strict-concurrency=complete"])
],
linkerSettings: [testBundleFrameworkSearchPath]
),
],
swiftLanguageModes: [.v6]
)