-
Notifications
You must be signed in to change notification settings - Fork 5
/
Workspace.swift
51 lines (41 loc) · 1 KB
/
Workspace.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
//
// Workspace.swift
// sendbird-chat-sample-iosManifests
//
// Created by Ernest Hong on 2022/03/22.
//
import ProjectDescription
let workspace = Workspace.create()
extension Workspace {
static func create() -> Workspace {
Workspace(
name: "Samples",
projects: [
"Apps/**",
"Modules/**+"
],
schemes: []
)
}
}
// MARK: - Scheme
extension Workspace {
static func schemes(appNames: [String]) -> [Scheme] {
appNames.map {
appScheme(name: $0)
}
}
static func appScheme(name: String) -> Scheme {
Scheme(
name: name,
shared: true,
buildAction: .buildAction(
targets: [.project(path: "Apps/\(name)", target: name)],
preActions: []
),
runAction: .runAction(
executable: .project(path: "Apps/\(name)", target: name)
)
)
}
}