-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathproject.yml
More file actions
383 lines (382 loc) · 13.2 KB
/
Copy pathproject.yml
File metadata and controls
383 lines (382 loc) · 13.2 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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
include:
- path: project.local.yml
enable: ${INCLUDE_PROJECT_LOCAL_YAML}
name: OpenCodeIOSClient
options:
minimumXcodeGenVersion: 2.44.1
settingPresets: none
postGenCommand: sh scripts/fix-icon-composer-file-types.sh
deploymentTarget:
iOS: 17.0
macOS: 14.0
fileTypes:
icon:
file: true
settings:
base:
SWIFT_VERSION: 6.0
CURRENT_PROJECT_VERSION: 20
MARKETING_VERSION: 1.0.20
configs:
Debug:
SWIFT_ACTIVE_COMPILATION_CONDITIONS: DEBUG
ENABLE_TESTABILITY: YES
SWIFT_OPTIMIZATION_LEVEL: -Onone
ONLY_ACTIVE_ARCH: YES
schemes:
OpenCodeIOSClientScreenshots:
build:
targets:
OpenCodeIOSClient: all
OpenCodeIOSClientUITests: [testing]
test:
config: Debug
targets:
- OpenCodeIOSClientUITests
packages:
HighlighterSwift:
url: https://github.com/smittytone/HighlighterSwift
from: 3.0.3
GhosttyKit:
url: https://github.com/Lakr233/libghostty-spm
revision: 87085605587b3b38807381d06e0858fc3910f37a
targets:
OpenCodeIOSClient:
type: application
productName: OpenClient
platform: iOS
supportedDestinations: [iOS, macCatalyst]
deploymentTarget: "17.0"
sources:
- path: OpenCodeIOSClient
excludes:
- OpenCodeMacApp.swift
- Info.plist
- Generated-Info.plist
- AGENTS.md
- "**/AGENTS.md"
- path: OpenCodeShared
excludes:
- AGENTS.md
- "**/AGENTS.md"
- path: AppIcon.icon
buildPhase: resources
group: OpenCodeIOSClient
- path: Liquidy.icon
buildPhase: resources
group: OpenCodeIOSClient
- path: Trees.icon
buildPhase: resources
group: OpenCodeIOSClient
- path: AppIcon Pro Life.icon
buildPhase: resources
group: OpenCodeIOSClient
- path: AppIcon Pro Life.png
buildPhase: resources
group: OpenCodeIOSClient
- path: Liquidy.png
buildPhase: resources
group: OpenCodeIOSClient
- path: Trees.png
buildPhase: resources
group: OpenCodeIOSClient
- path: OpenClient_icons
type: folder
buildPhase: resources
- path: Resources/ExcalidrawWeb
type: folder
buildPhase: resources
- path: Resources/WhatsNew
type: folder
buildPhase: resources
dependencies:
- target: OpenCodeChatActivityExtension
embed: true
destinationFilters: [iOS]
- target: OpenCodeShareExtension
embed: true
destinationFilters: [iOS]
- package: HighlighterSwift
product: Highlighter
- package: GhosttyKit
product: GhosttyTerminal
preBuildScripts:
- name: Validate bundle identifier
script: |
if [ "$PRODUCT_BUNDLE_IDENTIFIER" != "com.ntoporcov.openclient" ]; then
echo "error: Unexpected app bundle identifier '$PRODUCT_BUNDLE_IDENTIFIER'. Regenerate the project from project.yml before building."
exit 1
fi
postBuildScripts:
- name: Remove unsupported web fonts
script: |
EXCALIDRAW_FONT_DIR="$TARGET_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH/ExcalidrawWeb/excalidraw-assets/fonts"
if [ -d "$EXCALIDRAW_FONT_DIR" ]; then
rm -rf "$EXCALIDRAW_FONT_DIR"
fi
- name: Lint localizations
basedOnDependencyAnalysis: false
script: |
ruby "$SRCROOT/scripts/lint-localizations.rb" --stringsdata-root "$(dirname "$TARGET_TEMP_DIR")"
info:
path: OpenCodeIOSClient/Generated-Info.plist
properties:
CFBundleDisplayName: OpenClient
CFBundleShortVersionString: $(MARKETING_VERSION)
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
CFBundleDevelopmentRegion: en
CFBundleLocalizations:
- en
- pt-BR
- it
UIApplicationSceneManifest:
UIApplicationSupportsMultipleScenes: true
UIApplicationSupportsIndirectInputEvents: true
NSSupportsLiveActivities: true
OpenCodeSharedKeychainAccessGroup: $(AppIdentifierPrefix)com.ntoporcov.openclient.shared
ITSAppUsesNonExemptEncryption: false
UILaunchScreen: {}
UISupportedInterfaceOrientations:
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationPortraitUpsideDown
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
UISupportedInterfaceOrientations~ipad:
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationPortraitUpsideDown
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
NSAppTransportSecurity:
NSAllowsArbitraryLoads: true
NSLocalNetworkUsageDescription: OpenClient connects to your OpenCode server and its device-tool bridge on your local network.
NSMicrophoneUsageDescription: OpenClient uses the microphone for dictation and voice conversations.
NSPersonalVoiceUsageDescription: OpenClient uses your Personal Voice to read AI responses aloud when you select it.
NSPhotoLibraryUsageDescription: OpenClient uses your photo library to show recent photos and attach selected images to messages.
NSSpeechRecognitionUsageDescription: OpenClient uses speech recognition to transcribe dictation and voice conversations.
OpenClientAlternateIconPreviewFiles:
Liquidy: Liquidy.png
Trees: Trees.png
"AppIcon Pro Life": AppIcon Pro Life.png
OpenClientAlternateIconDisplayNames:
"AppIcon Pro Life": Pro Life
OpenClientProLifetimeIconNames:
- AppIcon Pro Life
CFBundleURLTypes:
- CFBundleURLName: com.ntoporcov.openclient
CFBundleURLSchemes:
- openclient
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.ntoporcov.openclient
PRODUCT_NAME: OpenClient
SUPPORTED_PLATFORMS: iphoneos iphonesimulator macosx
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES: 'Liquidy Trees "AppIcon Pro Life"'
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS: NO
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME: AccentColor
CODE_SIGN_STYLE: Automatic
SWIFT_EMIT_LOC_STRINGS: YES
TARGETED_DEVICE_FAMILY: 1,2
SUPPORTS_MACCATALYST: YES
MACCATALYST_DEPLOYMENT_TARGET: "14.0"
DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER: NO
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD: NO
CODE_SIGN_ENTITLEMENTS: OpenCodeIOSClient/OpenCodeIOSClient.entitlements
scheme:
gatherCoverageData: false
testTargets:
- OpenCodeIOSClientTests
- OpenCodeIOSClientUITests
OpenCodeChatActivityExtension:
type: app-extension
platform: iOS
supportedDestinations: [iOS]
deploymentTarget: "17.0"
sources:
- path: OpenCodeChatActivityExtension
excludes:
- Info.plist
- AGENTS.md
- "**/AGENTS.md"
- path: OpenCodeShared
excludes:
- AGENTS.md
- "**/AGENTS.md"
- path: OpenCodeIOSClient/Assets.xcassets/AppIcon.appiconset/ios-120.png
buildPhase: resources
group: OpenCodeChatActivityExtension
preBuildScripts:
- name: Validate bundle identifier
script: |
if [ "$PRODUCT_BUNDLE_IDENTIFIER" != "com.ntoporcov.openclient.liveactivity" ]; then
echo "error: Unexpected extension bundle identifier '$PRODUCT_BUNDLE_IDENTIFIER'. Regenerate the project from project.yml before building."
exit 1
fi
info:
path: OpenCodeChatActivityExtension/Info.plist
properties:
CFBundleDisplayName: OpenClient Live
CFBundleShortVersionString: $(MARKETING_VERSION)
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
CFBundleDevelopmentRegion: en
CFBundleLocalizations:
- en
- pt-BR
- it
OpenCodeSharedKeychainAccessGroup: $(AppIdentifierPrefix)com.ntoporcov.openclient.shared
NSAppTransportSecurity:
NSAllowsArbitraryLoads: true
NSExtension:
NSExtensionPointIdentifier: com.apple.widgetkit-extension
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.ntoporcov.openclient.liveactivity
PRODUCT_NAME: OpenCodeChatActivityExtension
SUPPORTED_PLATFORMS: iphoneos iphonesimulator
CODE_SIGN_STYLE: Automatic
SWIFT_EMIT_LOC_STRINGS: YES
SKIP_INSTALL: YES
TARGETED_DEVICE_FAMILY: ""
CODE_SIGN_ENTITLEMENTS: OpenCodeChatActivityExtension/OpenCodeChatActivityExtension.entitlements
OpenCodeShareExtension:
type: app-extension
platform: iOS
supportedDestinations: [iOS]
deploymentTarget: "17.0"
sources:
- path: OpenCodeShareExtension
excludes:
- Info.plist
- AGENTS.md
- "**/AGENTS.md"
- path: OpenCodeShared
excludes:
- AGENTS.md
- "**/AGENTS.md"
preBuildScripts:
- name: Validate bundle identifier
script: |
if [ "$PRODUCT_BUNDLE_IDENTIFIER" != "com.ntoporcov.openclient.share" ]; then
echo "error: Unexpected share extension bundle identifier '$PRODUCT_BUNDLE_IDENTIFIER'. Regenerate the project from project.yml before building."
exit 1
fi
info:
path: OpenCodeShareExtension/Info.plist
properties:
CFBundleDisplayName: Share in OpenClient
CFBundleShortVersionString: $(MARKETING_VERSION)
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
CFBundleDevelopmentRegion: en
CFBundleLocalizations:
- en
- pt-BR
- it
NSExtension:
NSExtensionPointIdentifier: com.apple.share-services
NSExtensionPrincipalClass: $(PRODUCT_MODULE_NAME).ShareViewController
NSExtensionAttributes:
NSExtensionActivationRule:
NSExtensionActivationSupportsText: true
NSExtensionActivationSupportsWebURLWithMaxCount: 1
NSExtensionActivationSupportsImageWithMaxCount: 10
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.ntoporcov.openclient.share
PRODUCT_NAME: OpenCodeShareExtension
SUPPORTED_PLATFORMS: iphoneos iphonesimulator
CODE_SIGN_STYLE: Automatic
SWIFT_EMIT_LOC_STRINGS: YES
SKIP_INSTALL: YES
TARGETED_DEVICE_FAMILY: ""
CODE_SIGN_ENTITLEMENTS: OpenCodeShareExtension/OpenCodeShareExtension.entitlements
OpenCodeMacClient:
type: application
platform: macOS
deploymentTarget: "14.0"
sources:
- path: OpenCodeIOSClient
excludes:
- OpenCodeIOSClientApp.swift
- AGENTS.md
- "**/AGENTS.md"
- path: OpenCodeShared
excludes:
- AGENTS.md
- "**/AGENTS.md"
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.ntoporcov.openclient.macos
PRODUCT_NAME: OpenCodeMacClient
GENERATE_INFOPLIST_FILE: YES
INFOPLIST_FILE: OpenCodeIOSClient/Info.plist
INFOPLIST_KEY_CFBundleDisplayName: OpenClient
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME: AccentColor
CODE_SIGN_STYLE: Automatic
SWIFT_EMIT_LOC_STRINGS: YES
dependencies:
- package: HighlighterSwift
product: Highlighter
scheme:
gatherCoverageData: false
testTargets:
- OpenCodeMacClientTests
OpenCodeIOSClientTests:
type: bundle.unit-test
platform: iOS
supportedDestinations: [iOS]
deploymentTarget: "17.0"
hostApplication: OpenCodeIOSClient
sources:
- path: OpenCodeIOSClientTests
excludes:
- AGENTS.md
- "**/AGENTS.md"
dependencies:
- target: OpenCodeIOSClient
settings:
base:
GENERATE_INFOPLIST_FILE: YES
PRODUCT_BUNDLE_IDENTIFIER: com.ntoporcov.openclient.tests
PRODUCT_NAME: OpenCodeIOSClientTests
SUPPORTED_PLATFORMS: iphoneos iphonesimulator
CODE_SIGN_STYLE: Automatic
TARGETED_DEVICE_FAMILY: ""
TEST_HOST: "$(BUILT_PRODUCTS_DIR)/OpenClient.app/OpenClient"
BUNDLE_LOADER: "$(TEST_HOST)"
OpenCodeIOSClientUITests:
type: bundle.ui-testing
platform: iOS
supportedDestinations: [iOS]
deploymentTarget: "17.0"
sources:
- path: OpenCodeIOSClientUITests
excludes:
- AGENTS.md
- "**/AGENTS.md"
dependencies:
- target: OpenCodeIOSClient
settings:
base:
GENERATE_INFOPLIST_FILE: YES
PRODUCT_BUNDLE_IDENTIFIER: com.ntoporcov.openclient.uitests
PRODUCT_NAME: OpenCodeIOSClientUITests
SUPPORTED_PLATFORMS: iphoneos iphonesimulator
CODE_SIGN_STYLE: Automatic
TARGETED_DEVICE_FAMILY: ""
OpenCodeMacClientTests:
type: bundle.unit-test
platform: macOS
deploymentTarget: "14.0"
sources:
- path: OpenCodeMacClientTests
excludes:
- AGENTS.md
- "**/AGENTS.md"
dependencies:
- target: OpenCodeMacClient
settings:
base:
GENERATE_INFOPLIST_FILE: YES
PRODUCT_BUNDLE_IDENTIFIER: com.ntoporcov.openclient.macos.tests
CODE_SIGN_STYLE: Automatic