This repository was archived by the owner on Apr 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProject.swift
More file actions
100 lines (93 loc) · 2.9 KB
/
Project.swift
File metadata and controls
100 lines (93 loc) · 2.9 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
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
import ProjectDescription
let packages = [
Package.remote(url: "https://github.com/Swinject/Swinject.git", requirement: .upToNextMajor(from: Version(2, 8, 0))),
Package.remote(url: "https://github.com/Swinject/SwinjectAutoregistration.git", requirement: .upToNextMajor(from: Version(2, 8, 1))),
Package.local(path: "Dogs")
]
let uikitApp = Target(
name: "UIKitApp",
platform: .iOS,
product: .app,
productName: "UIKitApp",
bundleId: "com.example.dogs.uikit",
infoPlist: .extendingDefault(with: ["UILaunchScreen": [:]]),
sources: "UIKitApp/**",
resources: "UIKitApp/App/Assets/**",
dependencies: [
.package(product: "Dogs"),
.package(product: "Swinject"),
.package(product: "SwinjectAutoregistration"),
]
)
let swiftUIApp = Target(
name: "SwiftUIApp",
platform: .iOS,
product: .app,
productName: "SwiftUIApp",
bundleId: "com.example.dogs.swiftui",
infoPlist: .extendingDefault(with: ["UILaunchScreen": [:]]),
sources: "SwiftUIApp/**",
resources: "SwiftUIApp/App/Assets/**",
dependencies: [
.package(product: "Dogs"),
.package(product: "Swinject"),
.package(product: "SwinjectAutoregistration"),
]
)
let macOSApp = Target(
name: "macOSApp",
platform: .macOS,
product: .app,
productName: "macOSApp",
bundleId: "com.example.dogs.macOS",
infoPlist: .default,
sources: "macOSApp/**",
resources: "macOSApp/App/Assets/**",
dependencies: [
.package(product: "Dogs"),
.package(product: "Swinject"),
.package(product: "SwinjectAutoregistration"),
]
)
let project = Project(
name: "DogsApp",
organizationName: "Example",
packages: packages,
settings: nil,
targets: [uikitApp, swiftUIApp, macOSApp],
schemes: [
Scheme(
name: "UIKitApp",
shared: true,
buildAction: BuildAction(targets: [
TargetReference(stringLiteral: "UIKitApp")
]),
runAction: RunAction.runAction(
configuration: .debug,
executable: TargetReference(stringLiteral: "UIKitApp")
)
),
Scheme(
name: "SwiftUIApp",
shared: true,
buildAction: BuildAction(targets: [
TargetReference(stringLiteral: "SwiftUIApp")
]),
runAction: RunAction.runAction(
configuration: .debug,
executable: TargetReference(stringLiteral: "SwiftUIApp")
)
),
Scheme(
name: "macOSApp",
shared: true,
buildAction: BuildAction(targets: [
TargetReference(stringLiteral: "macOSApp")
]),
runAction: RunAction.runAction(
configuration: .debug,
executable: TargetReference(stringLiteral: "macOSApp")
)
)
]
)