forked from tutao/tutanota
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.yml
168 lines (168 loc) · 6.14 KB
/
common.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
settingGroups:
codeSigning:
base:
CODE_SIGN_IDENTITY: "$(inherited)"
CODE_SIGN_ENTITLEMENTS: "$(TARGET_NAME)/$(TARGET_NAME)$(CONFIGURATION).entitlements"
configs:
Debug Production:
CODE_SIGN_ENTITLEMENTS: "$(TARGET_NAME)/$(TARGET_NAME).entitlements"
Release Development:
PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]: "match AdHoc ${bundleIdPrefix}.$(PRODUCT_NAME)"
Release Staging:
PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]: "match AdHoc $(PRODUCT_BUNDLE_IDENTIFIER)"
Release Production:
CODE_SIGN_ENTITLEMENTS: "$(TARGET_NAME)/$(TARGET_NAME).entitlements"
PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]: "match AdHoc $(PRODUCT_BUNDLE_IDENTIFIER)"
extension:
base:
SKIP_INSTALL: "YES"
INFOPLIST_KEY_CFBundleDisplayName: "$(TARGET_NAME)"
LD_RUNPATH_SEARCH_PATHS: "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"
SWIFT_EMIT_LOC_STRINGS: "YES"
GENERATE_INFOPLIST_FILE: "YES"
CURRENT_PROJECT_VERSION: "1"
MARKETING_VERSION: "1.0"
targets:
TutanotaShareExtension:
templates: [ "formatAndLint" ]
type: "app-extension"
sources: "TutanotaShareExtension"
settings:
base:
PRODUCT_NAME: "TutanotaShareExtension"
PRODUCT_BUNDLE_IDENTIFIER: "$(inherited).TutanotaShareExtension"
IPHONEOS_DEPLOYMENT_TARGET: "15.5" # Github might be running on slightly lower iOS version
INFOPLIST_FILE: "TutanotaShareExtension/Info.plist"
HEADER_SEARCH_PATHS: '"${PROJECT_DIR}/tutanota/include"/**'
MARKETING_VERSION: "3.104.5"
CLANG_CXX_LANGUAGE_STANDARD: "gnu++17"
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD: "NO"
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD: "NO"
groups:
- "codeSigning"
- "extension"
dependencies:
- target: "TutanotaSharedFramework"
- framework: tutasdk.framework
embed: false
TutanotaSharedFramework:
type: "framework"
platform: "iOS"
sources:
- path: "TutanotaSharedFramework"
headerVisibility: "public"
# Exclude TUTBigNum.h so we change it's visiblity to 'project' in another source
excludes: [ "Crypto/TUTBigNum.h", "*.md", "Sql/sqlite3.c" ]
- path: "TutanotaSharedFramework/Crypto"
includes: [ "TUTBigNum.h" ]
headerVisibility: "project"
- path: "TutanotaSharedFramework/Sql"
# Don't show warnings for vendored code
includes: [ "sqlite3.c" ]
compilerFlags: "-w"
settings:
PRODUCT_NAME: "TutanotaSharedFramework"
PRODUCT_BUNDLE_IDENTIFIER: "$(inherited).TutanotaSharedFramework"
INSTALL_PATH: "$(LOCAL_LIBRARY_DIR)/Frameworks"
GCC_PREPROCESSOR_DEFINITIONS: [ "SQLITE_HAS_CODEC=1", "$(inherited)" ]
OTHER_CFLAGS:
[
"-DSQLITE_HAS_CODEC",
"-DSQLITE_TEMP_STORE=3",
"-DNDEBUG",
"-DSQLCIPHER_CRYPTO_CC",
]
APPLICATION_EXTENSION_API_ONLY: "YES"
ENABLE_USER_SCRIPT_SANDBOXING: "YES"
SKIP_INSTALL: "YES"
DYLIB_COMPATIBILITY_VERSION: "1"
DYLIB_CURRENT_VERSION: "1"
DYLIB_INSTALL_NAME_BASE: "@rpath"
LD_RUNPATH_SEARCH_PATHS: "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"
LOCALIZATION_PREFERS_STRING_CATALOGS: "YES"
SWIFT_EMIT_LOC_STRINGS: "YES"
DEFINES_MODULE: "YES"
GENERATE_INFOPLIST_FILE: "YES"
CODE_SIGN_STYLE: "Manual"
CODE_SIGN_IDENTITY: "$(inherited)"
PROVISIONING_PROFILE_SPECIFIER: ""
CURRENT_PROJECT_VERSION: "1"
MARKETING_VERSION: "1.0"
VERSIONING_SYSTEM: "apple-generic"
GCC_NO_COMMON_BLOCKS: "YES"
CLANG_CXX_LANGUAGE_STANDARD: "gnu++20"
ENABLE_MODULE_VERIFIER: "YES"
MODULE_VERIFIER_SUPPORTED_LANGUAGES: "objective-c objective-c++"
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS: "$(GCC_C_LANGUAGE_STANDARD) $(CLANG_CXX_LANGUAGE_STANDARD)"
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD: "NO"
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD: "NO"
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS: "YES"
dependencies:
- package: DictionaryCoding
product: "DictionaryCoding"
- framework: tutasdk.framework
embed: false
TutanotaNotificationExtension:
type: "app-extension"
platform: "iOS"
sources:
- path: "TutanotaNotificationExtension"
settings:
base:
PRODUCT_NAME: "$(TARGET_NAME)"
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD: "NO"
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD: "NO"
GCC_NO_COMMON_BLOCKS: "YES"
CLANG_CXX_LANGUAGE_STANDARD: "gnu++20"
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS: "YES"
ENABLE_USER_SCRIPT_SANDBOXING: "YES"
LOCALIZATION_PREFERS_STRING_CATALOGS: "YES"
INFOPLIST_FILE: "TutanotaNotificationExtension/Info.plist"
GENERATE_INFOPLIST_FILE: "NO"
PRODUCT_BUNDLE_IDENTIFIER: "$(inherited).TutanotaNotificationExtension"
groups:
- "codeSigning"
- "extension"
dependencies:
- target: "TutanotaSharedFramework"
- framework: tutasdk.framework
embed: false
targetTemplates:
formatAndLint:
type: "application"
platform: "iOS"
supportedDestinations: [ "iOS" ]
preBuildScripts:
- path: "buildScripts/format.sh"
name: "Check formating with swift-format"
shell: "/bin/sh"
showEnvVars: true
basedOnDependencyAnalysis: false
postCompileScripts:
- path: "buildScripts/lint-xcode.sh"
name: "Lint with SwiftLint"
shell: "/bin/sh"
showEnvVars: true
basedOnDependencyAnalysis: false
schemes:
TutanotaShareExtension:
build:
targets:
TutanotaShareExtension: "all"
TutanotaSharedFramework:
build:
targets:
TutanotaSharedFramework: "all"
TutanotaSharedTests: [ "test" ]
test:
targets: [ "TutanotaSharedTests" ]
packages:
DictionaryCoding:
url: https://github.com/elegantchaos/DictionaryCoding.git
version: 1.0.9
Mockingbird:
url: https://github.com/birdrides/mockingbird.git
version: 0.20.0
Atomics:
url: https://github.com/apple/swift-atomics.git
version: 1.0.2