forked from tutao/tutanota
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmail-project.yml
194 lines (194 loc) · 6.21 KB
/
mail-project.yml
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
# XCodeGen configuration file
name: tutanota # Also known as tutanooota (while testing xcodegen)
options:
useBaseInternationalization: true
schemePathPrefix: "../" # Recommended for workspace based projects by XCodeGen devs
settings:
base:
PRODUCT_NAME: "tutanota"
DEVELOPMENT_TEAM: "JKCH89Z3M9" # Tutao GmbH
ASSETCATALOG_COMPILER_APPICON_NAME: "AppIcon"
bundleIdPrefix: "de.tutao.tutanota"
# Include MUST come after settings because it depends on bundleIdPrefix
include:
- path: "../xcodegen_common.yml"
- path: "./common.yml"
targets:
tutanota:
templates: ["formatAndLint"]
type: "application"
sources:
- path: "tutanota"
excludes:
[
"tutanota-web",
"Sources/sdktest.swift",
]
# XCode will not resolve symbolic links when adding a folder reference, so we will just use a relative path
- path: "../build"
name: "build"
type: "folder"
buildPhase: "resources"
- path: "Plans.storekit"
settings:
base:
PRODUCT_MODULE_NAME: "tutanota"
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES: "YES"
LD_RUNPATH_SEARCH_PATHS: "@executable_path/Frameworks"
INFOPLIST_FILE: "tutanota/Info.plist"
SWIFT_OBJC_BRIDGING_HEADER: "tutanota/Sources/tutanota-Bridging-Header.h"
HEADER_SEARCH_PATHS:
[
"${PROJECT_DIR}/tutanota/include",
]
CLANG_CXX_LANGUAGE_STANDARD: "gnu++14"
GCC_PREPROCESSOR_DEFINITIONS:
["SQLITE_HAS_CODEC=1", "$(inherited)"]
OTHER_CFLAGS[arch=*]:
[
"-DSQLITE_HAS_CODEC",
"-DSQLITE_TEMP_STORE=3",
"-DSQLCIPHER_CRYPTO_CC",
"-DNDEBUG",
]
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD: "NO"
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD: "NO"
configs:
Debug Development:
PRODUCT_NAME: "Tuta D"
Debug Staging:
PRODUCT_NAME: "Tuta Test"
Debug Production:
PRODUCT_NAME: "Tuta Mail"
Release Development:
PRODUCT_NAME: "Tuta D"
Release Staging:
PRODUCT_NAME: "Tuta Test"
Release Production:
PRODUCT_NAME: "Tuta Mail"
groups:
- "codeSigning"
dependencies:
- package: Atomics
- sdk: CryptoTokenKit.framework
embed: false
- package: DictionaryCoding
- sdk: Foundation.framework
embed: false
- sdk: Security.framework
embed: false
- target: TutanotaNotificationExtension
codeSign: false
- target: TutanotaSharedFramework
- target: TutanotaShareExtension
codeSign: false
- framework: tutasdk.framework
embed: false
- framework: StoreKit.framework
embed: false
tutanotaTests:
templates: ["formatAndLint"]
type: "bundle.unit-test"
sources:
- path: "tutanotaTests"
excludes: ["CompatibilityTest.m"]
- path: "tutanotaTests"
includes: ["CompatibilityTest.m"]
compilerFlags: "-Itutanota/include"
settings:
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES: "YES"
CODE_SIGN_STYLE: "Automatic"
LD_RUNPATH_SEARCH_PATHS: "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"
BUNDLE_LOADER: "$(TEST_HOST)"
INFOPLIST_FILE: "tutanotaTests/Info.plist"
PRODUCT_BUNDLE_IDENTIFIER: "de.tutao.tutanotaTests"
PRODUCT_NAME: "$(TARGET_NAME)"
HEADER_SEARCH_PATHS:
[
"${PROJECT_DIR}/tutanota/include",
]
TEST_HOST: "$(BUILT_PRODUCTS_DIR)/Tuta D.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Tuta D"
SWIFT_OBJC_BRIDGING_HEADER: "tutanotaTests/tutanotaTests-Bridging-Header.h"
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD: "NO"
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD: "NO"
CLANG_CXX_LANGUAGE_STANDARD: "gnu++14"
dependencies:
- target: "tutanota"
- target: "TutanotaSharedFramework"
TutanotaSharedTests:
type: "bundle.unit-test"
platform: "iOS"
sources:
- path: "TutanotaSharedTests"
- path: "MockingbirdMocks/TutanotaSharedTests-TutanotaSharedFrameworkMocks.generated.swift"
optional: true # The file will be generated in the "Generate Mockingbird Mocks" stage
settings:
GCC_NO_COMMON_BLOCKS: "YES"
CLANG_CXX_LANGUAGE_STANDARD: "gnu++20"
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS: "YES"
IPHONEOS_DEPLOYMENT_TARGET: "15.5"
LOCALIZATION_PREFERS_STRING_CATALOGS: "YES"
SWIFT_EMIT_LOC_STRINGS: "YES"
GENERATE_INFOPLIST_FILE: "YES"
PRODUCT_NAME: "$(TARGET_NAME)"
CODE_SIGN_STYLE: "Automatic"
TEST_HOST: "$(BUILT_PRODUCTS_DIR)/Tuta D.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Tuta D"
CURRENT_PROJECT_VERSION: "1"
MARKETING_VERSION: "1.0"
dependencies:
- target: "tutanota"
- target: "TutanotaSharedFramework"
embed: false
- package: "Mockingbird"
- framework: tutasdk.framework
embed: false
preBuildScripts:
- path: "buildScripts/generate-mockingbird.sh"
name: "Generate Mockingbird Mocks"
shell: "/bin/sh"
showEnvVars: true
basedOnDependencyAnalysis: false
outputFiles:
[
"$(SRCROOT)/MockingbirdMocks/TutanotaSharedTests-TutanotaSharedFrameworkMocks.generated.swift",
]
schemes:
tuta debug:
build:
targets:
tutanota: ["analyze", "test", "run", "profile"]
tutanotaTests: ["test"]
run:
config: "Debug Development"
storeKitConfiguration: "Plans.storekit"
test:
config: "Debug Development"
targets: ["tutanotaTests"]
archive:
config: "Release Development"
tuta staging:
build:
targets:
tutanota: "all"
tutanotaTests: ["test"]
run:
config: "Debug Staging"
storeKitConfiguration: "Plans.storekit"
test:
config: "Debug Staging"
targets: ["tutanotaTests"]
archive:
config: "Release Staging"
tuta prod:
build:
targets:
tutanota: "all"
tutanotaTests: ["test"]
run:
config: "Debug Production"
storeKitConfiguration: "Plans.storekit"
test:
config: "Debug Production"
targets: ["tutanotaTests"]
archive:
config: "Release Production"