-
Notifications
You must be signed in to change notification settings - Fork 1
/
project.yml
117 lines (117 loc) · 3.73 KB
/
project.yml
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
targetTemplates:
BaseTarget:
platform: iOS
sources: ["shared"]
AppTarget:
templates: [BaseTarget]
type: application
sources: ["app/shared"]
NotificationTarget:
templates: [BaseTarget]
type: app-extension
sources: ["notifications/shared"]
UITestTarget:
templates: [BaseTarget]
type: bundle.ui-testing
scheme: nil
UnitTestTarget:
templates: [BaseTarget]
type: bundle.unit-test
sources: ["tests/shared"]
scheme: nil
name: XcodeGen-Example-Project
options:
bundleIdPrefix: io.joecolicch
createIntermediateGroups: true
targets:
XcodeGen-Example-Project:
templates: [AppTarget]
sources: ["app/Main"]
dependencies:
- target: NotificationService
- target: NotificationContentExt
settings:
INFOPLIST_FILE: "$(SRCROOT)/app/Main/Supporting Files/Info.plist"
NotificationContentExt:
templates: [NotificationTarget]
sources: ["notifications/NotificationContentExt"]
dependencies:
- sdk: UserNotifications.framework
- sdk: UserNotificationsUI.framework
settings:
INFOPLIST_FILE: "$(SRCROOT)/notifications/NotificationContentExt/Info.plist"
PRODUCT_BUNDLE_IDENTIFIER: "io.joecolicch.XcodeGen-Example-Project.NotificationContentExt"
NotificationService:
templates: [NotificationTarget]
sources: ["notifications/NotificationService"]
settings:
INFOPLIST_FILE: "$(SRCROOT)/notifications/NotificationService/Info.plist"
PRODUCT_BUNDLE_IDENTIFIER: "io.joecolicch.XcodeGen-Example-Project.NotificationService"
XcodeGen-Example-ProjectTests:
templates: [UnitTestTarget]
sources: ["tests/XcodeGen-Example-ProjectTests"]
settings:
INFOPLIST_FILE: "$(SRCROOT)/tests/XcodeGen-Example-ProjectTests/Info.plist"
TEST_HOST: "$(BUILT_PRODUCTS_DIR)/XcodeGen-Example-Project.app/XcodeGen-Example-Project"
dependencies:
- target: XcodeGen-Example-Project
XcodeGen-Example-ProjectUITests:
templates: [UITestTarget]
sources: ["tests/XcodeGen-Example-ProjectUITests"]
settings:
INFOPLIST_FILE: "$(SRCROOT)/tests/XcodeGen-Example-ProjectUITests/Info.plist"
TEST_TARGET_NAME: "XcodeGen-Example-Project"
Demo-Example-Project:
templates: [AppTarget]
sources:
- path: "app/Demo"
excludes: ["Supporting Files/Demo-Info.plist"]
- path: "app/Demo/Supporting Files/Demo-Info.plist"
buildPhase: none
settings:
INFOPLIST_FILE: "$(SRCROOT)/app/Demo/Supporting Files/Demo-Info.plist"
Demo-Example-ProjectTests:
templates: [UnitTestTarget]
sources: ["tests/Demo-Example-ProjectTests"]
settings:
INFOPLIST_FILE: "$(SRCROOT)/tests/Demo-Example-ProjectTests/Info.plist"
TEST_HOST: "$(BUILT_PRODUCTS_DIR)/Demo-Example-Project.app/Demo-Example-Project"
dependencies:
- target: Demo-Example-Project
schemes:
XcodeGen-Example-Project:
build:
targets:
XcodeGen-Example-Project: all
XcodeGen-Example-ProjectTests: [test]
XcodeGen-Example-ProjectUITests: [test]
run:
environmentVariables:
- variable: "APP_NAME"
value: "REAL"
isEnabled: true
test:
environmentVariables:
- variable: "APP_NAME"
value: "REAL"
isEnabled: false
targets:
- XcodeGen-Example-ProjectTests
- XcodeGen-Example-ProjectUITests
Demo-Example-Project:
build:
targets:
Demo-Example-Project: all
Demo-Example-ProjectTests: [test]
run:
environmentVariables:
- variable: "APP_NAME"
value: "DEMO"
isEnabled: true
test:
environmentVariables:
- variable: "APP_NAME"
value: "DEMO"
isEnabled: false
targets:
- Demo-Example-ProjectTests