-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathproject.base.yml
More file actions
240 lines (235 loc) · 7.85 KB
/
Copy pathproject.base.yml
File metadata and controls
240 lines (235 loc) · 7.85 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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
name: OpenGlasses
settings:
base:
DEAD_CODE_STRIPPING: "YES"
ENABLE_USER_SCRIPT_SANDBOXING: "YES"
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED: "YES"
SWIFT_EMIT_LOC_STRINGS: "YES"
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS: "YES"
# Personal signing (DEVELOPMENT_TEAM, personal entitlements/Info) lives in
# project.local.yml — copy project.local.yml.example and fill in your team.
options:
bundleIdPrefix: com.openglasses
deploymentTarget:
iOS: "26.0"
watchOS: "26.0"
# Sets LastUpgradeCheck (26.5 -> 2650). Keep in step with the project's Xcode
# baseline so Xcode's "Update to recommended settings" validation stays quiet.
xcodeVersion: "26.5"
generateEmptyDirectories: true
developmentLanguage: en
knownRegions:
- en
- zh-Hans
- zh-Hant
- ja
- ko
- cs
- pl
- pt-BR
- pt-PT
- es
- es-MX
- fr
- fr-CA
- de
- it
- nl
- th
- ar
- hi
- ru
- sv
- fi
- uk
- el
- tr
- da
- nb
- ro
- hu
- hr
- sk
- ms
- vi
- id
- ca
packages:
meta-wearables-dat-ios:
url: https://github.com/facebook/meta-wearables-dat-ios.git
from: "0.8.0"
HaishinKit:
url: https://github.com/shogo4405/HaishinKit.swift.git
from: "2.2.5"
mlx-swift-lm:
url: https://github.com/ml-explore/mlx-swift-lm.git
version: "3.31.3"
swift-huggingface:
url: https://github.com/huggingface/swift-huggingface.git
from: "0.1.0"
swift-transformers:
url: https://github.com/huggingface/swift-transformers.git
from: "1.0.0"
SystemNotification:
url: https://github.com/danielsaidi/SystemNotification.git
from: "1.0.0"
WebRTC:
url: https://github.com/stasel/WebRTC.git
from: "120.0.0"
# Vendored sherpa-onnx + onnxruntime iOS xcframeworks for the on-device Kokoro TTS
# tier (Additional Capabilities #1). Local package; binaries under Vendor/SherpaOnnx/Frameworks.
SherpaOnnx:
path: Vendor/SherpaOnnx
targets:
OpenGlasses:
type: application
platform: iOS
sources:
- path: OpenGlasses/Sources
excludes:
- "Resources/Vaults/**"
- path: OpenGlasses/Sources/Resources/Vaults
type: folder
# Shared with widget/watch targets — defines LogoIcon + AccentColors
- path: GlassesActivityWidget/AccentColors.swift
# Shared with widget target — UserDefaults-backed listening state
- path: GlassesActivityWidget/SharedAppState.swift
entitlements:
path: OpenGlasses/OpenGlasses.entitlements
properties:
com.apple.developer.homekit: true
com.apple.developer.carplay-voice-based-conversation: true
com.apple.developer.kernel.increased-memory-limit: true
com.apple.security.application-groups:
- group.com.openglasses.app
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.openglasses.app
MARKETING_VERSION: "2.2.0"
CURRENT_PROJECT_VERSION: "11"
SWIFT_VERSION: "5.9"
CODE_SIGN_ALLOW_ENTITLEMENTS_MODIFICATION: "YES"
CODE_SIGN_STYLE: Automatic
INFOPLIST_FILE: OpenGlasses/Info.plist
GENERATE_INFOPLIST_FILE: "NO"
INFOPLIST_KEY_CFBundleDisplayName: "OpenGlasses"
INFOPLIST_KEY_LSApplicationCategoryType: "public.app-category.utilities"
# Compiles the real on-device sherpa-onnx inference paths — Kokoro TTS (Additional
# Capabilities #1, `#if KOKORO_ENABLED`) and SenseVoice ASR (#8, `#if SHERPA_ONNX_ENABLED`).
# The vendored sherpa-onnx binary (Vendor/SherpaOnnx) provides the C API for both.
OTHER_SWIFT_FLAGS: "$(inherited) -D KOKORO_ENABLED -D SHERPA_ONNX_ENABLED"
SKIP_INSTALL: "NO"
dependencies:
- package: meta-wearables-dat-ios
product: MWDATCore
- package: meta-wearables-dat-ios
product: MWDATCamera
- package: meta-wearables-dat-ios
product: MWDATDisplay
- package: HaishinKit
product: HaishinKit
- package: HaishinKit
product: RTMPHaishinKit
- package: mlx-swift-lm
product: MLXLLM
- package: mlx-swift-lm
product: MLXLMCommon
- package: mlx-swift-lm
product: MLXVLM
- package: mlx-swift-lm
product: MLXHuggingFace
- package: swift-huggingface
product: HuggingFace
- package: swift-transformers
product: Tokenizers
- package: SystemNotification
product: SystemNotification
- package: WebRTC
product: WebRTC
- package: SherpaOnnx
product: SherpaOnnxWrapper
- target: GlassesActivityWidget
- target: OpenGlassesShareExtension
GlassesActivityWidget:
type: app-extension
platform: iOS
sources:
- path: GlassesActivityWidget
- path: OpenGlasses/Sources/Models/GlassesActivityAttributes.swift
entitlements:
path: GlassesActivityWidget/GlassesActivityWidget.entitlements
properties:
com.apple.security.application-groups:
- group.com.openglasses.app
info:
path: GlassesActivityWidget/Info.plist
properties:
CFBundleDisplayName: "OpenGlasses"
CFBundleShortVersionString: "$(MARKETING_VERSION)"
CFBundleVersion: "$(CURRENT_PROJECT_VERSION)"
NSExtension:
NSExtensionPointIdentifier: com.apple.widgetkit-extension
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.openglasses.app.GlassesActivityWidget
MARKETING_VERSION: "2.2.0"
CURRENT_PROJECT_VERSION: "11"
SWIFT_VERSION: "5.9"
SKIP_INSTALL: "YES"
CODE_SIGN_STYLE: Automatic
# Share Extension (Teleprompter Phase 2 / PR B): accepts shared text, URLs, and text
# files from the iOS share sheet and hands them to the app via the app-group inbox
# (SharedTeleprompterInbox), which the main app drains into TeleprompterScriptStore.
OpenGlassesShareExtension:
type: app-extension
platform: iOS
sources:
- path: OpenGlassesShareExtension
# Shared with the main app — the app-group hand-off inbox.
- path: OpenGlasses/Sources/Shared/SharedTeleprompterInbox.swift
entitlements:
path: OpenGlassesShareExtension/OpenGlassesShareExtension.entitlements
properties:
com.apple.security.application-groups:
- group.com.openglasses.app
info:
path: OpenGlassesShareExtension/Info.plist
properties:
CFBundleDisplayName: "OpenGlasses Teleprompter"
CFBundleShortVersionString: "$(MARKETING_VERSION)"
CFBundleVersion: "$(CURRENT_PROJECT_VERSION)"
NSExtension:
NSExtensionPointIdentifier: com.apple.share-services
NSExtensionPrincipalClass: ShareViewController
NSExtensionAttributes:
NSExtensionActivationRule:
NSExtensionActivationSupportsText: true
NSExtensionActivationSupportsWebURLWithMaxCount: 1
NSExtensionActivationSupportsAttachmentsWithMaxCount: 1
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.openglasses.app.ShareExtension
MARKETING_VERSION: "2.2.0"
CURRENT_PROJECT_VERSION: "11"
SWIFT_VERSION: "5.9"
SKIP_INSTALL: "YES"
CODE_SIGN_STYLE: Automatic
schemes:
OpenGlasses:
build:
targets:
OpenGlasses: all
GlassesActivityWidget: all
OpenGlassesShareExtension: all
run:
config: Debug
debugEnabled: true
askForAppToLaunch: false
# Launch the app, not the widget. Without an explicit executable, XcodeGen
# made the first buildable target the runnable — GlassesActivityWidget sorts
# before OpenGlasses — and launchAutomaticallySubstyle: 2 turned the run
# action into a WidgetKit "show widget" launch via SpringBoard, which fails
# on a locked device ("Failed to show Widget … device was not unlocked").
executable: OpenGlasses
archive:
config: Release