Repository navigation
Expand file tree
/
Copy pathproject.yml
More file actions
159 lines (154 loc) · 5.2 KB
/
Copy pathproject.yml
File metadata and controls
159 lines (154 loc) · 5.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
name: Trinote
options:
bundleIdPrefix: com.trinote
developmentLanguage: en
knownRegions:
- en
- es
- it
- fr
- de
- ru
- ar
- hi
- hu
- cs
- pl
deploymentTarget:
iOS: "18.0"
xcodeVersion: "16.0"
generateEmptyDirectories: true
groupSortPosition: top
settings:
base:
SWIFT_VERSION: "5.9"
TARGETED_DEVICE_FAMILY: "1,2"
INFOPLIST_FILE: Trinote/Resources/Info.plist
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
DEVELOPMENT_TEAM: R6WYB662P7
CODE_SIGN_STYLE: Automatic
SWIFT_STRICT_CONCURRENCY: complete
VERSIONING_SYSTEM: apple-generic
# Source of truth for XcodeGen. Identity Version/Build is applied on the next
# build (Scripts/sync_project_yml_version.sh writes the values back here).
MARKETING_VERSION: "1.21.1"
CURRENT_PROJECT_VERSION: "22"
packages:
Highlightr:
url: https://github.com/raspu/Highlightr
from: "2.2.0"
targets:
Trinote:
type: application
platform: iOS
deploymentTarget: "18.0"
sources:
- path: Trinote
excludes:
- "**/*.xcassets/*/Contents.json"
# npm deps are build-only; bundling them duplicates filenames (package.json, README.md, …) and breaks Copy Bundle Resources.
- "**/Resources/editor-vendor/node_modules/**"
# Build-time npm project only; runtime uses canvas-editor.html + canvas-editor-assets. Bundling the folder duplicates package.json (and node_modules filenames) vs editor-vendor.
- "**/Resources/canvas-editor-build/**"
# Same rationale as canvas-editor-build: the univer-editor-build/ npm project
# produces univer-editor-assets/, which is the runtime artifact bundled below.
- "**/Resources/univer-editor-build/**"
# Directories below are added as folder references so HTML files can use relative paths
# (e.g. vendor/leaflet.js, canvas-editor-assets/excalidraw-bundle.js).
- "**/Resources/vendor/**"
- "**/Resources/canvas-editor-assets/**"
- "**/Resources/univer-editor-assets/**"
# Build-time source for Boxicons catalog generator only.
- "**/Resources/BoxiconsVendor/**"
- "**/*.entitlements"
- path: TrinoteShared
# Folder references: preserve directory structure in the bundle for HTML relative paths.
- path: Trinote/Resources/vendor
type: folder
buildPhase: resources
- path: Trinote/Resources/canvas-editor-assets
type: folder
buildPhase: resources
- path: Trinote/Resources/univer-editor-assets
type: folder
buildPhase: resources
resources:
- path: Trinote/Resources/Localizable.xcstrings
- path: Trinote/Resources/Assets.xcassets
- path: Trinote/Resources/editor-icons
- path: Trinote/Resources/Fonts
# Bundle only vendored scripts at repo root — not node_modules (duplicate filenames break the build).
- path: Trinote/Resources/editor-vendor
excludes:
- "node_modules"
dependencies:
- package: Highlightr
- target: TrinoteShare
embed: true
codeSign: true
preBuildScripts:
- name: Apply Identity Version
script: |
bash "${SRCROOT}/Scripts/sync_project_yml_version.sh"
basedOnDependencyAnalysis: false
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.trinote
INFOPLIST_FILE: Trinote/Resources/Info.plist
GENERATE_INFOPLIST_FILE: false
ENABLE_USER_SCRIPT_SANDBOXING: false
CODE_SIGN_ENTITLEMENTS: Trinote/Trinote.entitlements
CODE_SIGN_STYLE: Automatic
CODE_SIGN_IDENTITY: "Apple Development"
scheme:
testTargets:
- TrinoteTests
TrinoteShare:
type: app-extension
platform: iOS
deploymentTarget: "18.0"
sources:
- path: TrinoteShare
excludes:
- "**/*.entitlements"
- "Info.plist"
- path: TrinoteShared
preBuildScripts:
- name: Apply Identity Version
script: |
bash "${SRCROOT}/Scripts/sync_project_yml_version.sh"
basedOnDependencyAnalysis: false
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.trinote.fileshare
PRODUCT_NAME: TrinoteShare
INFOPLIST_FILE: TrinoteShare/Info.plist
GENERATE_INFOPLIST_FILE: false
ENABLE_USER_SCRIPT_SANDBOXING: false
CODE_SIGN_ENTITLEMENTS: TrinoteShare/TrinoteShare.entitlements
CODE_SIGN_STYLE: Automatic
CODE_SIGN_IDENTITY: "Apple Development"
SKIP_INSTALL: YES
LD_RUNPATH_SEARCH_PATHS:
- "$(inherited)"
- "@executable_path/Frameworks"
- "@executable_path/../../Frameworks"
TrinoteTests:
type: bundle.unit-test
platform: iOS
deploymentTarget: "18.0"
sources:
- path: TrinoteTests
excludes:
- Fixtures/**
- path: TrinoteTests/Fixtures
type: folder
buildPhase: resources
dependencies:
- target: Trinote
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.trinote.tests
GENERATE_INFOPLIST_FILE: true
TEST_HOST: "$(BUILT_PRODUCTS_DIR)/Trinote.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Trinote"
BUNDLE_LOADER: "$(TEST_HOST)"