-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProject.swift
executable file
·86 lines (77 loc) · 2.74 KB
/
Project.swift
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
import ProjectDescription
func assembleSettings() -> SettingsDictionary
{
let versionSettings: SettingsDictionary = {
let versionSettingsObject: SettingsDictionary = .init()
.marketingVersion("0.0.1")
.currentProjectVersion("1")
return versionSettingsObject
}()
let swiftLanguageAndCompilerSettings: SettingsDictionary = {
let swiftLanguageAndCompilerSettingsObject: SettingsDictionary = .init()
.swiftVersion("6.0")
return swiftLanguageAndCompilerSettingsObject
}()
let baseSettings: SettingsDictionary = {
let settingsObject: SettingsDictionary = .init()
.automaticCodeSigning(devTeam: "ZSVA6DVZHM")
.codeSignIdentityAppleDevelopment()
return settingsObject
}()
let otherUnsupportedSettings: SettingsDictionary = [
"SWIFT_STRICT_CONCURRENCY": "complete"
]
return versionSettings.merging(swiftLanguageAndCompilerSettings).merging(baseSettings).merging(otherUnsupportedSettings)
}
let project = Project(
name: "Simply Licenses",
packages: [
.remote(url: "https://github.com/SimplyDanny/SwiftLintPlugins", requirement: .upToNextMajor(from: "0.56.2")),
],
settings: .settings(
base: assembleSettings()
),
targets: [
.target(
name: "Simply Licenses",
destinations: .macOS,
product: .app,
bundleId: "com.davidbures.Simply-Licenses",
sources: [
"Simply Licenses/Sources/**"
],
resources: [
"Simply Licenses/**/*.xcassets",
"Simply Licenses/**/*.xcstrings",
],
entitlements: .file(path: "Entitlements/Simply Licenses.entitlements"),
dependencies: [
.package(product: "SwiftLintBuildToolPlugin", type: .plugin),
.target(name: "Simply Licenses Shared")
]
),
.target(
name: "Simply Licenses Shared",
destinations: .macOS,
product: .staticLibrary,
bundleId: "com.davidbures.Simply-Licenses-Shared",
infoPlist: .default,
sources: [
"Modules/Shared/**/*.swift"
]
),
.target(
name: "Simply LicensesTests",
destinations: .macOS,
product: .unitTests,
bundleId: "com.davidbures.Simply-LicensesTests",
infoPlist: .default,
sources: ["Simply Licenses/Tests/**"],
resources: [],
dependencies: [
.target(name: "Simply Licenses"),
.target(name: "Simply Licenses Shared")
]
),
]
)