-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConstants.swift
More file actions
54 lines (42 loc) · 2.07 KB
/
Constants.swift
File metadata and controls
54 lines (42 loc) · 2.07 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
/*
Infomaniak SwissTransfer - iOS App
Copyright (C) 2024 Infomaniak Network SA
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import ProjectDescription
public enum Constants {
public static let baseIdentifier = "com.infomaniak.euria"
public static let testSettings: [String: SettingValue] = [
"SWIFT_ACTIVE_COMPILATION_CONDITIONS": "TEST DEBUG"
]
public static let baseSettings = SettingsDictionary()
.currentProjectVersion("1")
.marketingVersion("1.0.0")
.automaticCodeSigning(devTeam: "864VDCS2QY")
.merging(["DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER": SettingValue(stringLiteral: "NO"),
"SWIFT_STRICT_CONCURRENCY": SettingValue(stringLiteral: "complete")])
public static let deploymentTarget = DeploymentTargets.iOS("16.6")
public static let destinations = Set<Destination>([.iPhone, .iPad, .mac])
public static let swiftlintScript = TargetScript.post(path: "Scripts/lint.sh", name: "Swiftlint")
public static let stripSymbolsScript = TargetScript.post(
path: "scripts/strip_symbols.sh",
name: "Strip Symbols (Release)",
inputPaths: ["${DWARF_DSYM_FOLDER_PATH}/${EXECUTABLE_NAME}.app.dSYM/Contents/Resources/DWARF/${EXECUTABLE_NAME}"]
)
public static var productTypeBasedOnEnv: Product {
if case .string(let productType) = Environment.productType {
return productType == "static-library" ? .staticLibrary : .framework
} else {
return .framework
}
}
}