-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProject.swift
More file actions
58 lines (56 loc) · 1.82 KB
/
Copy pathProject.swift
File metadata and controls
58 lines (56 loc) · 1.82 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
import ProjectDescription
let swiftLintScript = TargetScript.pre(
script: """
if test -d "/opt/homebrew/bin/"; then
PATH="/opt/homebrew/bin/:${PATH}"
fi
export PATH
if which swiftlint >/dev/null; then
swiftlint autocorrect --format \\
"${SRCROOT}/Data" \\
"${SRCROOT}/Domain" \\
"${SRCROOT}/Features"
else
echo "warning: SwiftLint not installed"
fi
""",
name: "SwiftLint",
basedOnDependencyAnalysis: false
)
let project = Project(
name: "AuctionProject",
targets: [
.target(
name: "AuctionProject",
destinations: .iOS,
product: .app,
bundleId: "az.auction.auctionapp",
deploymentTargets: .iOS("17.0"),
infoPlist: .file(path: "AuctionProject/Application/Resources/Plist/Info.plist"),
sources: ["AuctionProject/Application/**"],
resources: [
"AuctionProject/Application/Resources/Assets/**",
"AuctionProject/Preview Content/**",
],
scripts: [swiftLintScript],
dependencies: [
.project(target: "Data", path: "./Data"),
.project(target: "Domain", path: "./Domain"),
.project(target: "Features", path: "./Features"),
.project(target: "Infrastructure", path: "./Infrastructure"),
.external(name: "Core"),
]
),
.target(
name: "AuctionProjectTests",
destinations: .iOS,
product: .unitTests,
bundleId: "com.project.AuctionProjectTests",
deploymentTargets: .iOS("17.0"),
sources: ["AuctionProjectTests/**"],
dependencies: [
.target(name: "AuctionProject"),
]
),
]
)